changeset 5234:abc23ae65483

(configuration): New variable. (emacs.o): Define macro CONFIGURATION. [__GNUC__ > 1]: Maybe define LINKER_WAS_SPECIFIED. [LINKER_WAS_SPECIFIED] (YMF_PASS_LDFLAGS): Define as identity.
author Richard M. Stallman <rms@gnu.org>
date Thu, 23 Dec 1993 01:11:33 +0000
parents 83e771f33251
children 4ae7453678af
files src/Makefile.in
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.in	Thu Dec 23 01:09:51 1993 +0000
+++ b/src/Makefile.in	Thu Dec 23 01:11:33 1993 +0000
@@ -28,6 +28,9 @@
 CFLAGS=@CFLAGS@
 C_SWITCH_SYSTEM=
 LN_S=@LN_S@
+# These escaped doublequotes become part of the macro definition in emacs.c.
+# Thus, the definition is a C string constant.
+configuration=\"@configuration@\"
 
 /* On Xenix and the IBM RS6000, double-dot gets screwed up.  */
 dot = .
@@ -289,6 +292,10 @@
 
 #if __GNUC__ > 1
 
+#ifdef LINKER
+#define LINKER_WAS_SPECIFIED
+#endif
+
 /* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
    places that are difficult to figure out at make time.  Fortunately,
    these same versions allow you to pass arbitrary flags on to the
@@ -309,12 +316,16 @@
 
 GNULIB_VAR = LIB_GCC
 
+#ifndef LINKER_WAS_SPECIFIED
 /* GCC passes any argument prefixed with -Xlinker directly to the
    linker.  See prefix-args.c for an explanation of why we don't do
    this with the shell's `for' construct.
    Note that some people don't have '.'  in their paths, so we must
    use ./prefix-args.  */
 #define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
+#else
+#define YMF_PASS_LDFLAGS(flags) flags
+#endif
 
 #else /* __GNUC__ < 2 */
 
@@ -685,6 +696,7 @@
 doprnt.o : doprnt.c
 editfns.o : editfns.c window.h buffer.h systime.h INTERVAL_SRC $(config_h) 
 emacs.o : emacs.c commands.h systty.h syssignal.h process.h INTERVAL_SRC $(config_h) 
+	$(CC) -c -DCONFIGURATION="$(configuration)" $(CPPFLAGS) $(ALL_CFLAGS) $<
 fileio.o : fileio.c window.h buffer.h systime.h INTERVAL_SRC $(config_h) 
 filelock.o : filelock.c buffer.h paths.h $(config_h)
 filemode.o : filemode.c  $(config_h)