From 78bda5f34f4922db20553f0d16ef50c6b2bc57c9 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Fri, 21 Feb 1997 18:21:53 +0000 Subject: [PATCH] * Makefile.am (EXTRA_libguile_la_SOURCES): New variable to hold source files that are not always included in libguile but should have their dependencies calculated by automake. This variable is recognized by automake, no further magic is needed. (libguile_la_DEPENDENCIES): Changed to @LIBLOBJS@. Libtool wants to deal exclusively with *.lo files, as it seems. The *.o files are built automatically when the corresponding *.lo file gets built. --- libguile/Makefile.am | 9 +++------ libguile/Makefile.in | 34 ++++++++++++++++++---------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/libguile/Makefile.am b/libguile/Makefile.am index e2fff7078..53b51d728 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -19,7 +19,9 @@ read.c root.c scmsigs.c sequences.c simpos.c smob.c socket.c \ stackchk.c stime.c strings.c strop.c strorder.c \ strports.c struct.c symbols.c tag.c throw.c unif.c variable.c \ vectors.c version.c vports.c weaks.c _scm.h -libguile_la_DEPENDENCIES = @LIBOBJS@ +EXTRA_libguile_la_SOURCES = backtrace.c stacks.c debug.c srcprop.c \ +strerror.c inet_aton.c +libguile_la_DEPENDENCIES = @LIBLOBJS@ libguile_la_LDADD = @LIBLOBJS@ libguile_la_LDFLAGS = -version-info 0:0 -rpath $(libdir) @@ -62,11 +64,6 @@ SUFFIXES = .x .c.x: ./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ -## When dynamic linking is disabled, this dependency is not -## automatically detected. - -dynl.o dynl.lo: dynl.x - ## Add -MG to make the .x magic work with auto-dep code. MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) diff --git a/libguile/Makefile.in b/libguile/Makefile.in index 30c8bee8c..2932e089e 100644 --- a/libguile/Makefile.in +++ b/libguile/Makefile.in @@ -68,7 +68,9 @@ read.c root.c scmsigs.c sequences.c simpos.c smob.c socket.c \ stackchk.c stime.c strings.c strop.c strorder.c \ strports.c struct.c symbols.c tag.c throw.c unif.c variable.c \ vectors.c version.c vports.c weaks.c _scm.h -libguile_la_DEPENDENCIES = @LIBOBJS@ +EXTRA_libguile_la_SOURCES = backtrace.c stacks.c debug.c srcprop.c \ +strerror.c inet_aton.c +libguile_la_DEPENDENCIES = @LIBLOBJS@ libguile_la_LDADD = @LIBLOBJS@ libguile_la_LDFLAGS = -version-info 0:0 -rpath $(libdir) @@ -142,21 +144,23 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \ TAR = tar DEP_FILES = .deps/alist.P .deps/append.P .deps/appinit.P \ -.deps/arbiters.P .deps/async.P .deps/boolean.P .deps/chars.P \ -.deps/continuations.P .deps/dynl.P .deps/dynwind.P .deps/eq.P \ -.deps/error.P .deps/eval.P .deps/extchrs.P .deps/feature.P \ -.deps/filesys.P .deps/fports.P .deps/gc.P .deps/gdbint.P .deps/genio.P \ -.deps/gsubr.P .deps/hash.P .deps/hashtab.P .deps/init.P .deps/ioext.P \ -.deps/kw.P .deps/list.P .deps/load.P .deps/mallocs.P .deps/markers.P \ -.deps/mbstrings.P .deps/net_db.P .deps/numbers.P .deps/objprop.P \ -.deps/options.P .deps/pairs.P .deps/ports.P .deps/posix.P .deps/print.P \ +.deps/arbiters.P .deps/async.P .deps/backtrace.P .deps/boolean.P \ +.deps/chars.P .deps/continuations.P .deps/debug.P .deps/dynl.P \ +.deps/dynwind.P .deps/eq.P .deps/error.P .deps/eval.P .deps/extchrs.P \ +.deps/feature.P .deps/filesys.P .deps/fports.P .deps/gc.P \ +.deps/gdbint.P .deps/genio.P .deps/gsubr.P .deps/hash.P .deps/hashtab.P \ +.deps/inet_aton.P .deps/init.P .deps/ioext.P .deps/kw.P .deps/list.P \ +.deps/load.P .deps/mallocs.P .deps/markers.P .deps/mbstrings.P \ +.deps/net_db.P .deps/numbers.P .deps/objprop.P .deps/options.P \ +.deps/pairs.P .deps/ports.P .deps/posix.P .deps/print.P \ .deps/procprop.P .deps/procs.P .deps/ramap.P .deps/read.P .deps/root.P \ .deps/scmsigs.P .deps/sequences.P .deps/simpos.P .deps/smob.P \ -.deps/socket.P .deps/stackchk.P .deps/stime.P .deps/strings.P \ -.deps/strop.P .deps/strorder.P .deps/strports.P .deps/struct.P \ -.deps/symbols.P .deps/tag.P .deps/throw.P .deps/unif.P .deps/variable.P \ -.deps/vectors.P .deps/version.P .deps/vports.P .deps/weaks.P -SOURCES = $(libguile_la_SOURCES) +.deps/socket.P .deps/srcprop.P .deps/stackchk.P .deps/stacks.P \ +.deps/stime.P .deps/strerror.P .deps/strings.P .deps/strop.P \ +.deps/strorder.P .deps/strports.P .deps/struct.P .deps/symbols.P \ +.deps/tag.P .deps/throw.P .deps/unif.P .deps/variable.P .deps/vectors.P \ +.deps/version.P .deps/vports.P .deps/weaks.P +SOURCES = $(libguile_la_SOURCES) $(EXTRA_libguile_la_SOURCES) OBJECTS = $(libguile_la_OBJECTS) default: all @@ -491,8 +495,6 @@ libpath.h: Makefile .c.x: ./guile-snarf $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $< > $@ -dynl.o dynl.lo: dynl.x - errnos.list: $(srcdir)/errnos.default $(ERRNO_EXTRACT)