4.104.114.84.95
Last change
on this file since 17aa98d was
17aa98d,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/16/03 at 03:09:29
|
2003-01-15 Ralf Corsepius <corsepiu@…>
- wrapup/Makefile.am: Don't include @RTEMS_BSP@.cfg.
|
-
Property mode set to
100644
|
File size:
1.7 KB
|
Line | |
---|
1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | ## build and install "glommed" librtemsbsp.a |
---|
5 | ## |
---|
6 | |
---|
7 | include $(top_srcdir)/../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../automake/lib.am |
---|
9 | |
---|
10 | LIB = $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a |
---|
11 | |
---|
12 | if HAS_NETWORKING |
---|
13 | LIBNETWORKING = ../libnetworking/wrapup/$(ARCH)/libnetapps.a |
---|
14 | endif |
---|
15 | |
---|
16 | if HAS_RDBG |
---|
17 | LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a |
---|
18 | endif |
---|
19 | |
---|
20 | if HAS_LIBBSP |
---|
21 | LIBBSP = ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a |
---|
22 | endif |
---|
23 | |
---|
24 | if LIBCHIP |
---|
25 | LIBCHIP = \ |
---|
26 | ../libchip/rtc/$(ARCH)/librtcio.a \ |
---|
27 | ../libchip/serial/$(ARCH)/libserialio.a \ |
---|
28 | $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) |
---|
29 | endif |
---|
30 | |
---|
31 | SRCS = $(LIBBSP) $(LIBNETWORKING) $(LIBRDBG) \ |
---|
32 | $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \ |
---|
33 | $(LIBCHIP) \ |
---|
34 | $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT)) |
---|
35 | |
---|
36 | TMPINSTALL_FILES += $(LIB) |
---|
37 | |
---|
38 | all-local: $(ARCH) $(LIB) $(TMPINSTALL_FILES) |
---|
39 | |
---|
40 | $(LIB): $(SRCS) |
---|
41 | rm -f $@ |
---|
42 | rm -rf $(ARCH)/* |
---|
43 | test -d $(ARCH) || mkdir $(ARCH) |
---|
44 | for f in $(SRCS); do \ |
---|
45 | case $$f in \ |
---|
46 | *.$(OBJEXT) | *.rel) \ |
---|
47 | if test -f $(ARCH)/`basename $$f`; then \ |
---|
48 | if cmp $$f $(ARCH)/`basename $$f`; then \ |
---|
49 | true; \ |
---|
50 | else \ |
---|
51 | echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \ |
---|
52 | exit 1; \ |
---|
53 | fi; \ |
---|
54 | else \ |
---|
55 | cp $$f $(ARCH)/; \ |
---|
56 | chmod a-w $(ARCH)/`basename $$f`; \ |
---|
57 | fi; \ |
---|
58 | ;; \ |
---|
59 | *.a) \ |
---|
60 | cd $(ARCH); \ |
---|
61 | $(AR) xv ../$$f || exit 1; \ |
---|
62 | chmod a-w * ; \ |
---|
63 | cd ..; \ |
---|
64 | ;; \ |
---|
65 | esac; \ |
---|
66 | done |
---|
67 | $(AR) rc $@ $(ARCH)/* |
---|
68 | rm -f $(ARCH)/* |
---|
69 | $(RANLIB) $@ |
---|
70 | |
---|
71 | install-data-local: |
---|
72 | @$(mkinstalldirs) $(DESTDIR)$(bsplibdir) |
---|
73 | $(INSTALL_DATA) $(LIB) $(DESTDIR)$(bsplibdir) |
---|
74 | |
---|
75 | include $(top_srcdir)/../../automake/local.am |
---|
Note: See
TracBrowser
for help on using the repository browser.