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 | INSTALL = @INSTALL@ |
---|
12 | |
---|
13 | # We only build the Network library if HAS_NETWORKING was defined |
---|
14 | NETWORK_yes_V = dec21140 ne2000 wd8003 |
---|
15 | NETWORK = $(NETWORK_$(HAS_NETWORKING)_V) |
---|
16 | |
---|
17 | BSP_PIECES=startup clock console timer $(NETWORK) |
---|
18 | GENERIC_PIECES= |
---|
19 | |
---|
20 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
21 | OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \ |
---|
22 | $(foreach piece, $(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).rel) |
---|
23 | LIB=$(ARCH)/libbsp.a |
---|
24 | |
---|
25 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
26 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
27 | |
---|
28 | # |
---|
29 | # (OPTIONAL) Add local stuff here using += |
---|
30 | # |
---|
31 | |
---|
32 | DEFINES += |
---|
33 | CPPFLAGS += |
---|
34 | CFLAGS += |
---|
35 | |
---|
36 | LD_PATHS += |
---|
37 | LD_LIBS += |
---|
38 | LDFLAGS += |
---|
39 | |
---|
40 | # |
---|
41 | # Add your list of files to delete here. The config files |
---|
42 | # already know how to delete some stuff, so you may want |
---|
43 | # to just run 'make clean' first to see what gets missed. |
---|
44 | # 'make clobber' already includes 'make clean' |
---|
45 | # |
---|
46 | |
---|
47 | CLEAN_ADDITIONS += |
---|
48 | CLOBBER_ADDITIONS += |
---|
49 | |
---|
50 | $(LIB): ${OBJS} |
---|
51 | $(make-library) |
---|
52 | |
---|
53 | all: ${ARCH} $(SRCS) $(LIB) |
---|
54 | $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib |
---|
55 | # we create here a directory specific to the PC386 BSP to store the BootImage |
---|
56 | # files so they can be easily found |
---|
57 | mkdir -p ${PROJECT_RELEASE}/BootImgs |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
Note: See
TracBrowser
for help on using the repository browser.