blob: 0391504e79a6f5f2ce3ccef4ce62dd04fd388298 (
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
|
# $Id: Makefile,v 1.2 2013/12/12 16:12:38 bcbrock Exp $
# This Makefile is designed to be invoked with the -I argument set to
# the location of the "ssx.mk" for the build
SSX = ..
PGP = $(SSX)/pgp
include $(PGP)/ssx.mk
include ssxppc405files.mk
ifeq "$(SSX_TIMER_SUPPORT)" "1"
PPC405_OBJECTS += ${PPC405-TIMER-C-SOURCES:.c=.o} ${PPC405-TIMER-S-SOURCES:.S=.o}
endif
ifeq "$(SSX_THREAD_SUPPORT)" "1"
PPC405_OBJECTS += ${PPC405-THREAD-C-SOURCES:.c=.o} ${PPC405-THREAD-S-SOURCES:.S=.o}
endif
ifeq "$(PPC405_MMU_SUPPORT)" "1"
PPC405_OBJECTS += ${PPC405-MMU-C-SOURCES:.c=.o} ${PPC405-MMU-S-SOURCES:.S=.o}
endif
all: local
$(MAKE) -I ../pgp -C ../ppc32
local: $(PPC405_OBJECTS)
.PHONY : clean
clean:
rm -f *.o *.d *.d.*
$(MAKE) -I ../pgp -C ../ppc32 clean
ifneq ($(MAKECMDGOALS),clean)
include $(PPC405_OBJECTS:.o=.d)
endif
|