source: rtems/c/src/wrapup/Makefile.am @ c672d97

4.104.114.84.95
Last change on this file since c672d97 was c672d97, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 4, 2002 at 5:53:48 PM

2001-12-22 Ralf Corsepius <corsepiu@…>

  • configure.ac: Remove references to POSIX, ITRON, MULTILIB.
  • Makefile.ac: Remove librtems, libposix, libitron. Build librtemsbsp instead of librtemsall.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7AUTOMAKE_OPTIONS = foreign 1.4
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
26SRCS =  $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a
27SRCS += $(LIBNETWORKING) $(LIBRDBG) \
28    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
29    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
30    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
31    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
32    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
33    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
34    $(PROJECT_RELEASE)/lib/libfs$(LIB_VARIANT).a \
35    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
36
37TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
38
39all-local: $(ARCH) $(TMPINSTALL_FILES)
40
41$(LIB): $(SRCS)
42        rm -f $@
43        rm -rf $(ARCH)/*
44        for f in $(SRCS); do \
45          case $$f in \
46          *.o | *.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
71include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.