mirror of https://github.com/postgres/postgres
source directory. This involves mostly makefiles using $(srcdir) when they might have used ".". (Regression tests don't work with this, yet.) Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword in most places, to preserve necessary flags even when the user overrode the flags.REL7_1_STABLE
parent
039f3f1b05
commit
805e431a38
@ -0,0 +1,33 @@ |
||||
#! /bin/sh |
||||
|
||||
# This script prepares a PostgreSQL build tree. It is intended |
||||
# to be run by the configure script. |
||||
|
||||
set -e |
||||
me=`basename $0` |
||||
|
||||
help="\ |
||||
Usage: $me sourcetree [buildtree]" |
||||
|
||||
if test -z "$1"; then |
||||
echo "$help" 1>&2 |
||||
exit 1 |
||||
elif test x"$1" = x"--help"; then |
||||
echo "$help" |
||||
exit 0 |
||||
fi |
||||
sourcetree=$1 |
||||
|
||||
buildtree=${2:-'.'} |
||||
|
||||
for item in `find "$sourcetree" -type d -\( -name CVS -prune -o -print -\)`; do |
||||
subdir=`expr "$item" : "$sourcetree\(.*\)"` || true |
||||
mkdir -p "$buildtree/$subdir" |
||||
done |
||||
|
||||
for item in `find "$sourcetree" -name Makefile -o -name GNUmakefile`; do |
||||
subdir=`expr "$item" : "$sourcetree\(.*\)"` || true |
||||
if test ! -e "${item}.in"; then |
||||
ln -fs "$item" "$buildtree/$subdir" |
||||
fi |
||||
done |
@ -1,9 +1,7 @@ |
||||
# install creates intermediate directories
|
||||
NO_BEFOREINSTL= true
|
||||
SHELL=/bin/sh5
|
||||
|
||||
#
|
||||
# "-G 0" works for both DEC cc and GNU cc.
|
||||
#
|
||||
%.so: %.c |
||||
$(CC) -c -G 0 $(CFLAGS) -o $@ $<
|
||||
$(CC) -c -G 0 $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||
|
Loading…
Reference in new issue