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

4.104.114.84.9
Last change on this file since e73e576 was e73e576, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 25, 2002 at 5:15:00 PM

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

  • configure.ac: Add librpc. AC_PROG_RANLIB.
  • wrapup/Makefile.am: Add librpc. Use relative path to lib*.a for POSIX_OBJS, ITRON_OBJS, NETWORKING_OBJS.
  • 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 = ../posix/src/$(ARCH)/libposix.a
20endif
21
22if HAS_ITRON
23ITRON_OBJS = ../itron/src/$(ARCH)/libitron.a
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 \
37    ../librpc/src/rpc/$(ARCH)/librpc.a \
38    ../librpc/src/rpc/$(ARCH)/libxdr.a
39endif
40
41OBJS = $(CPU_OBJS) $(CORE_OBJS) $(RTEMS_OBJS) $(SAPI_OBJS) \
42    $(POSIX_OBJS) $(ITRON_OBJS) $(LIBCSUPPORT_OBJS) \
43    $(LIBBLOCK_OBJS) $(LIBDOSFS_OBJS) $(LIBIMFS_OBJS) \
44    $(NETWORKING_OBJS)
45
46$(LIB): ${OBJS}
47        rm -f $@
48        test -d $(ARCH) || mkdir $(ARCH)
49        rm -rf $(ARCH)/*
50        for f in $(OBJS); do \
51          case $$f in \
52          *.o | *.rel) \
53            if test -f $(ARCH)/`basename $$f`; then \
54              if cmp $$f $(ARCH)/`basename $$f`; then \
55                true; \
56              else \
57                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
58                exit 1; \
59              fi; \
60            else \
61              cp $$f $(ARCH)/; \
62              chmod a-w $(ARCH)/`basename $$f`; \
63            fi; \
64            ;; \
65          *.a) \
66            cd $(ARCH); \
67              $(AR) xv ../$$f || exit 1; \
68              chmod a-w * ; \
69            cd ..; \
70            ;; \
71          esac; \
72        done
73        $(AR) rc $@ $(ARCH)/*
74        rm -f $(ARCH)/*.o
75        $(RANLIB) $@
76
77TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
78
79#$(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
80#       $(INSTALL_DATA) $< $@
81
82install-hook: $(LIB)
83        @$(mkinstalldirs) $(libdir)
84        $(INSTALL_DATA) $(LIB) $(libdir)
85
86all-local: ${ARCH} $(TMPINSTALL_FILES)
87
88include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.