# 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
srcdir='@srcdir@'
CC='@CC@'
CFLAGS='@CFLAGS@'
+CPPFLAGS='@CPPFLAGS@'
LDFLAGS='@LDFLAGS@'
defines='@DEFS@ -DLIBDIR="${libdir}" -DINCLUDEDIR="${includedir}"'
ALLOCA='@ALLOCA@'
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
# 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.