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