source: rtems/c/src/make/Makefile.am @ f2e0f8e

5
Last change on this file since f2e0f8e 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: 2.5 KB
Line 
1ACLOCAL_AMFLAGS = -I aclocal -I ../aclocal
2
3CLEANFILES =
4
5rtems_makedir = $(pkgdatadir)/make
6
7GENERIC_FILES = host.cfg
8
9MAKE_FILES = README directory.cfg lib.cfg
10
11rtems_make_DATA = $(MAKE_FILES) $(GENERIC_FILES)
12
13noinst_DATA = leaf.cfg
14EXTRA_DIST = leaf.cfg
15
16rtemsdir = $(exec_prefix)
17rtems_bspdir = $(rtemsdir)/@RTEMS_BSP@
18rtems_bsp_DATA = Makefile.inc
19
20rtems_bsp_makedir = $(rtems_bspdir)/make
21rtems_bsp_make_DATA = bsp.cfg target.cfg
22
23bsp.cfg: bsp.cfg.in Makefile
24        sed \
25        -e "s|[@]HAS_MP[@]|$(HAS_MP)|" \
26        -e "s|[@]HAS_POSIX_API[@]|$(HAS_POSIX_API)|" \
27        -e "s|[@]HAS_CPLUSPLUS[@]|$(HAS_CPLUSPLUS)|" \
28        -e "s|[@]HAS_NETWORKING[@]|$(HAS_NETWORKING)|" \
29        < $(srcdir)/bsp.cfg.in > bsp.cfg
30CLEANFILES += bsp.cfg
31
32target.cfg: target.cfg.in Makefile
33        sed \
34        -e "s|[@]RTEMS_API[@]|$(RTEMS_API)|" \
35        -e "s|[@]CPPFLAGS[@]|$(CPPFLAGS)|" \
36        -e "s|[@]CFLAGS[@]|$(CFLAGS)|" \
37        -e "s|[@]LIBS[@]|$(LIBS)|" \
38        -e "s|[@]CC[@]|$(CC)|" \
39        -e "s|[@]CXX[@]|$(CXX)|" \
40        -e "s|[@]AS[@]|$(AS)|" \
41        -e "s|[@]AR[@]|$(AR)|" \
42        -e "s|[@]NM[@]|$(NM)|" \
43        -e "s|[@]LD[@]|$(LD)|" \
44        -e "s|[@]SIZE[@]|$(SIZE)|" \
45        -e "s|[@]STRIP[@]|$(STRIP)|" \
46        -e "s|[@]RANLIB[@]|$(RANLIB)|" \
47        -e "s|[@]OBJCOPY[@]|$(OBJCOPY)|" \
48        -e "s|[@]RTEMS_CPU[@]|$(RTEMS_CPU)|" \
49        -e "s|[@]RTEMS_HAS_MULTIPROCESSING[@]|$(HAS_MP)|" \
50        -e "s|[@]RTEMS_HAS_POSIX_API[@]|$(HAS_POSIX_API)|" \
51        -e "s|[@]RTEMS_HAS_CPLUSPLUS[@]|$(HAS_CPLUSPLUS)|" \
52        -e "s|[@]RTEMS_HAS_NETWORKING[@]|$(HAS_NETWORKING)|" \
53        < $(srcdir)/target.cfg.in > target.cfg
54CLEANFILES += target.cfg
55
56host.cfg: host.cfg.in Makefile
57        sed \
58        -e "s|[@]CP[@]|$(CP)|" \
59        -e "s|[@]MV[@]|$(MV)|" \
60        -e "s|[@]LN[@]|$(LN)|" \
61        -e "s|[@]SHELL[@]|$(SHELL)|" \
62        -e "s|[@]KSH[@]|$(KSH)|" \
63        < $(srcdir)/host.cfg.in > host.cfg
64CLEANFILES += host.cfg
65
66Makefile.inc: Makefile.inc.in Makefile
67        sed \
68        -e "s|[@]prefix[@]|$(prefix)|" \
69        -e "s|[@]exec_prefix[@]|$(exec_prefix)|" \
70        -e "s|[@]pkgdatadir[@]|$(pkgdatadir)|" \
71        -e "s|[@]RTEMS_BSP[@]|$(RTEMS_BSP)|" \
72        -e "s|[@]CC[@]|$(CC)|" \
73        -e "s|[@]CXX[@]|$(CXX)|" \
74        -e "s|[@]AS[@]|$(AS)|" \
75        -e "s|[@]AR[@]|$(AR)|" \
76        -e "s|[@]NM[@]|$(NM)|" \
77        -e "s|[@]LD[@]|$(LD)|" \
78        -e "s|[@]SIZE[@]|$(SIZE)|" \
79        -e "s|[@]OBJCOPY[@]|$(OBJCOPY)|" \
80        -e "s|[@]RTEMS_HAS_POSIX_API[@]|$(HAS_POSIX_API)|" \
81        -e "s|[@]RTEMS_HAS_CPLUSPLUS[@]|$(HAS_CPLUSPLUS)|" \
82        < $(srcdir)/Makefile.inc.in > Makefile.inc
83CLEANFILES += Makefile.inc
84
85## At the moment all actively supported configurations
86## use gcc-target-default.cfg only.
87rtems_make_compilersdir = $(rtems_makedir)/compilers
88dist_rtems_make_compilers_DATA = compilers/gcc-target-default.cfg
89
90include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.