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 | # We only build the ka9q device driver if HAS_KA9Q was defined |
---|
12 | KA9Q_DRIVER_yes_V = network |
---|
13 | KA9Q_DRIVER = $(KA9Q_DRIVER_$(HAS_KA9Q)_V) |
---|
14 | |
---|
15 | # pieces specific to this BSP |
---|
16 | BSP_PIECES=startup clock console css_iface timer tod $(KA9Q_DRIVER) |
---|
17 | |
---|
18 | # pieces to pick up out of libcpu/$(RTEMS_CPU) |
---|
19 | CPU_PIECES= |
---|
20 | |
---|
21 | # shared pieces |
---|
22 | GENERIC_PIECES= |
---|
23 | |
---|
24 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
25 | OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \ |
---|
26 | $(foreach piece, $(CPU_PIECES), \ |
---|
27 | ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) \ |
---|
28 | $(foreach piece, $(GENERIC_PIECES), \ |
---|
29 | ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
30 | LIB=$(ARCH)/libbsp.a |
---|
31 | |
---|
32 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
33 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
34 | |
---|
35 | # |
---|
36 | # (OPTIONAL) Add local stuff here using += |
---|
37 | # |
---|
38 | |
---|
39 | DEFINES += |
---|
40 | CPPFLAGS += |
---|
41 | CFLAGS += |
---|
42 | |
---|
43 | LD_PATHS += |
---|
44 | LD_LIBS += |
---|
45 | LDFLAGS += |
---|
46 | |
---|
47 | # |
---|
48 | # Add your list of files to delete here. The config files |
---|
49 | # already know how to delete some stuff, so you may want |
---|
50 | # to just run 'make clean' first to see what gets missed. |
---|
51 | # 'make clobber' already includes 'make clean' |
---|
52 | # |
---|
53 | |
---|
54 | CLEAN_ADDITIONS += |
---|
55 | CLOBBER_ADDITIONS += |
---|
56 | |
---|
57 | $(LIB): ${OBJS} |
---|
58 | $(make-library) |
---|
59 | |
---|
60 | all: ${ARCH} $(SRCS) $(LIB) |
---|
61 | $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib |
---|
62 | |
---|