source: rtems/cpukit/wrapup/Makefile.am @ 7001a48

4.104.114.84.9
Last change on this file since 7001a48 was 7001a48, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 18, 2002 at 12:29:02 PM

2002-06-18 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Use relative path to lib*.a for LIBCSUPPORT_OBJS, LIBBLOCK_OBJS, LIBDOSFS_OBJS, LIBIMFS_OBJS.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2## $Id$
3##
4
5
6LIBNAME = librtemscpu
7LIB = $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
8
9include $(top_srcdir)/automake/multilib.am
10include $(top_srcdir)/automake/compile.am
11include $(top_srcdir)/automake/lib.am
12
13CPU_OBJS = $(wildcard ../score/cpu/$(RTEMS_CPU)/$(ARCH)/*.rel)
14CORE_OBJS = $(wildcard ../score/src/$(ARCH)/*.o)
15SAPI_OBJS = $(wildcard ../sapi/src/$(ARCH)/*.o)
16RTEMS_OBJS = $(wildcard ../rtems/src/$(ARCH)/*.o)
17
18if HAS_POSIX
19POSIX_OBJS = $(wildcard ../posix/src/$(ARCH)/*.o)
20endif
21
22if HAS_ITRON
23ITRON_OBJS = $(wildcard ../itron/src/$(ARCH)/*.o)
24endif
25
26LIBCSUPPORT_OBJS = ../libcsupport/$(ARCH)/libcsupport.a
27
28LIBBLOCK_OBJS = ../libblock/src/$(ARCH)/libblock.a
29if !UNIX
30LIBDOSFS_OBJS = ../libfs/src/dosfs/$(ARCH)/libdosfs.a
31endif
32LIBIMFS_OBJS = ../libfs/src/imfs/$(ARCH)/libimfs.a
33
34if HAS_NETWORKING
35NETWORKING_OBJS = \
36    ../libnetworking/wrapup/$(ARCH)/libnetworking.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          *.o | *.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        $(AR) rc $@ $(ARCH)/*
72        rm -f $(ARCH)/*.o
73        $(RANLIB) $@
74
75TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
76
77#$(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
78#       $(INSTALL_DATA) $< $@
79
80install-hook: $(LIB)
81        @$(mkinstalldirs) $(libdir)
82        $(INSTALL_DATA) $(LIB) $(libdir)
83
84all-local: ${ARCH} $(TMPINSTALL_FILES)
85
86include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.