OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [wrapup/] [Makefile.am] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
##
2
## Makefile.am,v 1.21 2002/08/01 12:01:08 ralf Exp
3
##
4
 
5
LIB = $(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a
6
 
7
include $(top_srcdir)/automake/multilib.am
8
include $(top_srcdir)/automake/compile.am
9
include $(top_srcdir)/automake/lib.am
10
 
11
if LIBSCORECPU
12
CPU_OBJS = ../score/cpu/$(RTEMS_CPU)/$(ARCH)/libscorecpu.a
13
endif
14
CORE_OBJS = ../score/src/$(ARCH)/libscore.a
15
SAPI_OBJS = ../sapi/src/$(ARCH)/libsapi.a
16
RTEMS_OBJS = ../rtems/src/$(ARCH)/librtems.a
17
 
18
if HAS_POSIX
19
POSIX_OBJS = ../posix/src/$(ARCH)/libposix.a
20
endif
21
 
22
if HAS_ITRON
23
ITRON_OBJS = ../itron/src/$(ARCH)/libitron.a
24
endif
25
 
26
LIBCSUPPORT_OBJS = ../libcsupport/$(ARCH)/libcsupport.a
27
 
28
LIBBLOCK_OBJS = ../libblock/$(ARCH)/libblock.a
29
if !UNIX
30
LIBDOSFS_OBJS = ../libfs/src/dosfs/$(ARCH)/libdosfs.a
31
endif
32
LIBIMFS_OBJS = ../libfs/src/imfs/$(ARCH)/libimfs.a
33
 
34
if HAS_NETWORKING
35
NETWORKING_OBJS = \
36
    ../libnetworking/wrapup/$(ARCH)/libnetworking.a
37
endif
38
 
39
if LIBRPC
40
LIBRPC_OBJS = \
41
    ../librpc/src/rpc/$(ARCH)/librpc.a \
42
    ../librpc/src/xdr/$(ARCH)/libxdr.a
43
endif
44
 
45
OBJS = $(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
 
82
TMPINSTALL_FILES += $(project_libdir)$(MULTISUBDIR)/librtemscpu$(LIB_VARIANT).a
83
 
84
cpulibdir = $(libdir)
85
cpulib_DATA = $(LIB)
86
 
87
all-local: ${ARCH} $(TMPINSTALL_FILES)
88
 
89
include $(top_srcdir)/automake/local.am

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.