source: rtems/cpukit/wrapup/Makefile.am @ 305dd8bd

4.104.114.84.95
Last change on this file since 305dd8bd was 305dd8bd, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jul 22, 2002 at 1:58:30 PM

2002-07-22 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Use .$(OBJEXT) instead of .o.
  • Property mode set to 100644
File size: 2.2 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
11CPU_OBJS = $(wildcard ../score/cpu/$(RTEMS_CPU)/$(ARCH)/*.$(OBJEXT))
12CORE_OBJS = $(wildcard ../score/src/$(ARCH)/*.$(OBJEXT))
13SAPI_OBJS = $(wildcard ../sapi/src/$(ARCH)/*.$(OBJEXT))
14RTEMS_OBJS = $(wildcard ../rtems/src/$(ARCH)/*.$(OBJEXT))
15
16if HAS_POSIX
17POSIX_OBJS = ../posix/src/$(ARCH)/libposix.a
18endif
19
20if HAS_ITRON
21ITRON_OBJS = ../itron/src/$(ARCH)/libitron.a
22endif
23
24LIBCSUPPORT_OBJS = ../libcsupport/$(ARCH)/libcsupport.a
25
26LIBBLOCK_OBJS = ../libblock/src/$(ARCH)/libblock.a
27if !UNIX
28LIBDOSFS_OBJS = ../libfs/src/dosfs/$(ARCH)/libdosfs.a
29endif
30LIBIMFS_OBJS = ../libfs/src/imfs/$(ARCH)/libimfs.a
31
32if HAS_NETWORKING
33NETWORKING_OBJS = \
34    ../libnetworking/wrapup/$(ARCH)/libnetworking.a \
35    ../librpc/src/rpc/$(ARCH)/librpc.a \
36    ../librpc/src/xdr/$(ARCH)/libxdr.a
37endif
38
39OBJS = $(CPU_OBJS) $(CORE_OBJS) $(RTEMS_OBJS) $(SAPI_OBJS) \
40    $(POSIX_OBJS) $(ITRON_OBJS) $(LIBCSUPPORT_OBJS) \
41    $(LIBBLOCK_OBJS) $(LIBDOSFS_OBJS) $(LIBIMFS_OBJS) \
42    $(NETWORKING_OBJS)
43
44$(LIB): ${OBJS}
45        rm -f $@
46        test -d $(ARCH) || mkdir $(ARCH)
47        rm -rf $(ARCH)/*
48        for f in $(OBJS); 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
78#$(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a: $(LIB)
79#       $(INSTALL_DATA) $< $@
80
81cpulibdir = $(libdir)
82cpulib_DATA = $(LIB)
83
84all-local: ${ARCH} $(TMPINSTALL_FILES)
85
86include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.