######################################################################------------------------------------------------------------------------- # # SQLite Foreign Data Wrapper for PostgreSQL # # Portions Copyright (c) 2018, TOSHIBA CORPORATION # # IDENTIFICATION # Makefile # ########################################################################## MODULE_big = sqlite_fdw OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o EXTENSION = sqlite_fdw DATA = sqlite_fdw--1.0.sql REGRESS = sqlite_fdw type aggregate SQLITE_LIB = sqlite3 UNAME = uname OS := $(shell $(UNAME)) ifeq ($(OS), Darwin) DLSUFFIX = .dylib else DLSUFFIX = .so endif SHLIB_LINK := -lsqlite3 ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) ifndef MAJORVERSION MAJORVERSION := $(basename $(VERSION)) endif ifeq (,$(findstring $(MAJORVERSION),9.6 10 11)) $(error PostgreSQL 9.6, 10, 11 is required to compile this extension) endif else subdir = contrib/sqlite_fdw top_builddir = ../.. include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif