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