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