[254b4450] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[674c900] | 7 | VPATH = @srcdir@:@srcdir@/../../../shared |
---|
[5c3511e] | 8 | RTEMS_ROOT = @top_srcdir@ |
---|
[674c900] | 9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
[254b4450] | 10 | |
---|
| 11 | PGM=${ARCH}/startup.rel |
---|
| 12 | |
---|
| 13 | # C source names, if any, go here -- minus the .c |
---|
| 14 | C_PIECES=bspclean bspstart sbrk setvec spurious |
---|
| 15 | C_FILES=$(C_PIECES:%=%.c) |
---|
| 16 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
| 17 | |
---|
| 18 | CC_PIECES=rtems-ctor |
---|
| 19 | CC_FILES=$(CC_PIECES:%=%.cc) |
---|
| 20 | CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o) |
---|
| 21 | |
---|
| 22 | H_FILES= |
---|
| 23 | |
---|
| 24 | # Assembly source names, if any, go here -- minus the .s |
---|
| 25 | S_PIECES= |
---|
| 26 | S_FILES=$(S_PIECES:%=%.S) |
---|
| 27 | S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o) |
---|
| 28 | |
---|
| 29 | SRCS=linkcmds $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) |
---|
| 30 | OBJS=$(C_O_FILES) |
---|
| 31 | |
---|
| 32 | # We install the RTEMS constructor as a separate .o |
---|
| 33 | # so it can be easily place correctly by the compiler config file. |
---|
| 34 | INSTALLED_O_FILES=$(ARCH)/rtems-ctor.o |
---|
| 35 | |
---|
[5c3511e] | 36 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
[cb5bfe4] | 37 | include $(RTEMS_ROOT)/make/leaf.cfg |
---|
[254b4450] | 38 | |
---|
| 39 | # |
---|
| 40 | # (OPTIONAL) Add local stuff here using += |
---|
| 41 | # |
---|
| 42 | |
---|
| 43 | DEFINES += |
---|
| 44 | CPPFLAGS += |
---|
| 45 | CFLAGS += |
---|
| 46 | |
---|
| 47 | LD_PATHS += |
---|
| 48 | LD_LIBS += |
---|
| 49 | LDFLAGS += |
---|
| 50 | |
---|
| 51 | # |
---|
| 52 | # Add your list of files to delete here. The config files |
---|
| 53 | # already know how to delete some stuff, so you may want |
---|
| 54 | # to just run 'make clean' first to see what gets missed. |
---|
| 55 | # 'make clobber' already includes 'make clean' |
---|
| 56 | # |
---|
| 57 | |
---|
| 58 | CLEAN_ADDITIONS += |
---|
| 59 | CLOBBER_ADDITIONS += |
---|
| 60 | |
---|
| 61 | ${PGM}: ${SRCS} ${OBJS} |
---|
| 62 | $(make-rel) |
---|
| 63 | |
---|
| 64 | all: ${ARCH} $(SRCS) $(INSTALLED_O_FILES) $(PGM) |
---|
| 65 | $(INSTALL) $(srcdir)/linkcmds ${PROJECT_RELEASE}/lib |
---|
| 66 | $(INSTALL_VARIANT) $(INSTALLED_O_FILES) ${PROJECT_RELEASE}/lib |
---|