# contrib/pg_stat_logmsg/Makefile

MODULE_big = pg_stat_logmsg
OBJS = \
	$(WIN32RES) \
	pg_stat_logmsg.o

EXTENSION = pg_stat_logmsg
DATA = pg_stat_logmsg--1.0.sql
PGFILEDESC = "pg_stat_logmsg - statistics of log messages"

LDFLAGS_SL += $(filter -lm, $(LIBS))

REGRESS_OPTS = --temp-config $(top_srcdir)/contrib/pg_stat_logmsg/pg_stat_logmsg.conf
REGRESS = select
# Disabled because these tests require "shared_preload_libraries=pg_stat_logmsg",
# which typical installcheck users do not have (e.g. buildfarm clients).
NO_INSTALLCHECK = 1

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