mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
* Makefile.am: scmconfig.h is now generated by building and
running gen-scmconfig.h and capturing its output. gen-scmconfig uses config.h and the configure.in generated gen-scmconfig.h to decide what to output. See gen-scmconfig.c for details. (noinst_PROGRAMS): add gen-scmconfig. (gen_scmconfig_SOURCES): new variable. (gen-scmconfig.$(OBJEXT)): new target - be careful to handle cross-compiling right. (scmconfig.h): build scmconfig.h from gen-scmconfig's output. (BUILT_SOURCES): add scmconfig.h.
This commit is contained in:
parent
9a52bc2af1
commit
64c2db807d
1 changed files with 23 additions and 9 deletions
|
@ -34,7 +34,27 @@ ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_L
|
||||||
lib_LTLIBRARIES = libguile.la
|
lib_LTLIBRARIES = libguile.la
|
||||||
bin_PROGRAMS = guile
|
bin_PROGRAMS = guile
|
||||||
|
|
||||||
noinst_PROGRAMS = guile_filter_doc_snarfage
|
noinst_PROGRAMS = guile_filter_doc_snarfage gen-scmconfig
|
||||||
|
|
||||||
|
gen_scmconfig_SOURCES = gen-scmconfig.c
|
||||||
|
|
||||||
|
## Override default rule; this should be compiled for BUILD host.
|
||||||
|
## For some reason, OBJEXT does not include the dot
|
||||||
|
gen-scmconfig.$(OBJEXT): gen-scmconfig.c
|
||||||
|
if [ "$(cross_compiling)" = "yes" ]; then \
|
||||||
|
$(CC_FOR_BUILD) -c -o $@ $<; \
|
||||||
|
else \
|
||||||
|
$(COMPILE) -c -o $@ $<; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
scmconfig.h: ${top_srcdir}/config.h gen-scmconfig
|
||||||
|
rm -f scmconfig.h.tmp
|
||||||
|
cat scmconfig.h.top > scmconfig.h.tmp
|
||||||
|
./gen-scmconfig >> scmconfig.h.tmp
|
||||||
|
chmod 444 scmconfig.h.tmp
|
||||||
|
rm -f scmconfig.h
|
||||||
|
mv scmconfig.h.tmp scmconfig.h
|
||||||
|
|
||||||
guile_filter_doc_snarfage_SOURCES = c-tokenize.c
|
guile_filter_doc_snarfage_SOURCES = c-tokenize.c
|
||||||
|
|
||||||
## Override default rule; this should be compiled for BUILD host.
|
## Override default rule; this should be compiled for BUILD host.
|
||||||
|
@ -111,8 +131,8 @@ DOT_DOC_FILES = alist.doc arbiters.doc async.doc backtrace.doc \
|
||||||
|
|
||||||
EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@
|
EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@
|
||||||
|
|
||||||
BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h scmconfig.h \
|
BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h \
|
||||||
version.h \
|
version.h scmconfig.h \
|
||||||
$(DOT_X_FILES) $(EXTRA_DOT_X_FILES) guile.texi
|
$(DOT_X_FILES) $(EXTRA_DOT_X_FILES) guile.texi
|
||||||
|
|
||||||
EXTRA_libguile_la_SOURCES = _scm.h \
|
EXTRA_libguile_la_SOURCES = _scm.h \
|
||||||
|
@ -187,12 +207,6 @@ version.h: version.h.in
|
||||||
-e s:@-GUILE_MICRO_VERSION-@:${GUILE_MICRO_VERSION}:
|
-e s:@-GUILE_MICRO_VERSION-@:${GUILE_MICRO_VERSION}:
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
scmconfig.h: $(top_builddir)/config.h
|
|
||||||
rm -f scmconfig.h
|
|
||||||
sed -e 's|\(#define PACKAGE_.*\)|/* do not publish: \1 */|' \
|
|
||||||
< $(top_builddir)/config.h > scmconfig.h.tmp
|
|
||||||
mv scmconfig.h.tmp scmconfig.h
|
|
||||||
|
|
||||||
## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
|
## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
|
||||||
libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
@echo "Generating libpath.h..."
|
@echo "Generating libpath.h..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue