source: rtems/c/src/wrapup/Makefile.am @ 098cdaf6

4.104.114.84.95
Last change on this file since 098cdaf6 was 098cdaf6, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 28, 2002 at 8:50:34 PM

2002-02-28 Victor V. Vengerov <vvv@…>

  • DOS filesystem including FAT12, FAT16, and FAT32 support submitted.
  • Makefile.am: Modified to reflect addition.
  • 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.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/libblock$(LIB_VARIANT).a \
35    $(PROJECT_RELEASE)/lib/libfs$(LIB_VARIANT).a \
36    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
37
38TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
39
40all-local: $(ARCH) $(TMPINSTALL_FILES)
41
42$(LIB): $(SRCS)
43        rm -f $@
44        rm -rf $(ARCH)/*
45        for f in $(SRCS); do \
46          case $$f in \
47          *.o | *.rel) \
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; \
59            ;; \
60          *.a) \
61            cd $(ARCH); \
62              $(AR) xv ../$$f || exit 1; \
63              chmod a-w * ; \
64            cd ..; \
65            ;; \
66          esac; \
67        done
68        $(AR) rc $@ $(ARCH)/*
69        rm -f $(ARCH)/*
70        $(RANLIB) $@
71
72include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.