#
# pg_statsinfo: lib/Makefile
#
#    Copyright (c) 2010, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
#
SRCS = \
	libstatsinfo.c \
	pg_control.c \
	port.c \
	pgut/pgut-be.c
OBJS = $(SRCS:.c=.o)
DATA_built = pg_statsinfo.sql
DATA = uninstall_pg_statsinfo.sql
MODULE_big = pg_statsinfo

ifdef USE_PGXS
PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/pg_statsinfo
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

# remove dependency to libxml2 and libxslt
LIBS := $(filter-out -lxml2, $(LIBS))
LIBS := $(filter-out -lxslt, $(LIBS))
