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

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

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