1# contrib/hstore_plperl/Makefile 2 3MODULE_big = hstore_plperl 4OBJS = \ 5 $(WIN32RES) \ 6 hstore_plperl.o 7PGFILEDESC = "hstore_plperl - hstore transform for plperl" 8 9 10EXTENSION = hstore_plperl hstore_plperlu 11DATA = hstore_plperl--1.0.sql hstore_plperlu--1.0.sql 12 13REGRESS = hstore_plperl hstore_plperlu create_transform 14EXTRA_INSTALL = contrib/hstore 15 16ifdef USE_PGXS 17PG_CPPFLAGS = -I$(includedir_server)/extension 18PG_CONFIG = pg_config 19PGXS := $(shell $(PG_CONFIG) --pgxs) 20include $(PGXS) 21else 22PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plperl -I$(top_srcdir)/contrib 23subdir = contrib/hstore_plperl 24top_builddir = ../.. 25include $(top_builddir)/src/Makefile.global 26include $(top_srcdir)/contrib/contrib-global.mk 27endif 28 29# We must link libperl explicitly 30ifeq ($(PORTNAME), win32) 31# these settings are the same as for plperl 32override CPPFLAGS += -DPLPERL_HAVE_UID_GID -Wno-comment 33# ... see silliness in plperl Makefile ... 34SHLIB_LINK_INTERNAL += $(sort $(wildcard ../../src/pl/plperl/libperl*.a)) 35else 36rpathdir = $(perl_archlibexp)/CORE 37SHLIB_LINK += $(perl_embed_ldflags) 38endif 39 40# As with plperl we need to include the perl_includespec directory last. 41override CPPFLAGS := $(CPPFLAGS) $(perl_embed_ccflags) $(perl_includespec) 42