2010-09-21 04:08:53 +08:00
|
|
|
# contrib/dblink/Makefile
|
2001-06-15 00:49:03 +08:00
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
MODULE_big = dblink
|
|
|
|
OBJS = dblink.o
|
2011-02-14 09:06:41 +08:00
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
2001-09-06 18:49:30 +08:00
|
|
|
SHLIB_LINK = $(libpq)
|
2010-11-13 04:15:16 +08:00
|
|
|
SHLIB_PREREQS = submake-libpq
|
2001-06-15 00:49:03 +08:00
|
|
|
|
2011-02-14 09:06:41 +08:00
|
|
|
EXTENSION = dblink
|
2012-10-11 04:53:08 +08:00
|
|
|
DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql
|
2002-09-03 12:01:05 +08:00
|
|
|
|
2011-02-14 09:06:41 +08:00
|
|
|
REGRESS = dblink
|
2004-08-21 04:13:10 +08:00
|
|
|
|
2012-12-12 00:52:45 +08:00
|
|
|
# the db name is hard-coded in the tests
|
|
|
|
override USE_MODULE_DB =
|
|
|
|
|
2004-08-21 04:13:10 +08:00
|
|
|
ifdef USE_PGXS
|
2007-06-27 06:05:04 +08:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2004-08-21 04:13:10 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/dblink
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
2001-09-06 18:49:30 +08:00
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
2004-08-21 04:13:10 +08:00
|
|
|
endif
|