summaryrefslogtreecommitdiffstats
path: root/src/ssx/pgp/Makefile
blob: 417a4528af725bb31c09cfd408b83c315d212624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: Makefile,v 1.2 2013/12/12 16:12:28 bcbrock Exp $

# This Makefile compiles all of the SSX code required for the PgP port
# of SSX.  See the "ssx.mk" file in this directory.

include ssx.mk
include ssxpgpfiles.mk


ifeq "$(SSX_TIMER_SUPPORT)" "1"
PGP_OBJECTS += ${PGP-TIMER-C-SOURCES:.c=.o} ${PGP-TIMER-S-SOURCES:.S=.o}
endif

ifeq "$(SSX_THREAD_SUPPORT)" "1"
PGP_OBJECTS += ${PGP-THREAD-C-SOURCES:.c=.o} ${PGP-THREAD-S-SOURCES:.S=.o}
endif

ifeq "$(PGP_ASYNC_SUPPORT)" "1"
PGP_OBJECTS += ${PGP-ASYNC-C-SOURCES:.c=.o} ${PGP-ASYNC-S-SOURCES:.S=.o}
endif


all: local
	$(MAKE) -I ../pgp -C ../ssx
	$(MAKE) -I ../pgp -C ../ppc405

local: $(PGP_OBJECTS)


.PHONY : clean
clean:
	rm -f *.o *.d *.d.* *.ps *.pdf
	$(MAKE) -I ../pgp -C ../ssx    clean
	$(MAKE) -I ../pgp -C ../ppc405 clean

ifneq ($(MAKECMDGOALS),clean)
include $(PGP_OBJECTS:.o=.d) 
endif
OpenPOWER on IntegriCloud