[254b4450] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[d8ff793] | 7 | top_srcdir = @top_srcdir@ |
---|
[59909bf] | 8 | top_builddir = .. |
---|
| 9 | subdir = wrapup |
---|
[254b4450] | 10 | |
---|
[6693a68] | 11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[d8ff793] | 12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 13 | |
---|
| 14 | VPATH = @srcdir@ |
---|
| 15 | |
---|
[6693a68] | 16 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[0162910] | 17 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
| 18 | |
---|
[6693a68] | 19 | INSTALL = @INSTALL@ |
---|
| 20 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 21 | |
---|
[1896a650] | 22 | BSP_PIECES = startup clock console timer |
---|
| 23 | GENERIC_PIECES = |
---|
| 24 | |
---|
[6693a68] | 25 | GENERIC_MP_REL_PIECES_yes_V = shmdr |
---|
| 26 | GENERIC_MP_REL_PIECES_no_V = |
---|
| 27 | GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V) |
---|
| 28 | |
---|
| 29 | BSP_MP_O_PIECES_yes_V = shmsupp |
---|
| 30 | BSP_MP_O_PIECES_no_V = |
---|
| 31 | BSP_PIECES += $(BSP_MP_O_PIECES_$(HAS_MP)_V) |
---|
[254b4450] | 32 | |
---|
| 33 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
[6693a68] | 34 | OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \ |
---|
| 35 | $(foreach piece, $(GENERIC_PIECES), \ |
---|
| 36 | ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
| 37 | LIB = $(ARCH)/libbsp.a |
---|
[254b4450] | 38 | |
---|
| 39 | # |
---|
| 40 | # (OPTIONAL) Add local stuff here using += |
---|
| 41 | # |
---|
| 42 | |
---|
[6693a68] | 43 | DEFINES += |
---|
[254b4450] | 44 | CPPFLAGS += |
---|
[6693a68] | 45 | CFLAGS += |
---|
[254b4450] | 46 | |
---|
[6693a68] | 47 | LD_PATHS += |
---|
| 48 | LD_LIBS += |
---|
| 49 | LDFLAGS += |
---|
[254b4450] | 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 | $(LIB): ${OBJS} |
---|
| 62 | $(make-library) |
---|
| 63 | |
---|
[6693a68] | 64 | all: ${ARCH} $(SRCS) $(LIB) |
---|
| 65 | $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib |
---|
[254b4450] | 66 | |
---|
[08b5f55] | 67 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 68 | cd $(top_builddir) \ |
---|
| 69 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|