1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
9 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
10 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
11 | RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
12 | |
---|
13 | PGM=${ARCH}/startup.rel |
---|
14 | |
---|
15 | # C source names, if any, go here -- minus the .c |
---|
16 | C_PIECES=bspclean bspstart sbrk setvec |
---|
17 | C_FILES=$(C_PIECES:%=%.c) |
---|
18 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
19 | |
---|
20 | CC_PIECES=rtems-ctor |
---|
21 | CC_FILES=$(CC_PIECES:%=%.cc) |
---|
22 | CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o) |
---|
23 | |
---|
24 | H_FILES= |
---|
25 | |
---|
26 | SRCS=$(C_FILES) $(H_FILES) |
---|
27 | OBJS=$(C_O_FILES) |
---|
28 | |
---|
29 | # We install the RTEMS constructor as a separate .o |
---|
30 | # so it can be easily place correctly by the compiler config file. |
---|
31 | INSTALLED_O_FILES=$(ARCH)/rtems-ctor.o |
---|
32 | |
---|
33 | include $(RTEMS_CUSTOM) |
---|
34 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
35 | |
---|
36 | # |
---|
37 | # (OPTIONAL) Add local stuff here using += |
---|
38 | # |
---|
39 | |
---|
40 | DEFINES += |
---|
41 | CPPFLAGS += |
---|
42 | CFLAGS += |
---|
43 | |
---|
44 | LD_PATHS += |
---|
45 | LD_LIBS += |
---|
46 | LDFLAGS += |
---|
47 | |
---|
48 | # |
---|
49 | # Add your list of files to delete here. The config files |
---|
50 | # already know how to delete some stuff, so you may want |
---|
51 | # to just run 'make clean' first to see what gets missed. |
---|
52 | # 'make clobber' already includes 'make clean' |
---|
53 | # |
---|
54 | |
---|
55 | CLEAN_ADDITIONS += |
---|
56 | CLOBBER_ADDITIONS += |
---|
57 | |
---|
58 | ${PGM}: ${SRCS} ${OBJS} |
---|
59 | $(make-rel) |
---|
60 | |
---|
61 | all: ${ARCH} $(SRCS) $(INSTALLED_O_FILES) $(PGM) |
---|
62 | $(INSTALL_VARIANT) $(INSTALLED_O_FILES) ${PROJECT_RELEASE}/lib |
---|
63 | |
---|
64 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|