# eudc: Makefile

MODULE_big = eudc
PG_CPPFLAGS = -I$(libpq_srcdir) -L$(libdir)
OBJS = utf8_and_sjis_eudc.o utf8_and_euc_eudc.o
DATA_built = eudc.sql
DATA = uninstall_eudc.sql
REGRESS = init conv copy

ifeq ($(PORTNAME),win32)
SHLIB_LINK += -lutf8_and_sjis -lutf8_and_euc_jp
else
SHLIB_LINK += $(libdir)/utf8_and_sjis.so $(libdir)/utf8_and_euc_jp.so
endif

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