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

4.104.114.84.95
Last change on this file since f22ebf0 was 3e39b47, checked in by Joel Sherrill <joel.sherrill@…>, on May 29, 2002 at 5:01:22 PM

2002-05-29 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add libnetworking.
  • wrapup/Makefile.am: Ditto.
  • Property mode set to 100644
File size: 2.1 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 = $(wildcard ../libcsupport/src/$(ARCH)/*.o)
27
28LIBBLOCK_OBJS = $(wildcard ../libblock/$(ARCH)/*.o)
29if !UNIX
30LIBDOSFS_OBJS = $(wildcard ../libfs/src/dosfs/$(ARCH)/*.o)
31endif
32LIBIMFS_OBJS = $(wildcard ../libfs/src/imfs/$(ARCH)/*.o)
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.