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