1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = ../../../.. |
---|
9 | subdir = libbsp/powerpc/score603e/startup |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
15 | |
---|
16 | PGM = ${ARCH}/startup.rel |
---|
17 | |
---|
18 | # C source names, if any, go here -- minus the .c |
---|
19 | # |
---|
20 | # First and second generation use different Bridge chips :( |
---|
21 | # Generation 1 --> 82378zb |
---|
22 | # Generation 2 --> FPGA |
---|
23 | STARTUP_C_PIECES = 82378zb FPGA |
---|
24 | |
---|
25 | C_PIECES = bspclean bsplibc bsppost bspstart bootcard main sbrk setvec \ |
---|
26 | Hwr_init spurious genpvec $(STARTUP_C_PIECES) gnatinstallhandler |
---|
27 | C_FILES = $(C_PIECES:%=%.c) |
---|
28 | C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) |
---|
29 | |
---|
30 | H_FILES = |
---|
31 | |
---|
32 | # Assembly source names, if any, go here -- minus the .s |
---|
33 | S_PIECES = |
---|
34 | S_FILES = $(S_PIECES:%=%.s) |
---|
35 | S_O_FILES = $(S_FILES:%.s=${ARCH}/%.o) |
---|
36 | |
---|
37 | SRCS = linkcmds $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
38 | OBJS = $(C_O_FILES) $(S_O_FILES) |
---|
39 | |
---|
40 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
41 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
42 | |
---|
43 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
44 | mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs |
---|
45 | |
---|
46 | INSTALLDIRS = $(PROJECT_RELEASE)/lib |
---|
47 | |
---|
48 | $(INSTALLDIRS): |
---|
49 | @$(mkinstalldirs) $(INSTALLDIRS) |
---|
50 | |
---|
51 | # |
---|
52 | # (OPTIONAL) Add local stuff here using += |
---|
53 | # |
---|
54 | |
---|
55 | DEFINES += |
---|
56 | CPPFLAGS += |
---|
57 | CFLAGS += |
---|
58 | |
---|
59 | LD_PATHS += |
---|
60 | LD_LIBS += |
---|
61 | LDFLAGS += |
---|
62 | |
---|
63 | # |
---|
64 | # Add your list of files to delete here. The config files |
---|
65 | # already know how to delete some stuff, so you may want |
---|
66 | # to just run 'make clean' first to see what gets missed. |
---|
67 | # 'make clobber' already includes 'make clean' |
---|
68 | # |
---|
69 | |
---|
70 | CLEAN_ADDITIONS += |
---|
71 | CLOBBER_ADDITIONS += |
---|
72 | |
---|
73 | ${PGM}: ${SRCS} ${OBJS} |
---|
74 | $(make-rel) |
---|
75 | |
---|
76 | all: ${ARCH} $(SRCS) $(PGM) |
---|
77 | $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib |
---|
78 | |
---|
79 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
80 | cd $(top_builddir) \ |
---|
81 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|