* configure.in (host_makefile_frag): Don't set. Substitute for
authorIan Lance Taylor <ian@airs.com>
Mon, 4 Sep 1995 21:14:33 +0000 (21:14 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 4 Sep 1995 21:14:33 +0000 (21:14 +0000)
@CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
* Makefile.in (AR_FLAGS): Set to rc rather than qv.
(CC): Define as @CC@.
(CFLAGS): Set to @CFLAGS@.
(LDFLAGS): Define as @LDFLAGS@.
(ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).

binutils/ChangeLog
binutils/Makefile.in
binutils/configure.in

index 0f8695d18f2e2d5bae59d9804b8ffdf1f7696587..ebb9ff65d6447d684be810771be20a5de3ffaf1f 100644 (file)
@@ -1,5 +1,13 @@
 Mon Sep  4 14:30:00 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * configure.in (host_makefile_frag): Don't set.  Substitute for
+       @CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
+       * Makefile.in (AR_FLAGS): Set to rc rather than qv.
+       (CC): Define as @CC@.
+       (CFLAGS): Set to @CFLAGS@.
+       (LDFLAGS): Define as @LDFLAGS@.
+       (ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
+
        * configure.in: Don't bother to call config.bfd for each target.
        Just call it for the default target, and use the shell variable to
        decide whether underscores are used.
index 0588671df0a3622b74cae68234c53412b6d48114..961d7833c46868e1a834d4c093ff72a700d9bc9d 100644 (file)
@@ -51,8 +51,10 @@ INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
 
 AR = ar
-AR_FLAGS = qv
-CFLAGS = -g
+AR_FLAGS = rc
+CC = @CC@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
 RANLIB = ranlib
@@ -127,7 +129,7 @@ INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
 #### host and target dependant Makefile fragments come in here.
 ###
 
-ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CFLAGS)
+ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(TDEFINES) $(CFLAGS)
 
 .c.o:
        $(CC) -c $(ALL_CFLAGS) $<
index 9177beb640c3f32ed587ef059d158fc06a7ac0c2..878aa289673145130d80b913b115543f0e78494f 100644 (file)
@@ -10,11 +10,6 @@ srcname="Binutils"
 
 . ${srcdir}/../bfd/configure.host
 
-host_makefile_frag=
-if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then
-       host_makefile_frag=../bfd/config/${my_host}.mh
-fi
-
 # per-target:
 
 # Canonicalize the secondary target names.
@@ -115,6 +110,13 @@ else
 fi
 echo "UNDERSCORE = ${underscore}" >> Makefile.2
 
-cat Makefile.tmp >> Makefile.2
+test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
+test -z "$CC" && CC=cc
+test -z "$CFLAGS" && CFLAGS=-g
+sed -e "s%@CC@%${CC}%" \
+    -e "s%@CFLAGS@%${CFLAGS}%" \
+    -e "s%@HDEFINES@%${HDEFINES}%" \
+    -e "s%@LDFLAGS@%${LDFLAGS}%" < Makefile.tmp >> Makefile.2
+
 rm -f Makefile.tmp
 mv Makefile.2 Makefile
This page took 0.030573 seconds and 4 git commands to generate.