4.104.114.84.95
Line | |
---|
1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | ## build and install libbsp |
---|
5 | ## |
---|
6 | |
---|
7 | AUTOMAKE_OPTIONS = foreign 1.4 |
---|
8 | |
---|
9 | BSP_PIECES = startup scitab console |
---|
10 | |
---|
11 | # pieces to pick up out of libcpu/sh/sh7032 |
---|
12 | CPU_PIECES = null clock timer sci delay |
---|
13 | |
---|
14 | # bummer; have to use $foreach since % pattern subst rules only replace 1x |
---|
15 | OBJS = $(foreach piece, $(BSP_PIECES), $(wildcard ../$(piece)/$(ARCH)/*.o)) \ |
---|
16 | $(foreach piece, $(CPU_PIECES), ../../../../libcpu/$(RTEMS_CPU)/sh7032/$(piece)/$(ARCH)/$(piece).rel) |
---|
17 | |
---|
18 | LIB = $(ARCH)/libbsp.a |
---|
19 | |
---|
20 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
21 | include $(top_srcdir)/../../../../../../automake/lib.am |
---|
22 | |
---|
23 | # |
---|
24 | # (OPTIONAL) Add local stuff here using = |
---|
25 | # |
---|
26 | |
---|
27 | $(LIB): $(OBJS) |
---|
28 | $(make-library) |
---|
29 | |
---|
30 | $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a: $(LIB) |
---|
31 | $(INSTALL_DATA) $< $@ |
---|
32 | |
---|
33 | TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a |
---|
34 | |
---|
35 | all-local: $(ARCH) $(OBJS) $(LIB) $(TMPINSTALL_FILES) |
---|
36 | |
---|
37 | .PRECIOUS: $(LIB) |
---|
38 | |
---|
39 | include $(top_srcdir)/../../../../../../automake/local.am |
---|
Note: See
TracBrowser
for help on using the repository browser.