source: rtems/c/src/wrapup/Makefile.am @ 936c8d6

4.115
Last change on this file since 936c8d6 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
RevLine 
[33a105fb]1##
[c672d97]2##  build and install "glommed" librtemsbsp.a
[4bdebdfe]3##
[23e3f642]4
[514e77b7]5include $(top_srcdir)/automake/compile.am
[11cafc0]6
7## Setup the variant build subdirectory
[552fca7]8project_lib_DATA = o-optimize/librtemsbsp.a
[11cafc0]9CLEANFILES = o-optimize/librtemsbsp.a
[f92cc34]10
[552fca7]11SRCS = ../support/libsupport.a
[3c55718]12
[552fca7]13SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp.a
[3c55718]14
[11cafc0]15# FIXME: ATM, there is no libcpu.a, anymore.
[552fca7]16# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
[082972a]17
[f3bf21f2]18SRCS += ../libchip/libflash.a
[552fca7]19SRCS += ../libchip/librtcio.a
20SRCS += ../libchip/libserialio.a
21SRCS += ../libchip/libide.a
[0e31ed7]22if HAS_NETWORKING
[552fca7]23SRCS += ../libchip/libnetchip.a
[0e31ed7]24endif
[78111c3]25SRCS += ../libchip/libi2cio.a
[5c587596]26SRCS += ../libchip/libdisplay.a
[67bfd9a6]27
[a099e9a]28if HAS_MP
[552fca7]29SRCS += ../libchip/shmdr.rel
[a099e9a]30endif
31
[552fca7]32o-optimize/librtemsbsp.a: $(SRCS)
[11cafc0]33        rm -f $@
[c4c4528]34        $(MKDIR_P) o-optimize
[552fca7]35        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
[4bdebdfe]36        for f in $(SRCS); do \
[23e3f642]37          case $$f in \
[55ac4e1]38          *.$(OBJEXT) | *.rel) \
[552fca7]39            if test -f o-optimize/`basename $$f`; then \
40              if cmp $$f o-optimize/`basename $$f`; then \
[4bdebdfe]41                true; \
42              else \
43                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
44                exit 1; \
45              fi; \
46            else \
[552fca7]47              cp $$f o-optimize/; \
48              chmod a-w o-optimize/`basename $$f`; \
[4bdebdfe]49            fi; \
[23e3f642]50            ;; \
51          *.a) \
[552fca7]52            cd o-optimize; \
[ec5afe0]53              $(AR) xv ../$$f || exit 1; \
54              chmod a-w * ; \
55            cd ..; \
[23e3f642]56            ;; \
57          esac; \
[4bdebdfe]58        done
[8357ea27]59        ls o-optimize/*.$(OBJEXT) > $@-list
60        -ls o-optimize/*.rel >> $@-list
[6232750]61        $(AR) rc $@ @$@-list
62        rm -f $@-list o-optimize/*.$(OBJEXT) o-optimize/*.rel
[4bdebdfe]63        $(RANLIB) $@
[23e3f642]64
[2488213]65include $(srcdir)/preinstall.am
[514e77b7]66include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.