summaryrefslogtreecommitdiff
path: root/build.sh.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-11-07 23:42:58 +0000
committerRoland McGrath <roland@redhat.com>1994-11-07 23:42:58 +0000
commite55ed7808026a37a30c3ecd2686adad4b9714277 (patch)
treebdeae444ba9c8a3eacc62fa5c29d347b0afc8060 /build.sh.in
parentca54a0b991f1c5717656a9a7be16e5dfe4076322 (diff)
downloadgunmake-e55ed7808026a37a30c3ecd2686adad4b9714277.tar.gz
(prefix, exec_prefix): Set these from @...@.
(CPPFLAGS): New variable, set from @CPPFLAGS@. (compiling loop): Pass $CPPFLAGS before $CFLAGS.
Diffstat (limited to 'build.sh.in')
-rw-r--r--build.sh.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/build.sh.in b/build.sh.in
index 60d60d2..b789c62 100644
--- a/build.sh.in
+++ b/build.sh.in
@@ -2,7 +2,7 @@
# Shell script to build GNU Make in the absence of any `make' program.
-# Copyright (C) 1993 Free Software Foundation, Inc.
+# Copyright (C) 1993, 1994 Free Software Foundation, Inc.
# This file is part of GNU Make.
#
# GNU Make is free software; you can redistribute it and/or modify
@@ -24,6 +24,7 @@
srcdir='@srcdir@'
CC='@CC@'
CFLAGS='@CFLAGS@'
+CPPFLAGS='@CPPFLAGS@'
LDFLAGS='@LDFLAGS@'
defines='@DEFS@ -DLIBDIR="${libdir}" -DINCLUDEDIR="${includedir}"'
ALLOCA='@ALLOCA@'
@@ -32,10 +33,10 @@ extras='@LIBOBJS@'
REMOTE='@REMOTE@'
# Common prefix for machine-independent installed files.
-prefix=/usr/local
+prefix=@prefix@
# Common prefix for machine-dependent installed files.
-exec_prefix=/usr/local
-# Directory to find libraries in for `-lXXX'.
+exec_prefix=@exec_prefix@
+# Directory to find libraries in for `-lLIB'.
libdir=${exec_prefix}/lib
# Directory to search by default for included makefiles.
includedir=${prefix}/include
@@ -49,7 +50,8 @@ objs="commands.o job.o dir.o file.o misc.o main.o read.o remake.o rule.o implici
# Compile the source files into those objects.
for file in `echo ${objs} | sed 's/\.o/.c/g'`; do
echo compiling ${file}...
- $CC $CFLAGS $defines -c -I. -I${srcdir} -I${srcdir}/glob ${srcdir}/$file
+ $CC $CPPFLAGS $CFLAGS $defines -c \
+ -I. -I${srcdir} -I${srcdir}/glob ${srcdir}/$file
done
# The object files were actually all put in the current directory.