diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-10-20 21:04:27 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-10-20 21:04:27 +0000 |
commit | 805e431a3868ac71681316927403d1ba389e113b (patch) | |
tree | e20ff81ccb4be79cbd43e87cf76f33ee5fb1887d /contrib/string | |
parent | 039f3f1b051b189e7ccf0c28d86d415e693ee8d6 (diff) | |
download | postgresql-805e431a3868ac71681316927403d1ba389e113b.tar.gz postgresql-805e431a3868ac71681316927403d1ba389e113b.zip |
Add support for VPATH builds, that is, building somewhere else than in the
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.
Diffstat (limited to 'contrib/string')
-rw-r--r-- | contrib/string/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/string/Makefile b/contrib/string/Makefile index 1b01e63afbf..05b6fafb7fd 100644 --- a/contrib/string/Makefile +++ b/contrib/string/Makefile @@ -1,15 +1,16 @@ # -# $Header: /cvsroot/pgsql/contrib/string/Attic/Makefile,v 1.12 2000/07/09 13:13:43 petere Exp $ +# $Header: /cvsroot/pgsql/contrib/string/Attic/Makefile,v 1.13 2000/10/20 21:03:32 petere Exp $ # subdir = contrib/string top_builddir = ../.. -include ../../src/Makefile.global +include $(top_builddir)/src/Makefile.global NAME := string_io SONAME := $(NAME)$(DLSUFFIX) -CFLAGS += -I. $(CFLAGS_SL) +override CPPFLAGS += -I$(srcdir) +override CFLAGS += $(CFLAGS_SL) all: $(SONAME) $(NAME).sql |