2004-03-05 03:24:50 +00:00
|
|
|
# This makefile will build the new XML and XSLT routines.
|
2001-07-30 14:59:02 +00:00
|
|
|
|
2010-03-01 18:08:34 +00: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-05 03:24:50 +00:00
|
|
|
MODULE_big = pgxml
|
|
|
|
|
|
|
|
OBJS = xpath.o xslt_proc.o
|
|
|
|
|
2010-03-01 18:08:34 +00:00
|
|
|
PG_CPPFLAGS := $(shell xml2-config --cflags)
|
|
|
|
|
|
|
|
ifeq ($(USE_LIBXSLT),1)
|
|
|
|
PG_CPPFLAGS += -DUSE_LIBXSLT
|
2006-03-10 15:39:53 +00:00
|
|
|
SHLIB_LINK = -lxslt -lxml2
|
2010-03-01 18:08:34 +00:00
|
|
|
else
|
|
|
|
SHLIB_LINK = -lxml2
|
|
|
|
endif
|
2004-03-05 03:24:50 +00:00
|
|
|
|
|
|
|
DATA_built = pgxml.sql
|
2010-03-01 03:41:22 +00:00
|
|
|
REGRESS = xml2
|
2004-03-14 03:19:13 +00:00
|
|
|
DOCS = README.xml2
|
2001-08-21 00:39:20 +00:00
|
|
|
|
2004-08-20 20:13:10 +00:00
|
|
|
ifdef USE_PGXS
|
2005-09-27 17:13:14 +00:00
|
|
|
PGXS := $(shell pg_config --pgxs)
|
2004-08-20 20:13:10 +00:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/xml2
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|