summaryrefslogtreecommitdiff
path: root/src/Makefile.global.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2004-07-30 12:26:40 +0000
committerPeter Eisentraut <peter_e@gmx.net>2004-07-30 12:26:40 +0000
commitadf57cd7e2dca8ded31645e2f2b2deb5e4515c83 (patch)
tree72c1613e63e10b296d23cc402f776e25f7f72326 /src/Makefile.global.in
parentf82d99be7ef98bc252bb90da05801b4a2b51fad8 (diff)
downloadpostgresql-adf57cd7e2dca8ded31645e2f2b2deb5e4515c83.tar.gz
PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with
some massaging by Peter Eisentraut. This is basically a simple generalization of the existing contrib makefiles.
Diffstat (limited to 'src/Makefile.global.in')
-rw-r--r--src/Makefile.global.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 7a56b9ba46..7ccf9b00ef 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.189 2004/06/02 21:05:52 momjian Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.190 2004/07/30 12:26:40 petere Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -116,6 +116,8 @@ endif
localedir := @localedir@
+pgxsdir = $(pkglibdir)/pgxs
+
##########################################################################
#
@@ -166,10 +168,15 @@ COLLATEINDEX = @COLLATEINDEX@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
+
+ifdef PGXS
+override CPPFLAGS := -I$(includedir_server) -I$(includedir_internal) $(CPPFLAGS)
+else # not PGXS
override CPPFLAGS := -I$(top_srcdir)/src/include $(CPPFLAGS)
ifdef VPATH
override CPPFLAGS := -I$(top_builddir)/src/include $(CPPFLAGS)
endif
+endif # not PGXS
CC = @CC@
GCC = @GCC@
@@ -366,6 +373,9 @@ TAS = @TAS@
%.bz2: %
$(BZIP2) -f $<
+
+ifndef PGXS
+
# Remake Makefile.global from Makefile.global.in if the latter
# changed. In order to trigger this rule, the including file must
# write `include $(top_builddir)/src/Makefile.global', not some
@@ -393,6 +403,8 @@ $(top_builddir)/src/include/stamp-h: $(top_srcdir)/src/include/pg_config.h.in $(
$(top_builddir)/config.status: $(top_srcdir)/configure
cd $(top_builddir) && ./config.status --recheck
+endif # not PGXS
+
install-strip:
@$(MAKE) INSTALL_PROGRAM_ENV="STRIPPROG='$(STRIP)'" \