source: rtems/c/src/wrapup/Makefile.am @ 514e77b7

4.104.114.84.95
Last change on this file since 514e77b7 was 514e77b7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/16/03 at 13:02:30

2003-08-16 Ralf Corsepius <corsepiu@…>

Makefile.am: Reflect having moved automake.
lib/Makefile.am: Reflect having moved automake.
support/Makefile.am: Reflect having moved automake.
wrapup/Makefile.am: Reflect having moved automake.

  • 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
[514e77b7]7include $(top_srcdir)/automake/compile.am
8include $(top_srcdir)/automake/lib.am
[23e3f642]9
[c672d97]10LIB = $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
[f92cc34]11
[3c55718]12SRCS = ../support/${ARCH}/libsupport.a
13
14if HAS_LIBBSP
15SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a
16endif
17
[4bdebdfe]18if HAS_NETWORKING
[3c55718]19SRCS += ../libnetworking/wrapup/$(ARCH)/libnetapps.a
[4bdebdfe]20endif
21
22if HAS_RDBG
[3c55718]23SRCS += $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
[4bdebdfe]24endif
25
[3c55718]26SRCS += $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a)
[082972a]27
[67bfd9a6]28if LIBCHIP
[3c55718]29SRCS += ../libchip/rtc/$(ARCH)/librtcio.a
30SRCS += ../libchip/serial/$(ARCH)/libserialio.a
[8a7f8c23]31SRCS += ../libchip/ide/$(ARCH)/libide.a
[3c55718]32SRCS += $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a)
[67bfd9a6]33endif
34
[3c55718]35SRCS += $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT))
[23e3f642]36
[94f4a9ba]37TMPINSTALL_FILES += $(LIB)
[23e3f642]38
[131814f]39all-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]72install-data-local:
73        @$(mkinstalldirs) $(DESTDIR)$(bsplibdir)
74        $(INSTALL_DATA) $(LIB) $(DESTDIR)$(bsplibdir)
[2984cf1b]75
[514e77b7]76include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.