diff options
author | Roland McGrath <roland@redhat.com> | 1994-11-28 23:06:28 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1994-11-28 23:06:28 +0000 |
commit | d3b9c35c8fcb93f92fc79e9690cf24f3b97c42d9 (patch) | |
tree | ca115a8d5a601675f6824dd36d21482e64c7e2a5 | |
parent | c50b75b4397d0de02d3d6d54db03a362a3cc26c8 (diff) | |
download | gunmake-d3b9c35c8fcb93f92fc79e9690cf24f3b97c42d9.tar.gz |
(CPPFLAGS): New variable.
(prefix, exec_prefix): Set from @...@.
(compilation loop): Pass $CPPFLAGS to compiler.
-rw-r--r-- | build.template | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/build.template b/build.template index 6bae5b2..1e65ac5 100644 --- a/build.template +++ b/build.template @@ -1,8 +1,8 @@ #!/bin/sh - # Shell script to build GNU Make in the absence of any `make' program. +# @configure_input@ -# 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,9 +33,9 @@ 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 +exec_prefix='@exec_prefix@' # Directory to find libraries in for `-lXXX'. libdir=${exec_prefix}/lib # Directory to search by default for included makefiles. @@ -49,7 +50,8 @@ objs="%objs% remote-${REMOTE}.o ${extras} ${ALLOCA}" # 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 $defines $CPPFLAGS $CFLAGS \ + -c -I. -I${srcdir} -I${srcdir}/glob ${srcdir}/$file done # The object files were actually all put in the current directory. |