[284e4fc5] | 1 | ACLOCAL_AMFLAGS = -I aclocal -I ../aclocal |
---|
[eb299afc] | 2 | |
---|
[48588ab] | 3 | CLEANFILES = |
---|
| 4 | |
---|
[f2ffb7ec] | 5 | rtems_makedir = $(pkgdatadir)/make |
---|
[eb299afc] | 6 | |
---|
[df49c60] | 7 | GENERIC_FILES = host.cfg |
---|
[eb299afc] | 8 | |
---|
[df49c60] | 9 | MAKE_FILES = README directory.cfg lib.cfg |
---|
[eb299afc] | 10 | |
---|
[df49c60] | 11 | rtems_make_DATA = $(MAKE_FILES) $(GENERIC_FILES) |
---|
[eb299afc] | 12 | |
---|
[dedb090f] | 13 | noinst_DATA = leaf.cfg |
---|
[4619da9] | 14 | EXTRA_DIST = leaf.cfg |
---|
[eb299afc] | 15 | |
---|
[b1bbb8a] | 16 | rtemsdir = $(exec_prefix) |
---|
[eb299afc] | 17 | rtems_bspdir = $(rtemsdir)/@RTEMS_BSP@ |
---|
[df49c60] | 18 | rtems_bsp_DATA = Makefile.inc |
---|
[eb299afc] | 19 | |
---|
[1896a650] | 20 | rtems_bsp_makedir = $(rtems_bspdir)/make |
---|
[7838411] | 21 | rtems_bsp_make_DATA = bsp.cfg target.cfg |
---|
[1896a650] | 22 | |
---|
[48588ab] | 23 | bsp.cfg: bsp.cfg.in Makefile |
---|
| 24 | sed \ |
---|
[49a97a91] | 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)|" \ |
---|
[48588ab] | 29 | < $(srcdir)/bsp.cfg.in > bsp.cfg |
---|
| 30 | CLEANFILES += bsp.cfg |
---|
| 31 | |
---|
| 32 | target.cfg: target.cfg.in Makefile |
---|
| 33 | sed \ |
---|
[3953cb4d] | 34 | -e "s|[@]RTEMS_API[@]|$(RTEMS_API)|" \ |
---|
[49a97a91] | 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)|" \ |
---|
[48588ab] | 53 | < $(srcdir)/target.cfg.in > target.cfg |
---|
| 54 | CLEANFILES += target.cfg |
---|
| 55 | |
---|
| 56 | host.cfg: host.cfg.in Makefile |
---|
| 57 | sed \ |
---|
[49a97a91] | 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)|" \ |
---|
[48588ab] | 63 | < $(srcdir)/host.cfg.in > host.cfg |
---|
| 64 | CLEANFILES += host.cfg |
---|
| 65 | |
---|
| 66 | Makefile.inc: Makefile.inc.in Makefile |
---|
| 67 | sed \ |
---|
[49a97a91] | 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)|" \ |
---|
[48588ab] | 82 | < $(srcdir)/Makefile.inc.in > Makefile.inc |
---|
| 83 | CLEANFILES += Makefile.inc |
---|
| 84 | |
---|
[4619da9] | 85 | ## At the moment all actively supported configurations |
---|
| 86 | ## use gcc-target-default.cfg only. |
---|
[3ba1627] | 87 | rtems_make_compilersdir = $(rtems_makedir)/compilers |
---|
[4619da9] | 88 | dist_rtems_make_compilers_DATA = compilers/gcc-target-default.cfg |
---|
| 89 | |
---|
[2334e94b] | 90 | include $(top_srcdir)/../automake/local.am |
---|