| 1 | ## Process this file with Automake to create Makefile.in |
| 2 | ## |
| 3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 4 | ## |
| 5 | ## This file is part of GUILE. |
| 6 | ## |
| 7 | ## GUILE is free software; you can redistribute it and/or modify |
| 8 | ## it under the terms of the GNU General Public License as |
| 9 | ## published by the Free Software Foundation; either version 2, or |
| 10 | ## (at your option) any later version. |
| 11 | ## |
| 12 | ## GUILE is distributed in the hope that it will be useful, but |
| 13 | ## WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | ## GNU General Public License for more details. |
| 16 | ## |
| 17 | ## You should have received a copy of the GNU General Public |
| 18 | ## License along with GUILE; see the file COPYING. If not, write |
| 19 | ## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth |
| 20 | ## Floor, Boston, MA 02110-1301 USA |
| 21 | |
| 22 | AUTOMAKE_OPTIONS = gnu |
| 23 | |
| 24 | ## Prevent automake from adding extra -I options |
| 25 | DEFS = @DEFS@ |
| 26 | |
| 27 | # Override Automake's `DEFAULT_INCLUDES'. By default, it contains |
| 28 | # "-I$(srcdir)", which causes problems on Tru64 where our "random.h" |
| 29 | # is picked up by <stdlib.h> instead of the libc's <random.h>. |
| 30 | DEFAULT_INCLUDES = |
| 31 | |
| 32 | ## Check for headers in $(srcdir)/.., so that #include |
| 33 | ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're |
| 34 | ## building. Also look for Gnulib headers in `lib'. |
| 35 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \ |
| 36 | -I$(top_srcdir)/lib -I$(top_builddir)/lib |
| 37 | |
| 38 | AM_CFLAGS = $(GCC_CFLAGS) |
| 39 | |
| 40 | ## The Gnulib Libtool archive. |
| 41 | gnulib_library = $(top_builddir)/lib/libgnu.la |
| 42 | |
| 43 | ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \ |
| 44 | --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/' |
| 45 | |
| 46 | lib_LTLIBRARIES = libguile.la \ |
| 47 | libguile-i18n-v-@LIBGUILE_I18N_MAJOR@.la |
| 48 | bin_PROGRAMS = guile |
| 49 | |
| 50 | noinst_PROGRAMS = guile_filter_doc_snarfage gen-scmconfig |
| 51 | |
| 52 | gen_scmconfig_SOURCES = gen-scmconfig.c |
| 53 | |
| 54 | ## Override default rule; this should be compiled for BUILD host. |
| 55 | ## For some reason, OBJEXT does not include the dot |
| 56 | gen-scmconfig.$(OBJEXT): gen-scmconfig.c |
| 57 | if [ "$(cross_compiling)" = "yes" ]; then \ |
| 58 | $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) -c -o $@ $<; \ |
| 59 | else \ |
| 60 | $(COMPILE) -c -o $@ $<; \ |
| 61 | fi |
| 62 | |
| 63 | ## Override default rule; this should run on BUILD host. |
| 64 | gen-scmconfig$(EXEEXT): $(gen_scmconfig_OBJECTS) $(gen_scmconfig_DEPENDENCIES) |
| 65 | @rm -f gen-scmconfig$(EXEEXT) |
| 66 | if [ "$(cross_compiling)" = "yes" ]; then \ |
| 67 | $(CCLD_FOR_BUILD) -o $@ $(gen_scmconfig_OBJECTS); \ |
| 68 | else \ |
| 69 | $(LINK) $(gen_scmconfig_OBJECTS) $(LDADD) $(LIBS); \ |
| 70 | fi |
| 71 | |
| 72 | scmconfig.h: ${top_builddir}/config.h gen-scmconfig$(EXEEXT) |
| 73 | rm -f scmconfig.h.tmp |
| 74 | cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp |
| 75 | ./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp |
| 76 | chmod 444 scmconfig.h.tmp |
| 77 | rm -f scmconfig.h |
| 78 | mv scmconfig.h.tmp scmconfig.h |
| 79 | |
| 80 | guile_filter_doc_snarfage_SOURCES = c-tokenize.c |
| 81 | |
| 82 | ## Override default rule; this should be compiled for BUILD host. |
| 83 | ## For some reason, OBJEXT does not include the dot |
| 84 | c-tokenize.$(OBJEXT): c-tokenize.c |
| 85 | if [ "$(cross_compiling)" = "yes" ]; then \ |
| 86 | $(CC_FOR_BUILD) $(DEFS) $(AM_CPPFLAGS) -c -o $@ $<; \ |
| 87 | else \ |
| 88 | $(COMPILE) -c -o $@ $<; \ |
| 89 | fi |
| 90 | |
| 91 | ## Override default rule; this should run on BUILD host. |
| 92 | guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile_filter_doc_snarfage_DEPENDENCIES) |
| 93 | @rm -f guile_filter_doc_snarfage$(EXEEXT) |
| 94 | if [ "$(cross_compiling)" = "yes" ]; then \ |
| 95 | $(CCLD_FOR_BUILD) -o $@ $(guile_filter_doc_snarfage_OBJECTS); \ |
| 96 | else \ |
| 97 | $(LINK) $(guile_filter_doc_snarfage_OBJECTS) $(LDADD) $(LIBS); \ |
| 98 | fi |
| 99 | |
| 100 | |
| 101 | guile_SOURCES = guile.c |
| 102 | guile_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS) |
| 103 | guile_LDADD = libguile.la |
| 104 | guile_LDFLAGS = $(GUILE_CFLAGS) |
| 105 | |
| 106 | libguile_la_CFLAGS = $(GUILE_CFLAGS) $(AM_CFLAGS) |
| 107 | |
| 108 | libguile_la_SOURCES = alist.c arbiters.c async.c backtrace.c boolean.c \ |
| 109 | chars.c continuations.c convert.c debug.c deprecation.c \ |
| 110 | deprecated.c discouraged.c dynwind.c eq.c error.c \ |
| 111 | eval.c evalext.c extensions.c feature.c fluids.c fports.c \ |
| 112 | futures.c gc.c gc-malloc.c \ |
| 113 | gdbint.c gettext.c goops.c gsubr.c \ |
| 114 | guardians.c hash.c hashtab.c hooks.c init.c inline.c \ |
| 115 | ioext.c keywords.c lang.c list.c load.c macros.c mallocs.c \ |
| 116 | modules.c numbers.c objects.c objprop.c options.c pairs.c ports.c \ |
| 117 | print.c procprop.c procs.c properties.c random.c rdelim.c read.c \ |
| 118 | root.c rw.c scmsigs.c script.c simpos.c smob.c sort.c srcprop.c \ |
| 119 | stackchk.c stacks.c stime.c strings.c srfi-4.c srfi-13.c srfi-14.c \ |
| 120 | strorder.c strports.c struct.c symbols.c threads.c null-threads.c \ |
| 121 | throw.c values.c variable.c vectors.c version.c vports.c weaks.c \ |
| 122 | ramap.c unif.c |
| 123 | |
| 124 | libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_SOURCES = i18n.c |
| 125 | libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_CFLAGS = \ |
| 126 | $(libguile_la_CFLAGS) |
| 127 | libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_LIBADD = \ |
| 128 | libguile.la $(gnulib_library) |
| 129 | libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_LDFLAGS = \ |
| 130 | -module -L$(builddir) -lguile \ |
| 131 | -version-info @LIBGUILE_I18N_INTERFACE@ |
| 132 | |
| 133 | DOT_X_FILES = alist.x arbiters.x async.x backtrace.x boolean.x chars.x \ |
| 134 | continuations.x debug.x deprecation.x deprecated.x discouraged.x \ |
| 135 | dynl.x dynwind.x environments.x eq.x error.x eval.x evalext.x \ |
| 136 | extensions.x feature.x fluids.x fports.x futures.x gc.x \ |
| 137 | gettext.c goops.x gsubr.x guardians.x \ |
| 138 | hash.x hashtab.x hooks.x i18n.x init.x ioext.x keywords.x lang.x \ |
| 139 | list.x load.x macros.x mallocs.x modules.x numbers.x objects.x \ |
| 140 | objprop.x options.x pairs.x ports.x print.x procprop.x procs.x \ |
| 141 | properties.x random.x rdelim.x read.x root.x rw.x scmsigs.x \ |
| 142 | script.x simpos.x smob.x sort.x srcprop.x stackchk.x stacks.x \ |
| 143 | stime.x strings.x srfi-4.x srfi-13.x srfi-14.x strorder.x \ |
| 144 | strports.x struct.x symbols.x threads.x throw.x values.x \ |
| 145 | variable.x vectors.x version.x vports.x weaks.x ramap.x unif.x |
| 146 | |
| 147 | EXTRA_DOT_X_FILES = @EXTRA_DOT_X_FILES@ |
| 148 | |
| 149 | DOT_DOC_FILES = alist.doc arbiters.doc async.doc backtrace.doc \ |
| 150 | boolean.doc chars.doc continuations.doc debug.doc deprecation.doc \ |
| 151 | deprecated.doc discouraged.doc dynl.doc dynwind.doc \ |
| 152 | eq.doc error.doc eval.doc evalext.doc \ |
| 153 | extensions.doc feature.doc fluids.doc fports.doc futures.doc \ |
| 154 | gc.doc goops.doc gsubr.doc \ |
| 155 | gc-malloc.doc gettext.doc guardians.doc hash.doc hashtab.doc \ |
| 156 | hooks.doc i18n.doc init.doc ioext.doc keywords.doc lang.doc \ |
| 157 | list.doc load.doc macros.doc mallocs.doc modules.doc numbers.doc \ |
| 158 | objects.doc objprop.doc options.doc pairs.doc ports.doc print.doc \ |
| 159 | procprop.doc procs.doc properties.doc random.doc rdelim.doc \ |
| 160 | read.doc root.doc rw.doc scmsigs.doc script.doc simpos.doc \ |
| 161 | smob.doc sort.doc srcprop.doc stackchk.doc stacks.doc stime.doc \ |
| 162 | strings.doc srfi-4.doc srfi-13.doc srfi-14.doc strorder.doc \ |
| 163 | strports.doc struct.doc symbols.doc threads.doc throw.doc \ |
| 164 | values.doc variable.doc vectors.doc version.doc vports.doc \ |
| 165 | weaks.doc ramap.doc unif.doc |
| 166 | |
| 167 | EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@ |
| 168 | |
| 169 | BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h \ |
| 170 | version.h scmconfig.h \ |
| 171 | $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) |
| 172 | |
| 173 | EXTRA_libguile_la_SOURCES = _scm.h \ |
| 174 | inet_aton.c memmove.c putenv.c strerror.c \ |
| 175 | dynl.c regex-posix.c \ |
| 176 | filesys.c posix.c net_db.c socket.c \ |
| 177 | debug-malloc.c mkstemp.c \ |
| 178 | win32-uname.c win32-dirent.c win32-socket.c \ |
| 179 | locale-categories.h |
| 180 | |
| 181 | ## delete guile-snarf.awk from the installation bindir, in case it's |
| 182 | ## lingering there due to an earlier guile version not having been |
| 183 | ## wiped out. |
| 184 | install-exec-hook: |
| 185 | rm -f $(DESTDIR)$(bindir)/guile-snarf.awk |
| 186 | |
| 187 | ## This is kind of nasty... there are ".c" files that we don't want to |
| 188 | ## compile, since they are #included. So instead we list them here. |
| 189 | ## Perhaps we can deal with them normally once the merge seems to be |
| 190 | ## working. |
| 191 | noinst_HEADERS = convert.i.c \ |
| 192 | conv-integer.i.c conv-uinteger.i.c \ |
| 193 | eval.i.c \ |
| 194 | srfi-4.i.c \ |
| 195 | quicksort.i.c \ |
| 196 | win32-uname.h win32-dirent.h win32-socket.h \ |
| 197 | private-gc.h private-options.h |
| 198 | |
| 199 | libguile_la_DEPENDENCIES = @LIBLOBJS@ |
| 200 | libguile_la_LIBADD = @LIBLOBJS@ $(gnulib_library) |
| 201 | libguile_la_LDFLAGS = @LTLIBINTL@ -version-info @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ -export-dynamic -no-undefined |
| 202 | |
| 203 | # These are headers visible as <guile/mumble.h> |
| 204 | pkginclude_HEADERS = |
| 205 | |
| 206 | # These are headers visible as <libguile/mumble.h>. |
| 207 | modincludedir = $(includedir)/libguile |
| 208 | modinclude_HEADERS = __scm.h alist.h arbiters.h async.h backtrace.h \ |
| 209 | boehm-gc.h \ |
| 210 | boolean.h chars.h continuations.h convert.h debug.h debug-malloc.h \ |
| 211 | deprecation.h deprecated.h discouraged.h dynl.h dynwind.h \ |
| 212 | eq.h error.h eval.h evalext.h extensions.h \ |
| 213 | feature.h filesys.h fluids.h fports.h futures.h gc.h \ |
| 214 | gdb_interface.h gdbint.h gettext.h goops.h \ |
| 215 | gsubr.h guardians.h hash.h \ |
| 216 | hashtab.h hooks.h i18n.h init.h inline.h ioext.h iselect.h \ |
| 217 | keywords.h lang.h list.h load.h macros.h mallocs.h modules.h \ |
| 218 | net_db.h numbers.h objects.h objprop.h options.h pairs.h ports.h \ |
| 219 | posix.h regex-posix.h print.h procprop.h procs.h properties.h \ |
| 220 | random.h ramap.h rdelim.h read.h root.h rw.h scmsigs.h validate.h \ |
| 221 | script.h simpos.h smob.h snarf.h socket.h sort.h srcprop.h \ |
| 222 | stackchk.h stacks.h stime.h strings.h srfi-4.h srfi-13.h srfi-14.h \ |
| 223 | strorder.h strports.h struct.h symbols.h tags.h threads.h \ |
| 224 | pthread-threads.h null-threads.h throw.h unif.h values.h \ |
| 225 | variable.h vectors.h vports.h weaks.h |
| 226 | |
| 227 | nodist_modinclude_HEADERS = version.h scmconfig.h |
| 228 | |
| 229 | bin_SCRIPTS = guile-snarf |
| 230 | |
| 231 | # We can re-enable install for some of these if/when they are documented |
| 232 | # and people feel like maintaining them. For now, this is not the case. |
| 233 | noinst_SCRIPTS = guile-doc-snarf guile-snarf-docs guile-func-name-check |
| 234 | |
| 235 | EXTRA_DIST = ChangeLog-scm ChangeLog-threads \ |
| 236 | ChangeLog-1996-1999 ChangeLog-2000 ChangeLog-2008 cpp_signal.c \ |
| 237 | cpp_errno.c cpp_err_symbols.in cpp_err_symbols.c \ |
| 238 | cpp_sig_symbols.c cpp_sig_symbols.in cpp_cnvt.awk \ |
| 239 | c-tokenize.lex version.h.in \ |
| 240 | scmconfig.h.top libgettext.h measure-hwm.scm |
| 241 | # $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) \ |
| 242 | # guile-procedures.txt guile.texi |
| 243 | |
| 244 | ## We use @-...-@ as the substitution brackets here, instead of the |
| 245 | ## usual @...@, so autoconf doesn't go and substitute the values |
| 246 | ## directly into the left-hand sides of the sed substitutions. *sigh* |
| 247 | version.h: version.h.in |
| 248 | sed < $(srcdir)/version.h.in > $@.tmp \ |
| 249 | -e s:@-GUILE_MAJOR_VERSION-@:${GUILE_MAJOR_VERSION}: \ |
| 250 | -e s:@-GUILE_MINOR_VERSION-@:${GUILE_MINOR_VERSION}: \ |
| 251 | -e s:@-GUILE_MICRO_VERSION-@:${GUILE_MICRO_VERSION}: |
| 252 | mv $@.tmp $@ |
| 253 | |
| 254 | ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds. |
| 255 | libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status |
| 256 | @echo "Generating libpath.h..." |
| 257 | @rm -f libpath.tmp |
| 258 | @echo '/* generated by Makefile */' > libpath.tmp |
| 259 | @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp |
| 260 | @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp |
| 261 | @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp |
| 262 | @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp |
| 263 | @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp |
| 264 | @echo ' { "top_srcdir", "@top_srcdir_absolute@" }, \' >> libpath.tmp |
| 265 | @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp |
| 266 | @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp |
| 267 | @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp |
| 268 | @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp |
| 269 | @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp |
| 270 | @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp |
| 271 | @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp |
| 272 | @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp |
| 273 | @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp |
| 274 | @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp |
| 275 | @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp |
| 276 | @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp |
| 277 | @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp |
| 278 | @echo ' { "pkgdatadir", "$(datadir)/@PACKAGE@" }, \' >> libpath.tmp |
| 279 | @echo ' { "pkglibdir", "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp |
| 280 | @echo ' { "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \ |
| 281 | >> libpath.tmp |
| 282 | @echo ' { "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp |
| 283 | @echo ' { "libguileinterface", "@LIBGUILE_INTERFACE@" }, \' \ |
| 284 | >> libpath.tmp |
| 285 | @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp |
| 286 | @echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp |
| 287 | @echo ' { "buildstamp", "'"`date`"'" }, \' >> libpath.tmp |
| 288 | @echo '}' >> libpath.tmp |
| 289 | @mv libpath.tmp libpath.h |
| 290 | |
| 291 | |
| 292 | snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
| 293 | |
| 294 | SUFFIXES = .x .doc |
| 295 | .c.x: |
| 296 | ./guile-snarf -o $@ $< $(snarfcppopts) |
| 297 | .c.doc: |
| 298 | -$(AWK) -f ./guile-func-name-check $< |
| 299 | (./guile-snarf-docs $(snarfcppopts) $< | \ |
| 300 | ./guile_filter_doc_snarfage$(EXEEXT) --filter-snarfage) > $@ || { rm $@; false; } |
| 301 | |
| 302 | $(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in |
| 303 | |
| 304 | $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): scmconfig.h snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT) |
| 305 | |
| 306 | error.x: cpp_err_symbols.c |
| 307 | posix.x: cpp_sig_symbols.c |
| 308 | load.x: libpath.h |
| 309 | |
| 310 | include $(top_srcdir)/am/pre-inst-guile |
| 311 | |
| 312 | alldotdocfiles = $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) |
| 313 | snarf2checkedtexi = GUILE="$(GUILE_FOR_BUILD)" $(top_srcdir)/scripts/snarf-check-and-output-texi |
| 314 | dotdoc2texi = cat $(alldotdocfiles) | $(snarf2checkedtexi) |
| 315 | |
| 316 | guile.texi: $(alldotdocfiles) guile$(EXEEXT) |
| 317 | $(dotdoc2texi) --manual > $@ || { rm $@; false; } |
| 318 | |
| 319 | guile-procedures.texi: $(alldotdocfiles) guile$(EXEEXT) |
| 320 | $(dotdoc2texi) > $@ || { rm $@; false; } |
| 321 | |
| 322 | if HAVE_MAKEINFO |
| 323 | |
| 324 | guile-procedures.txt: guile-procedures.texi |
| 325 | rm -f $@ |
| 326 | makeinfo --force -o $@ guile-procedures.texi || test -f $@ |
| 327 | |
| 328 | else |
| 329 | |
| 330 | guile-procedures.txt: guile-procedures.texi |
| 331 | cp guile-procedures.texi $@ |
| 332 | |
| 333 | endif |
| 334 | |
| 335 | # Stack limit calibration for `make check'. (For why we do this, see |
| 336 | # the comments in measure-hwm.scm.) We're relying here on a couple of |
| 337 | # bits of Automake magic. |
| 338 | # |
| 339 | # 1. The fact that "libguile" comes before "test-suite" in SUBDIRS in |
| 340 | # our toplevel Makefile.am. This ensures that the |
| 341 | # stack-limit-calibration.scm "test" will be run before any of the |
| 342 | # tests under test-suite. |
| 343 | # |
| 344 | # 2. The fact that each test is invoked as $TESTS_ENVIRONMENT $test. |
| 345 | # This allows us to ensure that the test will be considered to have |
| 346 | # passed, by using `true' as TESTS_ENVIRONMENT. |
| 347 | # |
| 348 | # Why don't we care about the test "actually passing"? Because the |
| 349 | # important thing about stack-limit-calibration.scm is just that it is |
| 350 | # generated in the first place, so that other tests under test-suite |
| 351 | # can use it. |
| 352 | TESTS = stack-limit-calibration.scm |
| 353 | TESTS_ENVIRONMENT = true |
| 354 | |
| 355 | stack-limit-calibration.scm: measure-hwm.scm guile$(EXEEXT) |
| 356 | $(preinstguile) -s $(srcdir)/measure-hwm.scm > $@ |
| 357 | |
| 358 | c-tokenize.c: c-tokenize.lex |
| 359 | flex -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; } |
| 360 | |
| 361 | schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION) |
| 362 | schemelib_DATA = guile-procedures.txt |
| 363 | |
| 364 | ## Add -MG to make the .x magic work with auto-dep code. |
| 365 | MKDEP = gcc -M -MG $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) |
| 366 | |
| 367 | cpp_err_symbols.c: cpp_err_symbols.in cpp_cnvt.awk |
| 368 | $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \ |
| 369 | cpp_err_symbols.tmp |
| 370 | mv cpp_err_symbols.tmp cpp_err_symbols.c |
| 371 | |
| 372 | cpp_sig_symbols.c: cpp_sig_symbols.in cpp_cnvt.awk |
| 373 | $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \ |
| 374 | cpp_sig_symbols.tmp |
| 375 | mv cpp_sig_symbols.tmp cpp_sig_symbols.c |
| 376 | |
| 377 | ## Create a new version of the cpp_sig_symbols.in file, including all SIGXXX |
| 378 | ## macros defined on this platform. |
| 379 | check_signals: |
| 380 | gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \ |
| 381 | | cut -f2 -d' ' | sort > cpp_sig_symbols_here |
| 382 | diff -u $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_here \ |
| 383 | | egrep '^\+S' \ |
| 384 | | cut -c2- > cpp_sig_symbols_diff |
| 385 | if test -s cpp_sig_symbols_diff ; then \ |
| 386 | cat $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_diff \ |
| 387 | | sort > cpp_sig_symbols_new ;\ |
| 388 | echo "cpp_sig_symbols_new has the following additions:" ;\ |
| 389 | cat cpp_sig_symbols_diff ;\ |
| 390 | else echo "No new symbols found."; \ |
| 391 | fi |
| 392 | |
| 393 | ## Likewise for cpp_err_symbols.in. |
| 394 | check_errnos: |
| 395 | gcc -undef -dM -E $(srcdir)/cpp_errno.c | egrep ' E.+' \ |
| 396 | | cut -f2 -d' ' | sort > cpp_err_symbols_here |
| 397 | diff -u $(srcdir)/cpp_err_symbols.in cpp_err_symbols_here \ |
| 398 | | egrep '^\+E' \ |
| 399 | | cut -c2- > cpp_err_symbols_diff |
| 400 | if test -s cpp_err_symbols_diff ; then \ |
| 401 | cat $(srcdir)/cpp_err_symbols.in cpp_err_symbols_diff \ |
| 402 | | sort > cpp_err_symbols_new ;\ |
| 403 | echo "cpp_err_symbols_new has the following additions:" ;\ |
| 404 | cat cpp_err_symbols_diff ;\ |
| 405 | else echo "No new symbols found."; \ |
| 406 | fi |
| 407 | |
| 408 | MOSTLYCLEANFILES = \ |
| 409 | cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \ |
| 410 | cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new \ |
| 411 | version.h version.h.tmp \ |
| 412 | scmconfig.h scmconfig.h.tmp stack-limit-calibration.scm |
| 413 | |
| 414 | CLEANFILES = libpath.h *.x *.doc guile-procedures.txt guile-procedures.texi guile.texi |
| 415 | |
| 416 | MAINTAINERCLEANFILES = c-tokenize.c |