pg_amcheck: Fix test failure on Windows with non-existing role
[pgsql.git] / contrib / ltree_plpython / Makefile
blob406d2789c9c58852183448d02382fed6b07d5095
1 # contrib/ltree_plpython/Makefile
3 MODULE_big = ltree_plpython$(python_majorversion)
4 OBJS = \
5 $(WIN32RES) \
6 ltree_plpython.o
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)"'
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/plpython -I$(top_srcdir)/contrib
23 subdir = contrib/ltree_plpython
24 top_builddir = ../..
25 include $(top_builddir)/src/Makefile.global
26 include $(top_srcdir)/contrib/contrib-global.mk
27 endif
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))
33 else
34 rpathdir = $(python_libdir)
35 SHLIB_LINK += $(python_libspec) $(python_additional_libs)
36 endif
38 REGRESS_OPTS += --load-extension=ltree
39 EXTRA_INSTALL += contrib/ltree