forked from Imagelibrary/rtems
2011-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am, configure.ac: Move file generation into Makefile.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2011-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* Makefile.am, configure.ac: Move file generation into Makefile.
|
||||||
|
|
||||||
2011-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* Makefile.inc.in: Set PROJECT_ROOT = @pkgdatadir@.
|
* Makefile.inc.in: Set PROJECT_ROOT = @pkgdatadir@.
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I aclocal -I ../aclocal
|
ACLOCAL_AMFLAGS = -I aclocal -I ../aclocal
|
||||||
|
|
||||||
|
CLEANFILES =
|
||||||
|
|
||||||
rtems_makedir = $(pkgdatadir)/make
|
rtems_makedir = $(pkgdatadir)/make
|
||||||
|
|
||||||
GENERIC_FILES = host.cfg
|
GENERIC_FILES = host.cfg
|
||||||
@@ -27,6 +29,67 @@ $(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in
|
|||||||
cp $< $@
|
cp $< $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
bsp.cfg: bsp.cfg.in Makefile
|
||||||
|
sed \
|
||||||
|
-e "s,[@]HAS_MP[@],$(HAS_MP)," \
|
||||||
|
-e "s,[@]HAS_POSIX_API[@],$(HAS_POSIX_API)," \
|
||||||
|
-e "s,[@]HAS_CPLUSPLUS[@],$(HAS_CPLUSPLUS)," \
|
||||||
|
-e "s,[@]HAS_NETWORKING[@],$(HAS_NETWORKING)," \
|
||||||
|
< $(srcdir)/bsp.cfg.in > bsp.cfg
|
||||||
|
CLEANFILES += bsp.cfg
|
||||||
|
|
||||||
|
target.cfg: target.cfg.in Makefile
|
||||||
|
sed \
|
||||||
|
-e "s,[@]CPPFLAGS[@],$(CPPFLAGS)," \
|
||||||
|
-e "s,[@]CFLAGS[@],$(CFLAGS)," \
|
||||||
|
-e "s,[@]LIBS[@],$(LIBS)," \
|
||||||
|
-e "s,[@]CC[@],$(CC)," \
|
||||||
|
-e "s,[@]CXX[@],$(CXX)," \
|
||||||
|
-e "s,[@]AS[@],$(AS)," \
|
||||||
|
-e "s,[@]AR[@],$(AR)," \
|
||||||
|
-e "s,[@]NM[@],$(NM)," \
|
||||||
|
-e "s,[@]LD[@],$(LD)," \
|
||||||
|
-e "s,[@]SIZE[@],$(SIZE)," \
|
||||||
|
-e "s,[@]STRIP[@],$(STRIP)," \
|
||||||
|
-e "s,[@]RANLIB[@],$(RANLIB)," \
|
||||||
|
-e "s,[@]OBJCOPY[@],$(OBJCOPY)," \
|
||||||
|
-e "s,[@]RTEMS_CPU[@],$(RTEMS_CPU)," \
|
||||||
|
-e "s,[@]RTEMS_HAS_MULTIPROCESSING[@],$(HAS_MP)," \
|
||||||
|
-e "s,[@]RTEMS_HAS_POSIX_API[@],$(HAS_POSIX_API)," \
|
||||||
|
-e "s,[@]RTEMS_HAS_CPLUSPLUS[@],$(HAS_CPLUSPLUS)," \
|
||||||
|
-e "s,[@]RTEMS_HAS_NETWORKING[@],$(HAS_NETWORKING)," \
|
||||||
|
< $(srcdir)/target.cfg.in > target.cfg
|
||||||
|
CLEANFILES += target.cfg
|
||||||
|
|
||||||
|
host.cfg: host.cfg.in Makefile
|
||||||
|
sed \
|
||||||
|
-e "s,[@]CP[@],$(CP)," \
|
||||||
|
-e "s,[@]MV[@],$(MV)," \
|
||||||
|
-e "s,[@]LN[@],$(LN)," \
|
||||||
|
-e "s,[@]SHELL[@],$(SHELL)," \
|
||||||
|
-e "s,[@]KSH[@],$(KSH)," \
|
||||||
|
< $(srcdir)/host.cfg.in > host.cfg
|
||||||
|
CLEANFILES += host.cfg
|
||||||
|
|
||||||
|
Makefile.inc: Makefile.inc.in Makefile
|
||||||
|
sed \
|
||||||
|
-e "s,[@]prefix[@],$(prefix)," \
|
||||||
|
-e "s,[@]exec_prefix[@],$(exec_prefix)," \
|
||||||
|
-e "s,[@]pkgdatadir[@],$(pkgdatadir)," \
|
||||||
|
-e "s,[@]RTEMS_BSP[@],$(RTEMS_BSP)," \
|
||||||
|
-e "s,[@]CC[@],$(CC)," \
|
||||||
|
-e "s,[@]CXX[@],$(CXX)," \
|
||||||
|
-e "s,[@]AS[@],$(AS)," \
|
||||||
|
-e "s,[@]AR[@],$(AR)," \
|
||||||
|
-e "s,[@]NM[@],$(NM)," \
|
||||||
|
-e "s,[@]LD[@],$(LD)," \
|
||||||
|
-e "s,[@]SIZE[@],$(SIZE)," \
|
||||||
|
-e "s,[@]OBJCOPY[@],$(OBJCOPY)," \
|
||||||
|
-e "s,[@]RTEMS_HAS_POSIX_API[@],$(HAS_POSIX_API)," \
|
||||||
|
-e "s,[@]RTEMS_HAS_CPLUSPLUS[@],$(HAS_CPLUSPLUS)," \
|
||||||
|
< $(srcdir)/Makefile.inc.in > Makefile.inc
|
||||||
|
CLEANFILES += Makefile.inc
|
||||||
|
|
||||||
## At the moment all actively supported configurations
|
## At the moment all actively supported configurations
|
||||||
## use gcc-target-default.cfg only.
|
## use gcc-target-default.cfg only.
|
||||||
rtems_make_compilersdir = $(rtems_makedir)/compilers
|
rtems_make_compilersdir = $(rtems_makedir)/compilers
|
||||||
|
|||||||
@@ -78,9 +78,5 @@ AC_CONFIG_LINKS([leaf.cfg:leaf.cfg])
|
|||||||
|
|
||||||
# Explicitly list all Makefiles here
|
# Explicitly list all Makefiles here
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
Makefile.inc
|
|
||||||
host.cfg
|
|
||||||
bsp.cfg
|
|
||||||
])
|
])
|
||||||
AC_CONFIG_FILES([target.cfg])
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user