Debian Codegraph @

contrib/hstore_plperl/Makefile

raw
1 # contrib/hstore_plperl/Makefile
2
3 MODULE_big = hstore_plperl
4 OBJS = \
5 $(WIN32RES) \
6 hstore_plperl.o
7 PGFILEDESC = "hstore_plperl - hstore transform for plperl"
8
9
10 EXTENSION = hstore_plperl hstore_plperlu
11 DATA = hstore_plperl--1.0.sql hstore_plperlu--1.0.sql
12
13 REGRESS = hstore_plperl hstore_plperlu create_transform
14 EXTRA_INSTALL = contrib/hstore
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/plperl -I$(top_srcdir)/contrib
23 subdir = contrib/hstore_plperl
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 libperl explicitly
30 ifeq ($(PORTNAME), win32)
31 # these settings are the same as for plperl
32 override CPPFLAGS += -DPLPERL_HAVE_UID_GID -Wno-comment
33 # ... see silliness in plperl Makefile ...
34 SHLIB_LINK_INTERNAL += $(sort $(wildcard ../../src/pl/plperl/libperl*.a))
35 else
36 rpathdir = $(perl_archlibexp)/CORE
37 SHLIB_LINK += $(perl_embed_ldflags)
38 endif
39
40 # As with plperl we need to include the perl_includespec directory last.
41 override CPPFLAGS := $(CPPFLAGS) $(perl_embed_ccflags) $(perl_includespec)