Fix contrib/xml2 makefile to not override CFLAGS, and in passing make it
[PostgreSQL.git] / contrib / xml2 / Makefile
blobea8636ad4c7ada120b9879b0f8b36639b6a5dc29
1 # $PostgreSQL$
3 MODULE_big = pgxml
5 OBJS = $(if $(filter -lxslt, $(LIBS)), xpath.o xslt_proc.o, xpath.o)
7 SHLIB_LINK += $(filter -lxslt, $(LIBS)) $(filter -lxml2, $(LIBS))
9 DATA_built = pgxml.sql
10 DATA = uninstall_pgxml.sql
12 ifdef USE_PGXS
13 PG_CONFIG = pg_config
14 PGXS := $(shell $(PG_CONFIG) --pgxs)
15 include $(PGXS)
16 else
17 subdir = contrib/xml2
18 top_builddir = ../..
19 include $(top_builddir)/src/Makefile.global
20 include $(top_srcdir)/contrib/contrib-global.mk
21 endif