summaryrefslogtreecommitdiff
path: root/contrib/spi
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-10-20 21:04:27 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-10-20 21:04:27 +0000
commit805e431a3868ac71681316927403d1ba389e113b (patch)
treee20ff81ccb4be79cbd43e87cf76f33ee5fb1887d /contrib/spi
parent039f3f1b051b189e7ccf0c28d86d415e693ee8d6 (diff)
downloadpostgresql-805e431a3868ac71681316927403d1ba389e113b.tar.gz
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/spi')
-rw-r--r--contrib/spi/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile
index 60bc2e6dbf..bdce795f95 100644
--- a/contrib/spi/Makefile
+++ b/contrib/spi/Makefile
@@ -1,10 +1,10 @@
#
-# $Header: /cvsroot/pgsql/contrib/spi/Makefile,v 1.17 2000/07/09 13:13:36 petere Exp $
+# $Header: /cvsroot/pgsql/contrib/spi/Makefile,v 1.18 2000/10/20 21:03:31 petere Exp $
#
subdir = contrib/spi
top_builddir = ../..
-include ../../src/Makefile.global
+include $(top_builddir)/src/Makefile.global
OBJS = autoinc.o insert_username.o moddatetime.o refint.o timetravel.o
DOCS = README.spi
@@ -12,10 +12,11 @@ SQLS = $(OBJS:.o=.sql)
EXAMPLES= $(OBJS:.o=.example)
MODS = $(OBJS:.o=$(DLSUFFIX))
-CFLAGS += -I. $(CFLAGS_SL)
+override CPPFLAGS += -I$(srcdir)
+override CFLAGS += $(CFLAGS_SL)
ifdef REFINT_VERBOSE
-CFLAGS+= -DREFINT_VERBOSE
+override CPPFLAGS+= -DREFINT_VERBOSE
endif
all: $(MODS) $(SQLS)