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