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