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