1 # contrib/bool_plperl/Makefile
3 MODULE_big
= bool_plperl
7 PGFILEDESC
= "bool_plperl - bool transform for plperl"
9 PG_CPPFLAGS
= -I
$(top_srcdir
)/src
/pl
/plperl
11 EXTENSION
= bool_plperlu bool_plperl
12 DATA
= bool_plperlu--1.0.sql bool_plperl--1.0.sql
14 REGRESS
= bool_plperl bool_plperlu
18 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
21 subdir
= contrib
/bool_plperl
23 include $(top_builddir
)/src
/Makefile.global
24 include $(top_srcdir
)/contrib
/contrib-global.mk
27 # We must link libperl explicitly
28 ifeq ($(PORTNAME
), win32
)
29 # these settings are the same as for plperl
30 override CPPFLAGS
+= -DPLPERL_HAVE_UID_GID
-Wno-comment
31 # ... see silliness in plperl Makefile ...
32 SHLIB_LINK_INTERNAL
+= $(sort $(wildcard ..
/..
/src
/pl
/plperl
/libperl
*.a
))
34 rpathdir
= $(perl_archlibexp
)/CORE
35 SHLIB_LINK
+= $(perl_embed_ldflags
)
38 # As with plperl we need to include the perl_includespec directory last.
39 override CPPFLAGS
:= $(CPPFLAGS
) $(perl_embed_ccflags
) $(perl_includespec
)