source: rtems/c/src/wrapup/Makefile.am @ 94f4a9ba

4.104.114.84.95
Last change on this file since 94f4a9ba was 94f4a9ba, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/09/02 at 09:47:16

2002-08-09 Ralf Corsepius <corsepiu@…>

  • configure.ac: Merge wrapup/configure.ac. Cosmetic cleanups.
  • Makefile.am: Add wrapup-SUBDIR.
  • wrapup/ChangeLog: Remove.
  • wrapup/configure.ac: Remove.
  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[4bdebdfe]1##
2##  $Id$
3##
[c672d97]4##  build and install "glommed" librtemsbsp.a
[4bdebdfe]5##
[23e3f642]6
7include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
[94f4a9ba]8include $(top_srcdir)/../../automake/compile.am
9include $(top_srcdir)/../../automake/lib.am
[23e3f642]10
[c672d97]11LIB = $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
[f92cc34]12
[4bdebdfe]13if HAS_NETWORKING
[765a1f06]14LIBNETWORKING = ../libnetworking/wrapup/$(ARCH)/libnetapps.a
[4bdebdfe]15endif
16
17if HAS_RDBG
18LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
19endif
20
[082972a]21if HAS_LIBBSP
[daaacdb]22LIBBSP = ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a
[082972a]23endif
24
25SRCS = $(LIBBSP) $(LIBNETWORKING) $(LIBRDBG) \
[23e3f642]26    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
27    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
28    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
29    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
[74232ef5]30    ../libmisc/wrapup/$(ARCH)/libmisc.a \
[23e3f642]31    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
32
[94f4a9ba]33TMPINSTALL_FILES += $(LIB)
[23e3f642]34
[df49c60]35all-local: $(ARCH) $(TMPINSTALL_FILES)
[23e3f642]36
[4bdebdfe]37$(LIB): $(SRCS)
38        rm -f $@
39        rm -rf $(ARCH)/*
[2984cf1b]40        test -d $(ARCH) || mkdir $(ARCH)
[4bdebdfe]41        for f in $(SRCS); do \
[23e3f642]42          case $$f in \
[4bdebdfe]43          *.o | *.rel) \
44            if test -f $(ARCH)/`basename $$f`; then \
45              if cmp $$f $(ARCH)/`basename $$f`; then \
46                true; \
47              else \
48                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
49                exit 1; \
50              fi; \
51            else \
52              cp $$f $(ARCH)/; \
53              chmod a-w $(ARCH)/`basename $$f`; \
54            fi; \
[23e3f642]55            ;; \
56          *.a) \
[ec5afe0]57            cd $(ARCH); \
58              $(AR) xv ../$$f || exit 1; \
59              chmod a-w * ; \
60            cd ..; \
[23e3f642]61            ;; \
62          esac; \
[4bdebdfe]63        done
64        $(AR) rc $@ $(ARCH)/*
65        rm -f $(ARCH)/*
66        $(RANLIB) $@
[23e3f642]67
[2984cf1b]68bsplib_DATA = $(LIB)
69
[94f4a9ba]70include $(top_srcdir)/../../automake/local.am
Note: See TracBrowser for help on using the repository browser.