source: rtems/c/src/make/Makefile.am @ 49a97a91

4.115
Last change on this file since 49a97a91 was 49a97a91, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/29/11 at 03:43:00

2011-03-29 Ralf Corsépius <ralf.corsepius@…>

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