source: rtems/cpukit/wrapup/Makefile.am @ 33e6983

4.104.114.84.95
Last change on this file since 33e6983 was 33e6983, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/09/02 at 10:39:18

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

  • wrapup/Makefile.am: Remove *_OBJS, use LIBS+= instead.
  • configure.ac: Require autoconf >= 2.54, automake-1.7.2.
  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[20db683]1##
2## $Id$
3##
4
[405c7d1]5LIB = $(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a
[20db683]6
[fed6210d]7include $(top_srcdir)/automake/multilib.am
8include $(top_srcdir)/automake/compile.am
9include $(top_srcdir)/automake/lib.am
[20db683]10
[33e6983]11LIBS =
[2a582aa5]12if LIBSCORECPU
[33e6983]13LIBS += ../score/cpu/$(RTEMS_CPU)/$(ARCH)/libscorecpu.a
[2a582aa5]14endif
[33e6983]15LIBS += ../score/$(ARCH)/libscore.a
16LIBS += ../sapi/$(ARCH)/libsapi.a
17LIBS += ../rtems/$(ARCH)/librtems.a
[20db683]18
19if HAS_POSIX
[33e6983]20LIBS += ../posix/$(ARCH)/libposix.a
[20db683]21endif
22
23if HAS_ITRON
[33e6983]24LIBS += ../itron/$(ARCH)/libitron.a
[20db683]25endif
26
[33e6983]27LIBS += ../libcsupport/$(ARCH)/libcsupport.a
[90926129]28
[33e6983]29LIBS += ../libblock/$(ARCH)/libblock.a
[35cd6ae]30if !UNIX
[33e6983]31LIBS += ../libfs/src/dosfs/$(ARCH)/libdosfs.a
[35cd6ae]32endif
[33e6983]33LIBS += ../libfs/src/imfs/$(ARCH)/libimfs.a
[35cd6ae]34
[3e39b47]35if HAS_NETWORKING
[33e6983]36LIBS += ../libnetworking/wrapup/$(ARCH)/libnetworking.a
[2a582aa5]37endif
38
39if LIBRPC
[33e6983]40LIBS += ../librpc/src/rpc/$(ARCH)/librpc.a
41LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.a
[3e39b47]42endif
43
[33e6983]44$(LIB): ${LIBS}
[3e39b47]45        rm -f $@
46        test -d $(ARCH) || mkdir $(ARCH)
47        rm -rf $(ARCH)/*
[33e6983]48        for f in $(LIBS); do \
[3e39b47]49          case $$f in \
[305dd8bd]50          *.$(OBJEXT) | *.rel) \
[3e39b47]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
[405c7d1]71        test -d $(project_libdir)$(MULTISUBDIR) || $(mkinstalldirs) $(project_libdir)$(MULTISUBDIR)
[3e39b47]72        $(AR) rc $@ $(ARCH)/*
[305dd8bd]73        rm -f $(ARCH)/*.$(OBJEXT)
[3e39b47]74        $(RANLIB) $@
[20db683]75
[405c7d1]76TMPINSTALL_FILES += $(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a
[20db683]77
[fa348b7d]78cpulibdir = $(libdir)
79cpulib_DATA = $(LIB)
[dd2906e]80
[20db683]81all-local: ${ARCH} $(TMPINSTALL_FILES)
82
[fed6210d]83include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.