Refactor code for setting pg_popcount* function pointers.
[pgsql.git] / contrib / jsonb_plpython / Makefile
blobfea7bdfc00f9dee1cfb44a6da26c5148e3f70983
1 # contrib/jsonb_plpython/Makefile
3 MODULE_big = jsonb_plpython$(python_majorversion)
4 OBJS = \
5 $(WIN32RES) \
6 jsonb_plpython.o
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
16 ifdef USE_PGXS
17 PG_CONFIG = pg_config
18 PGXS := $(shell $(PG_CONFIG) --pgxs)
19 include $(PGXS)
20 else
21 subdir = contrib/jsonb_plpython
22 top_builddir = ../..
23 include $(top_builddir)/src/Makefile.global
24 include $(top_srcdir)/contrib/contrib-global.mk
25 endif
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))
31 else
32 rpathdir = $(python_libdir)
33 SHLIB_LINK += $(python_libspec) $(python_additional_libs)
34 endif