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=bspstart sbrk setvec except i386-stub |
---|
17 | C_PIECES=bspstart sbrk setvec |
---|
18 | C_FILES=$(C_PIECES:%=%.c) |
---|
19 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
20 | |
---|
21 | H_FILES= |
---|
22 | |
---|
23 | |
---|
24 | # Assembly source names, if any, go here -- minus the .s |
---|
25 | # removed initcsu piece, ldsegs piece and flush |
---|
26 | S_PIECES= gdt idt interrupts interns reset_jmp |
---|
27 | |
---|
28 | S_FILES=$(S_PIECES:%=%.s) |
---|
29 | S_O_FILES=$(S_FILES:%.s=${ARCH}/%.o) |
---|
30 | |
---|
31 | SRCS=$(srcdir)/linkcmds $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
32 | OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) |
---|
33 | |
---|
34 | include $(RTEMS_CUSTOM) |
---|
35 | include $(PROJECT_ROOT)/make/leaf.cfg |
---|
36 | |
---|
37 | # |
---|
38 | # (OPTIONAL) Add local stuff here using += |
---|
39 | # |
---|
40 | |
---|
41 | #DEFINES += -DPRINTON |
---|
42 | DEFINES += -I$(srcdir) |
---|
43 | CPPFLAGS += |
---|
44 | CFLAGS += -g |
---|
45 | |
---|
46 | LD_PATHS += |
---|
47 | LD_LIBS += |
---|
48 | LDFLAGS += |
---|
49 | |
---|
50 | # |
---|
51 | # Add your list of files to delete here. The config files |
---|
52 | # already know how to delete some stuff, so you may want |
---|
53 | # to just run 'make clean' first to see what gets missed. |
---|
54 | # 'make clobber' already includes 'make clean' |
---|
55 | # |
---|
56 | |
---|
57 | CLEAN_ADDITIONS += |
---|
58 | CLOBBER_ADDITIONS += |
---|
59 | |
---|
60 | ${PGM}: ${SRCS} ${OBJS} |
---|
61 | $(make-rel) |
---|
62 | all: ${ARCH} $(SRCS) $(PGM) |
---|
63 | $(INSTALL) $(srcdir)/linkcmds ${PROJECT_RELEASE}/lib |
---|
64 | |
---|
65 | # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile |
---|
66 | install: all |
---|
67 | |
---|