1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | top_srcdir = @top_srcdir@ |
---|
8 | top_builddir = .. |
---|
9 | subdir = wrapup |
---|
10 | |
---|
11 | RTEMS_ROOT = @RTEMS_ROOT@ |
---|
12 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
13 | |
---|
14 | VPATH = @srcdir@ |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
17 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
18 | |
---|
19 | INSTALL_CHANGE = @INSTALL_CHANGE@ |
---|
20 | |
---|
21 | BSP_MP_O_PIECES_yes_V = shmsupp |
---|
22 | BSP_MP_O_PIECES = $(BSP_MP_O_PIECES_$(HAS_MP)_V) |
---|
23 | BSP_PIECES = startup clock console timer $(BSP_MP_O_PIECES) |
---|
24 | |
---|
25 | # pieces to pick up out of libcpu/unix |
---|
26 | CPU_PIECES = |
---|
27 | |
---|
28 | GENERIC_MP_REL_PIECES_yes_V = shmdr |
---|
29 | GENERIC_MP_REL_PIECES = $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V) |
---|
30 | GENERIC_PIECES = $(GENERIC_MP_REL_PIECES) |
---|
31 | |
---|
32 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
33 | OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \ |
---|
34 | $(foreach piece, $(CPU_PIECES), \ |
---|
35 | ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) $(foreach \ |
---|
36 | piece, $(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
37 | LIB = $(ARCH)/libbsp.a |
---|
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 | $(LIB): ${OBJS} |
---|
62 | $(make-library) |
---|
63 | |
---|
64 | all: ${ARCH} $(SRCS) $(LIB) |
---|
65 | $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib |
---|
66 | |
---|
67 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
68 | cd $(top_builddir) \ |
---|
69 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|