source: rtems/cpukit/wrapup/Makefile.am @ ae49cd6a

4.104.114.84.95
Last change on this file since ae49cd6a was ae49cd6a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/15/03 at 15:10:51

2003-07-15 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Remove bogus $(MULTISUBDIR).
  • Property mode set to 100644
File size: 1.8 KB
Line 
1##
2## $Id$
3##
4
5LIB = $(project_libdir)/librtemscpu$(LIB_VARIANT).a
6
7include $(top_srcdir)/automake/multilib.am
8include $(top_srcdir)/automake/compile.am
9include $(top_srcdir)/automake/lib.am
10
11LIBS =
12if LIBSCORECPU
13LIBS += ../score/cpu/$(RTEMS_CPU)/$(ARCH)/libscorecpu.a
14endif
15LIBS += ../score/$(ARCH)/libscore.a
16LIBS += ../sapi/$(ARCH)/libsapi.a
17LIBS += ../rtems/$(ARCH)/librtems.a
18
19if HAS_POSIX
20LIBS += ../posix/$(ARCH)/libposix.a
21endif
22
23if HAS_ITRON
24LIBS += ../itron/$(ARCH)/libitron.a
25endif
26
27LIBS += ../libcsupport/$(ARCH)/libcsupport.a
28
29LIBS += ../libblock/$(ARCH)/libblock.a
30if !UNIX
31LIBS += ../libfs/src/dosfs/$(ARCH)/libdosfs.a
32endif
33LIBS += ../libfs/src/imfs/$(ARCH)/libimfs.a
34
35LIBS += ../libmisc/wrapup/$(ARCH)/libmisc.a
36
37if HAS_NETWORKING
38LIBS += ../libnetworking/wrapup/$(ARCH)/libnetworking.a
39endif
40
41if LIBRPC
42LIBS += ../librpc/src/rpc/$(ARCH)/librpc.a
43LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.a
44endif
45
46$(LIB): ${LIBS}
47        rm -f $@
48        rm -rf $(ARCH)/*
49        for f in $(LIBS); do \
50          case $$f in \
51          *.$(OBJEXT) | *.rel) \
52            if test -f $(ARCH)/`basename $$f`; then \
53              if cmp $$f $(ARCH)/`basename $$f`; then \
54                true; \
55              else \
56                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
57                exit 1; \
58              fi; \
59            else \
60              cp $$f $(ARCH)/; \
61              chmod a-w $(ARCH)/`basename $$f`; \
62            fi; \
63            ;; \
64          *.a) \
65            cd $(ARCH); \
66              $(AR) xv ../$$f || exit 1; \
67              chmod a-w * ; \
68            cd ..; \
69            ;; \
70          esac; \
71        done
72        test -d $(project_libdir) || $(mkinstalldirs) $(project_libdir)
73        $(AR) rc $@ $(ARCH)/*
74        rm -f $(ARCH)/*.$(OBJEXT)
75        $(RANLIB) $@
76
77TMPINSTALL_FILES += $(project_libdir)/librtemscpu$(LIB_VARIANT).a
78
79all-am: $(ARCH) $(LIB) $(TMPINSTALL_FILES)
80
81install-data-hook: $(LIB)
82        @$(mkinstalldirs) $(DESTDIR)$(libdir)
83        $(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir)
84
85include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.