source: rtems/cpukit/wrapup/Makefile.am @ 0c819966

4.104.114.84.95
Last change on this file since 0c819966 was 25f419e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/09/02 at 07:31:54

2002-12-09 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Reflect changes to sapi/.
  • configure.ac: Reflect changes to sapi/.
  • Property mode set to 100644
File size: 2.1 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
11if LIBSCORECPU
12CPU_OBJS = ../score/cpu/$(RTEMS_CPU)/$(ARCH)/libscorecpu.a
13endif
14CORE_OBJS = ../score/src/$(ARCH)/libscore.a
15SAPI_OBJS = ../sapi/$(ARCH)/libsapi.a
16RTEMS_OBJS = ../rtems/$(ARCH)/librtems.a
17
18if HAS_POSIX
19POSIX_OBJS = ../posix/$(ARCH)/libposix.a
20endif
21
22if HAS_ITRON
23ITRON_OBJS = ../itron/$(ARCH)/libitron.a
24endif
25
26LIBCSUPPORT_OBJS = ../libcsupport/$(ARCH)/libcsupport.a
27
28LIBBLOCK_OBJS = ../libblock/$(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
39if LIBRPC
40LIBRPC_OBJS = \
41    ../librpc/src/rpc/$(ARCH)/librpc.a \
42    ../librpc/src/xdr/$(ARCH)/libxdr.a
43endif
44
45OBJS = $(CPU_OBJS) $(CORE_OBJS) $(RTEMS_OBJS) $(SAPI_OBJS) \
46    $(POSIX_OBJS) $(ITRON_OBJS) $(LIBCSUPPORT_OBJS) \
47    $(LIBBLOCK_OBJS) $(LIBDOSFS_OBJS) $(LIBIMFS_OBJS) \
48    $(NETWORKING_OBJS) $(LIBRPC_OBJS)
49
50$(LIB): ${OBJS}
51        rm -f $@
52        test -d $(ARCH) || mkdir $(ARCH)
53        rm -rf $(ARCH)/*
54        for f in $(OBJS); do \
55          case $$f in \
56          *.$(OBJEXT) | *.rel) \
57            if test -f $(ARCH)/`basename $$f`; then \
58              if cmp $$f $(ARCH)/`basename $$f`; then \
59                true; \
60              else \
61                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
62                exit 1; \
63              fi; \
64            else \
65              cp $$f $(ARCH)/; \
66              chmod a-w $(ARCH)/`basename $$f`; \
67            fi; \
68            ;; \
69          *.a) \
70            cd $(ARCH); \
71              $(AR) xv ../$$f || exit 1; \
72              chmod a-w * ; \
73            cd ..; \
74            ;; \
75          esac; \
76        done
77        test -d $(project_libdir)$(MULTISUBDIR) || $(mkinstalldirs) $(project_libdir)$(MULTISUBDIR)
78        $(AR) rc $@ $(ARCH)/*
79        rm -f $(ARCH)/*.$(OBJEXT)
80        $(RANLIB) $@
81
82TMPINSTALL_FILES += $(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a
83
84cpulibdir = $(libdir)
85cpulib_DATA = $(LIB)
86
87all-local: ${ARCH} $(TMPINSTALL_FILES)
88
89include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.