source: rtems/c/src/wrapup/Makefile.am @ 9a1ee94

4.104.114.84.9
Last change on this file since 9a1ee94 was 9a1ee94, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 26, 2005 at 1:15:04 AM

Remove libtelnetd.a (Moved to cpukit).

  • Property mode set to 100644
File size: 1.9 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7include $(top_srcdir)/automake/compile.am
8
9## Setup the variant build subdirectory
10project_lib_DATA = o-optimize/librtemsbsp.a
11CLEANFILES = o-optimize/librtemsbsp.a
12
13SRCS = ../support/libsupport.a
14
15if HAS_LIBBSP
16SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp.a
17endif
18
19if HAS_NETWORKING
20SRCS += ../libnetworking/pppd/libpppd.a
21endif
22
23if HAS_RDBG
24SRCS += ../librdbg/librdbg.a
25endif
26
27# FIXME: ATM, there is no libcpu.a, anymore.
28# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
29
30if LIBCHIP
31SRCS += ../libchip/librtcio.a
32SRCS += ../libchip/libserialio.a
33SRCS += ../libchip/libide.a
34if HAS_NETWORKING
35SRCS += ../libchip/libnetchip.a
36endif
37endif
38
39if HAS_MP
40SRCS += ../libchip/shmdr.rel
41endif
42
43all-local: $(TMPINSTALL_FILES)
44
45o-optimize/librtemsbsp.a: $(SRCS)
46        rm -f $@
47        $(mkdir_p) o-optimize
48        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
49        for f in $(SRCS); do \
50          case $$f in \
51          *.$(OBJEXT) | *.rel) \
52            if test -f o-optimize/`basename $$f`; then \
53              if cmp $$f o-optimize/`basename $$f`; then \
54                true; \
55              else \
56                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
57                exit 1; \
58              fi; \
59            else \
60              cp $$f o-optimize/; \
61              chmod a-w o-optimize/`basename $$f`; \
62            fi; \
63            ;; \
64          *.a) \
65            cd o-optimize; \
66              $(AR) xv ../$$f || exit 1; \
67              chmod a-w * ; \
68            cd ..; \
69            ;; \
70          esac; \
71        done
72        $(AR) rc $@ o-optimize/*
73        rm -f o-optimize/*.$(OBJEXT) o-optimize/*.rel
74        $(RANLIB) $@
75
76TMPINSTALL_FILES =
77
78$(PROJECT_LIB)/$(dirstamp):
79        @$(mkdir_p) $(PROJECT_LIB)
80        @: > $(PROJECT_LIB)/$(dirstamp)
81TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
82
83$(PROJECT_LIB)/librtemsbsp.a: o-optimize/librtemsbsp.a $(PROJECT_LIB)/$(dirstamp)
84        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemsbsp.a
85TMPINSTALL_FILES += $(PROJECT_LIB)/librtemsbsp.a
86
87CLEANFILES += $(TMPINSTALL_FILES)
88
89include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.