| 1 |
# contrib/hstore_plpython/Makefile |
| 2 |
|
| 3 |
MODULE_big = hstore_plpython$(python_majorversion) |
| 4 |
OBJS = \ |
| 5 |
$(WIN32RES) \ |
| 6 |
hstore_plpython.o |
| 7 |
PGFILEDESC = "hstore_plpython - hstore transform for plpython" |
| 8 |
|
| 9 |
EXTENSION = hstore_plpython3u |
| 10 |
DATA = hstore_plpython3u--1.0.sql |
| 11 |
|
| 12 |
REGRESS = hstore_plpython |
| 13 |
|
| 14 |
PG_CPPFLAGS = $(python_includespec) -DPLPYTHON_LIBNAME='"plpython$(python_majorversion)"' |
| 15 |
|
| 16 |
ifdef USE_PGXS |
| 17 |
PG_CPPFLAGS += -I$(includedir_server)/extension |
| 18 |
PG_CONFIG = pg_config |
| 19 |
PGXS := $(shell $(PG_CONFIG) --pgxs) |
| 20 |
include $(PGXS) |
| 21 |
else |
| 22 |
PG_CPPFLAGS += -I$(top_srcdir)/src/pl/plpython -I$(top_srcdir)/contrib |
| 23 |
subdir = contrib/hstore_plpython |
| 24 |
top_builddir = ../.. |
| 25 |
include $(top_builddir)/src/Makefile.global |
| 26 |
include $(top_srcdir)/contrib/contrib-global.mk |
| 27 |
endif |
| 28 |
|
| 29 |
# We must link libpython explicitly |
| 30 |
ifeq ($(PORTNAME), win32) |
| 31 |
# ... see silliness in plpython Makefile ... |
| 32 |
SHLIB_LINK_INTERNAL += $(sort $(wildcard ../../src/pl/plpython/libpython*.a)) |
| 33 |
else |
| 34 |
rpathdir = $(python_libdir) |
| 35 |
SHLIB_LINK += $(python_libspec) $(python_additional_libs) |
| 36 |
endif |
| 37 |
|
| 38 |
REGRESS_OPTS += --load-extension=hstore |
| 39 |
EXTRA_INSTALL += contrib/hstore |