source: rtems/c/src/wrapup/Makefile.am @ d81d057

4.104.114.84.95
Last change on this file since d81d057 was c4c4528, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 21, 2007 at 5:06:08 PM

2007-02-21 Ralf Corsépius <ralf.corsepius@…>

  • wrapup/Makefile.am: Use MKDIR_P instead of mkdir_p.
  • Property mode set to 100644
File size: 1.5 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_RDBG
20SRCS += ../librdbg/librdbg.a
21endif
22
23# FIXME: ATM, there is no libcpu.a, anymore.
24# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
25
26if LIBCHIP
27SRCS += ../libchip/librtcio.a
28SRCS += ../libchip/libserialio.a
29SRCS += ../libchip/libide.a
30if HAS_NETWORKING
31SRCS += ../libchip/libnetchip.a
32endif
33SRCS += ../libchip/libi2cio.a
34endif
35
36if HAS_MP
37SRCS += ../libchip/shmdr.rel
38endif
39
40o-optimize/librtemsbsp.a: $(SRCS)
41        rm -f $@
42        $(MKDIR_P) o-optimize
43        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
44        for f in $(SRCS); do \
45          case $$f in \
46          *.$(OBJEXT) | *.rel) \
47            if test -f o-optimize/`basename $$f`; then \
48              if cmp $$f o-optimize/`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 o-optimize/; \
56              chmod a-w o-optimize/`basename $$f`; \
57            fi; \
58            ;; \
59          *.a) \
60            cd o-optimize; \
61              $(AR) xv ../$$f || exit 1; \
62              chmod a-w * ; \
63            cd ..; \
64            ;; \
65          esac; \
66        done
67        $(AR) rc $@ o-optimize/*
68        rm -f o-optimize/*.$(OBJEXT) o-optimize/*.rel
69        $(RANLIB) $@
70
71include $(srcdir)/preinstall.am
72include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.