1 # contrib/ltree_plpython/Makefile
3 MODULE_big
= ltree_plpython
$(python_majorversion
)
7 PGFILEDESC
= "ltree_plpython - ltree transform for plpython"
9 EXTENSION
= ltree_plpython3u
10 DATA
= ltree_plpython3u--1.0.sql
12 REGRESS
= ltree_plpython
14 PG_CPPFLAGS
= $(python_includespec
) -DPLPYTHON_LIBNAME
='"plpython$(python_majorversion)"'
17 PG_CPPFLAGS
+= -I
$(includedir_server
)/extension
19 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
22 PG_CPPFLAGS
+= -I
$(top_srcdir
)/src
/pl
/plpython
-I
$(top_srcdir
)/contrib
23 subdir
= contrib
/ltree_plpython
25 include $(top_builddir
)/src
/Makefile.global
26 include $(top_srcdir
)/contrib
/contrib-global.mk
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
))
34 rpathdir
= $(python_libdir
)
35 SHLIB_LINK
+= $(python_libspec
) $(python_additional_libs
)
38 REGRESS_OPTS
+= --load-extension
=ltree
39 EXTRA_INSTALL
+= contrib
/ltree