OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [wrapup/] [Makefile.am] - Blame information for rev 300

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
##
2
##  $Id: Makefile.am,v 1.2 2001-09-27 12:02:48 chris Exp $
3
##
4
##  build and install "glommed" librtemsall.a
5
##
6
 
7
AUTOMAKE_OPTIONS = foreign 1.4
8
 
9
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
10
include $(top_srcdir)/../../automake/lib.am
11
 
12
LIB = $(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a
13
 
14
if HAS_NETWORKING
15
LIBNETWORKING = $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a \
16
    $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a \
17
    $(PROJECT_RELEASE)/lib/libxdr$(LIB_VARIANT).a
18
endif
19
 
20
if HAS_RDBG
21
LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
22
endif
23
 
24
SRCS = $(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
25
    $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a \
26
    $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
27
    $(wildcard $(PROJECT_RELEASE)/lib/libitron$(LIB_VARIANT).a) \
28
    $(LIBNETWORKING) $(LIBRDBG) \
29
    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
30
    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
31
    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
32
    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
33
    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
34
    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
35
    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
36
 
37
TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a
38
 
39
all-local: $(ARCH) $(TMPINSTALL_FILES)
40
 
41
$(LIB): $(SRCS)
42
        rm -f $@
43
        rm -rf $(ARCH)/*
44
        for f in $(SRCS); do \
45
          case $$f in \
46
          *.o | *.rel) \
47
            if test -f $(ARCH)/`basename $$f`; then \
48
              if cmp $$f $(ARCH)/`basename $$f`; then \
49
                true; \
50
              else \
51
                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
52
                exit 1; \
53
              fi; \
54
            else \
55
              cp $$f $(ARCH)/; \
56
              chmod a-w $(ARCH)/`basename $$f`; \
57
            fi; \
58
            ;; \
59
          *.a) \
60
            (cd $(ARCH); \
61
             $(AR) x ../$$f; \
62
             test $$? -eq 0 || exit 1; \
63
             chmod a-w *; ) \
64
            ;; \
65
          esac; \
66
        done
67
        $(AR) rc $@ $(ARCH)/*
68
        rm -f $(ARCH)/*
69
        $(RANLIB) $@
70
 
71
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.