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

4.104.114.84.95
Last change on this file since e73e576 was e73e576, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/25/02 at 17:15:00

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
RevLine 
[20db683]1##
2## $Id$
3##
4
5
6LIBNAME = librtemscpu
[3e39b47]7LIB = $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
[20db683]8
[fed6210d]9include $(top_srcdir)/automake/multilib.am
10include $(top_srcdir)/automake/compile.am
11include $(top_srcdir)/automake/lib.am
[20db683]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
[e73e576]19POSIX_OBJS = ../posix/src/$(ARCH)/libposix.a
[20db683]20endif
21
22if HAS_ITRON
[e73e576]23ITRON_OBJS = ../itron/src/$(ARCH)/libitron.a
[20db683]24endif
25
[7001a48]26LIBCSUPPORT_OBJS = ../libcsupport/$(ARCH)/libcsupport.a
[90926129]27
[7001a48]28LIBBLOCK_OBJS = ../libblock/src/$(ARCH)/libblock.a
[35cd6ae]29if !UNIX
[7001a48]30LIBDOSFS_OBJS = ../libfs/src/dosfs/$(ARCH)/libdosfs.a
[35cd6ae]31endif
[7001a48]32LIBIMFS_OBJS = ../libfs/src/imfs/$(ARCH)/libimfs.a
[35cd6ae]33
[3e39b47]34if HAS_NETWORKING
35NETWORKING_OBJS = \
[e73e576]36    ../libnetworking/wrapup/$(ARCH)/libnetworking.a \
37    ../librpc/src/rpc/$(ARCH)/librpc.a \
38    ../librpc/src/rpc/$(ARCH)/libxdr.a
[3e39b47]39endif
40
[20db683]41OBJS = $(CPU_OBJS) $(CORE_OBJS) $(RTEMS_OBJS) $(SAPI_OBJS) \
[35cd6ae]42    $(POSIX_OBJS) $(ITRON_OBJS) $(LIBCSUPPORT_OBJS) \
[3e39b47]43    $(LIBBLOCK_OBJS) $(LIBDOSFS_OBJS) $(LIBIMFS_OBJS) \
44    $(NETWORKING_OBJS)
[20db683]45
46$(LIB): ${OBJS}
[3e39b47]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) $@
[20db683]76
77TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a
78
[3e39b47]79#$(PROJECT_RELEASE)/lib$(MULTISUBDIR)/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
80#       $(INSTALL_DATA) $< $@
[20db683]81
[dd2906e]82install-hook: $(LIB)
83        @$(mkinstalldirs) $(libdir)
84        $(INSTALL_DATA) $(LIB) $(libdir)
85
[20db683]86all-local: ${ARCH} $(TMPINSTALL_FILES)
87
[fed6210d]88include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.