############################################################################
#  Copyright (C) 2008 Nippon Telegraph and Telephone Corporation
############################################################################

MODULE_big = target_db
PG_CPPFLAGS = -I$(libpq_srcdir)
DATA_built = target_db.sql
DATA = uninstall_target_db.sql
OBJS = target_db.o pg_filesystem.o

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

ifneq ($(PORTNAME), win32)
SHLIB_LINK +=  -lblkid
endif
