[be4284d0] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | @SET_MAKE@ |
---|
| 6 | srcdir = @srcdir@ |
---|
[d8ff793] | 7 | top_srcdir = @top_srcdir@ |
---|
[e1d8abb] | 8 | top_builddir = ../../.. |
---|
| 9 | subdir = powerpc/helas403/wrapup |
---|
[be4284d0] | 10 | |
---|
[6693a68] | 11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
[d8ff793] | 12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
| 13 | |
---|
| 14 | VPATH = @srcdir@ |
---|
| 15 | |
---|
[6693a68] | 16 | BSP_PIECES = startup dlentry flashentry |
---|
[be4284d0] | 17 | # pieces to pick up out of libcpu/ppc |
---|
[6693a68] | 18 | CPU_PIECES = ppc403/clock ppc403/timer ppc403/console ppc403/vectors \ |
---|
| 19 | ppc403/ictrl |
---|
| 20 | GENERIC_PIECES = |
---|
[be4284d0] | 21 | |
---|
| 22 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
[6693a68] | 23 | OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \ |
---|
| 24 | $(foreach piece, $(CPU_PIECES), \ |
---|
| 25 | ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(notdir $(piece)).rel) \ |
---|
| 26 | $(foreach piece, $(GENERIC_PIECES), \ |
---|
| 27 | ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
| 28 | LIB = $(ARCH)/libbsp.a |
---|
| 29 | |
---|
| 30 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
[be4284d0] | 31 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
| 32 | |
---|
[6693a68] | 33 | INSTALL = @INSTALL@ |
---|
| 34 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
| 35 | |
---|
[be4284d0] | 36 | # |
---|
| 37 | # (OPTIONAL) Add local stuff here using += |
---|
| 38 | # |
---|
| 39 | |
---|
[6693a68] | 40 | DEFINES += |
---|
[be4284d0] | 41 | CPPFLAGS += |
---|
[6693a68] | 42 | CFLAGS += |
---|
[be4284d0] | 43 | |
---|
[6693a68] | 44 | LD_PATHS += |
---|
| 45 | LD_LIBS += |
---|
| 46 | LDFLAGS += |
---|
[be4284d0] | 47 | |
---|
| 48 | # |
---|
| 49 | # Add your list of files to delete here. The config files |
---|
| 50 | # already know how to delete some stuff, so you may want |
---|
| 51 | # to just run 'make clean' first to see what gets missed. |
---|
| 52 | # 'make clobber' already includes 'make clean' |
---|
| 53 | # |
---|
| 54 | |
---|
| 55 | CLEAN_ADDITIONS += |
---|
| 56 | CLOBBER_ADDITIONS += |
---|
| 57 | |
---|
| 58 | $(LIB): ${OBJS} |
---|
| 59 | $(make-library) |
---|
| 60 | |
---|
[6693a68] | 61 | all: ${ARCH} $(SRCS) $(LIB) |
---|
| 62 | $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib |
---|
[be4284d0] | 63 | |
---|
[6693a68] | 64 | install: all |
---|
[be4284d0] | 65 | |
---|
[6693a68] | 66 | $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs: ../bsp_specs |
---|
[5906ac5] | 67 | $(INSTALL_DATA) $< $@ |
---|
| 68 | |
---|
[08b5f55] | 69 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
[d8ff793] | 70 | cd $(top_builddir) \ |
---|
| 71 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|