1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | VPATH = @srcdir@ |
---|
9 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
10 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
11 | RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
12 | |
---|
13 | PGM=${ARCH}/start302.o |
---|
14 | |
---|
15 | ifeq ($(RTEMS_DEBUGGER),yes) |
---|
16 | RESET_SRC = debugreset |
---|
17 | else |
---|
18 | RESET_SRC = reset |
---|
19 | CFLAGS += -DGDB_MONITOR_ACTIVE |
---|
20 | endif |
---|
21 | |
---|
22 | # C source names, if any, go here -- minus the .c |
---|
23 | C_PIECES=cpuboot |
---|
24 | C_FILES=$(C_PIECES:%=%.c) |
---|
25 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
26 | |
---|
27 | H_FILES= |
---|
28 | |
---|
29 | # Assembly source names, if any, go here -- minus the .s |
---|
30 | S_PIECES=$(RESET_SRC) |
---|
31 | S_FILES=$(S_PIECES:%=%.s) |
---|
32 | S_O_FILES=$(S_FILES:%.s=${ARCH}/%.o) |
---|
33 | |
---|
34 | SRCS=$(C_FILES) $(H_FILES) $(S_FILES) |
---|
35 | OBJS=$(S_O_FILES) $(C_O_FILES) |
---|
36 | |
---|
37 | include $(RTEMS_CUSTOM) |
---|
38 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
39 | |
---|
40 | # |
---|
41 | # (OPTIONAL) Add local stuff here using += |
---|
42 | # |
---|
43 | |
---|
44 | DEFINES += |
---|
45 | CPPFLAGS += |
---|
46 | CFLAGS += |
---|
47 | |
---|
48 | LD_PATHS += |
---|
49 | LD_LIBS += |
---|
50 | LDFLAGS += |
---|
51 | |
---|
52 | # |
---|
53 | # Add your list of files to delete here. The config files |
---|
54 | # already know how to delete some stuff, so you may want |
---|
55 | # to just run 'make clean' first to see what gets missed. |
---|
56 | # 'make clobber' already includes 'make clean' |
---|
57 | # |
---|
58 | |
---|
59 | CLEAN_ADDITIONS += |
---|
60 | CLOBBER_ADDITIONS += |
---|
61 | |
---|
62 | ${PGM}: ${OBJS} |
---|
63 | $(make-rel) |
---|
64 | |
---|
65 | all: ${ARCH} $(SRCS) $(OBJS) $(PGM) |
---|
66 | $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/lib |
---|
67 | |
---|
68 | # Install the program(s), appending _g or _p as appropriate. |
---|
69 | # for include files, just use $(INSTALL) |
---|
70 | |
---|
71 | |
---|