From: teodor Date: Fri, 18 Sep 2009 14:56:15 +0000 (+0000) Subject: Add usage of PG_XS. By Jeff X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=b74aff27407c93e242d78ac51902c9efb5329232;p=wildspeed.git Add usage of PG_XS. By Jeff --- diff --git a/Makefile b/Makefile index 8d36bf4..78d2dc0 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,13 @@ DATA_built = wildspeed.sql DATA = uninstall_wildspeed.sql REGRESS = wildspeed - +ifdef USE_PGXS +PG_CONFIG = pg_config +PGXS := $(shell $(PG_CONFIG) --pgxs) +include $(PGXS) +else subdir = contrib/wildspeed top_builddir = ../.. include $(top_builddir)/src/Makefile.global - include $(top_srcdir)/contrib/contrib-global.mk +endif \ No newline at end of file