From 9663a29178ef4049bb38cab6adc3f56d13ddf70d Mon Sep 17 00:00:00 2001 From: teodor Date: Tue, 13 Oct 2009 06:10:04 +0000 Subject: [PATCH] enables compilation using PGXS. Patch by Devrim Gunduz --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index add40de..f2e8350 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,15 @@ -subdir = contrib/plantuner -top_builddir = ../.. -include $(top_builddir)/src/Makefile.global - MODULE_big = plantuner DOCS = README.plantuner REGRESS = plantuner OBJS=plantuner.o +ifdef USE_PGXS +PGXS = $(shell pg_config --pgxs) +include $(PGXS) +else +subdir = contrib/plantuner +top_builddir = ../.. +include $(top_builddir)/src/Makefile.global + include $(top_srcdir)/contrib/contrib-global.mk +endif -- 2.46.1