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

4.115
Last change on this file since 7838411 was 7838411, checked in by Sebastian Huber <sebastian.huber@…>, on 01/26/12 at 08:57:57

Revert "Support custom Makefiles."

This reverts commit 621e1c9b74272ff94efec749c6c4a673a7c315e8.

  • 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
27bsp.cfg: bsp.cfg.in Makefile
28        sed \
29        -e "s|[@]HAS_MP[@]|$(HAS_MP)|" \
30        -e "s|[@]HAS_POSIX_API[@]|$(HAS_POSIX_API)|" \
31        -e "s|[@]HAS_CPLUSPLUS[@]|$(HAS_CPLUSPLUS)|" \
32        -e "s|[@]HAS_NETWORKING[@]|$(HAS_NETWORKING)|" \
33        < $(srcdir)/bsp.cfg.in > bsp.cfg
34CLEANFILES += bsp.cfg
35
36target.cfg: target.cfg.in Makefile
37        sed \
38        -e "s|[@]RTEMS_API[@]|$(RTEMS_API)|" \
39        -e "s|[@]CPPFLAGS[@]|$(CPPFLAGS)|" \
40        -e "s|[@]CFLAGS[@]|$(CFLAGS)|" \
41        -e "s|[@]LIBS[@]|$(LIBS)|" \
42        -e "s|[@]CC[@]|$(CC)|" \
43        -e "s|[@]CXX[@]|$(CXX)|" \
44        -e "s|[@]AS[@]|$(AS)|" \
45        -e "s|[@]AR[@]|$(AR)|" \
46        -e "s|[@]NM[@]|$(NM)|" \
47        -e "s|[@]LD[@]|$(LD)|" \
48        -e "s|[@]SIZE[@]|$(SIZE)|" \
49        -e "s|[@]STRIP[@]|$(STRIP)|" \
50        -e "s|[@]RANLIB[@]|$(RANLIB)|" \
51        -e "s|[@]OBJCOPY[@]|$(OBJCOPY)|" \
52        -e "s|[@]RTEMS_CPU[@]|$(RTEMS_CPU)|" \
53        -e "s|[@]RTEMS_HAS_MULTIPROCESSING[@]|$(HAS_MP)|" \
54        -e "s|[@]RTEMS_HAS_POSIX_API[@]|$(HAS_POSIX_API)|" \
55        -e "s|[@]RTEMS_HAS_CPLUSPLUS[@]|$(HAS_CPLUSPLUS)|" \
56        -e "s|[@]RTEMS_HAS_NETWORKING[@]|$(HAS_NETWORKING)|" \
57        < $(srcdir)/target.cfg.in > target.cfg
58CLEANFILES += target.cfg
59
60host.cfg: host.cfg.in Makefile
61        sed \
62        -e "s|[@]CP[@]|$(CP)|" \
63        -e "s|[@]MV[@]|$(MV)|" \
64        -e "s|[@]LN[@]|$(LN)|" \
65        -e "s|[@]SHELL[@]|$(SHELL)|" \
66        -e "s|[@]KSH[@]|$(KSH)|" \
67        < $(srcdir)/host.cfg.in > host.cfg
68CLEANFILES += host.cfg
69
70Makefile.inc: Makefile.inc.in Makefile
71        sed \
72        -e "s|[@]prefix[@]|$(prefix)|" \
73        -e "s|[@]exec_prefix[@]|$(exec_prefix)|" \
74        -e "s|[@]pkgdatadir[@]|$(pkgdatadir)|" \
75        -e "s|[@]RTEMS_BSP[@]|$(RTEMS_BSP)|" \
76        -e "s|[@]CC[@]|$(CC)|" \
77        -e "s|[@]CXX[@]|$(CXX)|" \
78        -e "s|[@]AS[@]|$(AS)|" \
79        -e "s|[@]AR[@]|$(AR)|" \
80        -e "s|[@]NM[@]|$(NM)|" \
81        -e "s|[@]LD[@]|$(LD)|" \
82        -e "s|[@]SIZE[@]|$(SIZE)|" \
83        -e "s|[@]OBJCOPY[@]|$(OBJCOPY)|" \
84        -e "s|[@]RTEMS_HAS_POSIX_API[@]|$(HAS_POSIX_API)|" \
85        -e "s|[@]RTEMS_HAS_CPLUSPLUS[@]|$(HAS_CPLUSPLUS)|" \
86        < $(srcdir)/Makefile.inc.in > Makefile.inc
87CLEANFILES += Makefile.inc
88
89## At the moment all actively supported configurations
90## use gcc-target-default.cfg only.
91rtems_make_compilersdir = $(rtems_makedir)/compilers
92dist_rtems_make_compilers_DATA = compilers/gcc-target-default.cfg
93
94include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.