4.104.114.84.95
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | VPATH = @srcdir@ |
---|
8 | RTEMS_ROOT = @top_srcdir@ |
---|
9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
10 | |
---|
11 | BSP_PIECES=startup clock console shmsupp timer vectors |
---|
12 | # pieces to pick up out of libcpu/ppc |
---|
13 | CPU_PIECES= |
---|
14 | GENERIC_PIECES= |
---|
15 | |
---|
16 | ifeq ($(HAS_MP),yes) |
---|
17 | GENERIC_PIECES += shmdr |
---|
18 | BSP_PIECES += shmsupp |
---|
19 | endif |
---|
20 | |
---|
21 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
22 | OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \ |
---|
23 | $(foreach piece, $(CPU_PIECES), \ |
---|
24 | ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) \ |
---|
25 | $(foreach piece, $(GENERIC_PIECES), \ |
---|
26 | ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
27 | LIB=$(ARCH)/libbsp.a |
---|
28 | |
---|
29 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
30 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
31 | |
---|
32 | # |
---|
33 | # (OPTIONAL) Add local stuff here using += |
---|
34 | # |
---|
35 | |
---|
36 | DEFINES += |
---|
37 | CPPFLAGS += |
---|
38 | CFLAGS += |
---|
39 | |
---|
40 | LD_PATHS += |
---|
41 | LD_LIBS += |
---|
42 | LDFLAGS += |
---|
43 | |
---|
44 | # |
---|
45 | # Add your list of files to delete here. The config files |
---|
46 | # already know how to delete some stuff, so you may want |
---|
47 | # to just run 'make clean' first to see what gets missed. |
---|
48 | # 'make clobber' already includes 'make clean' |
---|
49 | # |
---|
50 | |
---|
51 | CLEAN_ADDITIONS += |
---|
52 | CLOBBER_ADDITIONS += |
---|
53 | |
---|
54 | $(LIB): ${OBJS} |
---|
55 | $(make-library) |
---|
56 | |
---|
57 | all: ${ARCH} $(SRCS) $(LIB) |
---|
58 | $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib |
---|
59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.