2004-03-04 22:24:50 -05:00
|
|
|
# This makefile will build the new XML and XSLT routines.
|
2001-07-30 10:59:02 -04:00
|
|
|
|
2010-03-01 13:08:27 -05:00
|
|
|
# This module will not work without libxml2, but it will work without libxslt.
|
|
|
|
|
# To build without libxslt, run "gmake USE_LIBXSLT=0", or comment out the
|
|
|
|
|
# following line:
|
|
|
|
|
USE_LIBXSLT = 1
|
|
|
|
|
|
2004-03-04 22:24:50 -05:00
|
|
|
MODULE_big = pgxml
|
|
|
|
|
|
|
|
|
|
OBJS = xpath.o xslt_proc.o
|
|
|
|
|
|
2010-03-01 13:08:27 -05:00
|
|
|
PG_CPPFLAGS := $(shell xml2-config --cflags)
|
|
|
|
|
|
|
|
|
|
ifeq ($(USE_LIBXSLT),1)
|
|
|
|
|
PG_CPPFLAGS += -DUSE_LIBXSLT
|
2006-03-10 10:39:42 -05:00
|
|
|
SHLIB_LINK = -lxslt -lxml2
|
2010-03-01 13:08:27 -05:00
|
|
|
else
|
|
|
|
|
SHLIB_LINK = -lxml2
|
|
|
|
|
endif
|
2004-03-04 22:24:50 -05:00
|
|
|
|
|
|
|
|
DATA_built = pgxml.sql
|
2006-02-27 07:54:39 -05:00
|
|
|
DATA = uninstall_pgxml.sql
|
2010-02-28 22:41:17 -05:00
|
|
|
REGRESS = xml2
|
2004-03-13 22:19:13 -05:00
|
|
|
DOCS = README.xml2
|
2001-08-20 20:39:20 -04:00
|
|
|
|
2004-08-20 16:13:10 -04:00
|
|
|
ifdef USE_PGXS
|
2005-09-27 13:13:14 -04:00
|
|
|
PGXS := $(shell pg_config --pgxs)
|
2004-08-20 16:13:10 -04:00
|
|
|
include $(PGXS)
|
|
|
|
|
else
|
|
|
|
|
subdir = contrib/xml2
|
|
|
|
|
top_builddir = ../..
|
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
|
endif
|