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 Dec 9, 2002 at 10:39:18 AM

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
Line 
1##
2## $Id$
3##
4
5LIB = $(project_libdir)$(MULTISUBDIR)/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
35if HAS_NETWORKING
36LIBS += ../libnetworking/wrapup/$(ARCH)/libnetworking.a
37endif
38
39if LIBRPC
40LIBS += ../librpc/src/rpc/$(ARCH)/librpc.a
41LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.a
42endif
43
44$(LIB): ${LIBS}
45        rm -f $@
46        test -d $(ARCH) || mkdir $(ARCH)
47        rm -rf $(ARCH)/*
48        for f in $(LIBS); do \
49          case $$f in \
50          *.$(OBJEXT) | *.rel) \
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
71        test -d $(project_libdir)$(MULTISUBDIR) || $(mkinstalldirs) $(project_libdir)$(MULTISUBDIR)
72        $(AR) rc $@ $(ARCH)/*
73        rm -f $(ARCH)/*.$(OBJEXT)
74        $(RANLIB) $@
75
76TMPINSTALL_FILES += $(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a
77
78cpulibdir = $(libdir)
79cpulib_DATA = $(LIB)
80
81all-local: ${ARCH} $(TMPINSTALL_FILES)
82
83include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.