source: rtems/c/src/wrapup/Makefile.am @ 082972a

4.104.114.84.95
Last change on this file since 082972a was 082972a, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 15, 2002 at 1:58:29 PM

2002-03-15 Ralf Corsepius <corsepiu@…>

  • configure.ac: Special treatment of the bare BSP. Add RTEMS_BSP_ALIAS. Add HAS_LIBBSP.
  • Makefile.am: Append libbsp.a to SRC conditionally.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7AUTOMAKE_OPTIONS = foreign 1.5
8ACLOCAL_AMFLAGS = -I ../../../aclocal
9
10include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
11include $(top_srcdir)/../../../automake/compile.am
12include $(top_srcdir)/../../../automake/lib.am
13
14LIB = $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
15
16if HAS_NETWORKING
17LIBNETWORKING = $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a \
18    $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
19    $(wildcard $(PROJECT_RELEASE)/lib/libxdr$(LIB_VARIANT).a)
20endif
21
22if HAS_RDBG
23LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
24endif
25
26if HAS_LIBBSP
27LIBBSP = $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a
28endif
29
30SRCS = $(LIBBSP) $(LIBNETWORKING) $(LIBRDBG) \
31    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
32    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
33    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
34    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
35    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
36    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
37        $(PROJECT_RELEASE)/lib/libblock$(LIB_VARIANT).a \
38    $(PROJECT_RELEASE)/lib/libfs$(LIB_VARIANT).a \
39    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
40
41TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
42
43all-local: $(ARCH) $(TMPINSTALL_FILES)
44
45$(LIB): $(SRCS)
46        rm -f $@
47        rm -rf $(ARCH)/*
48        for f in $(SRCS); do \
49          case $$f in \
50          *.o | *.rel) \
51            if test -f $(ARCH)/`basename $$f`; then \
52              if cmp $$f $(ARCH)/`basename $$f`; then \
53                true; \
54              else \
55                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
56                exit 1; \
57              fi; \
58            else \
59              cp $$f $(ARCH)/; \
60              chmod a-w $(ARCH)/`basename $$f`; \
61            fi; \
62            ;; \
63          *.a) \
64            cd $(ARCH); \
65              $(AR) xv ../$$f || exit 1; \
66              chmod a-w * ; \
67            cd ..; \
68            ;; \
69          esac; \
70        done
71        $(AR) rc $@ $(ARCH)/*
72        rm -f $(ARCH)/*
73        $(RANLIB) $@
74
75include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.