source: rtems/c/src/wrapup/Makefile.am @ 33a105fb

4.115
Last change on this file since 33a105fb was 33a105fb, checked in by Joel Sherrill <joel.sherrill@…>, on May 7, 2012 at 4:08:48 PM

Revert: Remove CVS Ids

See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.

  • Property mode set to 100644
File size: 1.6 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
15SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp.a
16
17# FIXME: ATM, there is no libcpu.a, anymore.
18# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
19
20SRCS += ../libchip/libflash.a
21SRCS += ../libchip/librtcio.a
22SRCS += ../libchip/libserialio.a
23SRCS += ../libchip/libide.a
24if HAS_NETWORKING
25SRCS += ../libchip/libnetchip.a
26endif
27SRCS += ../libchip/libi2cio.a
28SRCS += ../libchip/libdisplay.a
29
30if HAS_MP
31SRCS += ../libchip/shmdr.rel
32endif
33
34o-optimize/librtemsbsp.a: $(SRCS)
35        rm -f $@
36        $(MKDIR_P) o-optimize
37        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
38        for f in $(SRCS); do \
39          case $$f in \
40          *.$(OBJEXT) | *.rel) \
41            if test -f o-optimize/`basename $$f`; then \
42              if cmp $$f o-optimize/`basename $$f`; then \
43                true; \
44              else \
45                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
46                exit 1; \
47              fi; \
48            else \
49              cp $$f o-optimize/; \
50              chmod a-w o-optimize/`basename $$f`; \
51            fi; \
52            ;; \
53          *.a) \
54            cd o-optimize; \
55              $(AR) xv ../$$f || exit 1; \
56              chmod a-w * ; \
57            cd ..; \
58            ;; \
59          esac; \
60        done
61        ls o-optimize/*.$(OBJEXT) > $@-list
62        -ls o-optimize/*.rel >> $@-list
63        $(AR) rc $@ @$@-list
64        rm -f $@-list o-optimize/*.$(OBJEXT) o-optimize/*.rel
65        $(RANLIB) $@
66
67include $(srcdir)/preinstall.am
68include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.