1 # contrib/jsonb_plpython/Makefile
3 MODULE_big
= jsonb_plpython
$(python_majorversion
)
7 PGFILEDESC
= "jsonb_plpython - jsonb transform for plpython"
9 PG_CPPFLAGS
= -I
$(top_srcdir
)/src
/pl
/plpython
$(python_includespec
) -DPLPYTHON_LIBNAME
='"plpython$(python_majorversion)"'
11 EXTENSION
= jsonb_plpython3u
12 DATA
= jsonb_plpython3u--1.0.sql
14 REGRESS
= jsonb_plpython
18 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
21 subdir
= contrib
/jsonb_plpython
23 include $(top_builddir
)/src
/Makefile.global
24 include $(top_srcdir
)/contrib
/contrib-global.mk
27 # We must link libpython explicitly
28 ifeq ($(PORTNAME
), win32
)
29 # ... see silliness in plpython Makefile ...
30 SHLIB_LINK_INTERNAL
+= $(sort $(wildcard ..
/..
/src
/pl
/plpython
/libpython
*.a
))
32 rpathdir
= $(python_libdir
)
33 SHLIB_LINK
+= $(python_libspec
) $(python_additional_libs
)