2015-02-18 04:23:18 +00:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PKG_CONFIG = pkg-config
|
|
|
|
|
|
|
|
extension_version = 0
|
|
|
|
|
2015-03-13 03:18:58 +00:00
|
|
|
EXTENSION = uri
|
|
|
|
MODULE_big = uri
|
|
|
|
OBJS = uri.o
|
|
|
|
DATA_built = uri--$(extension_version).sql
|
2015-02-18 04:23:18 +00:00
|
|
|
|
|
|
|
ifeq (no,$(shell $(PKG_CONFIG) liburiparser || echo no))
|
|
|
|
$(warning liburiparser not registed with pkg-config, build might fail)
|
|
|
|
endif
|
|
|
|
|
|
|
|
PG_CPPFLAGS += $(shell $(PKG_CONFIG) --cflags-only-I liburiparser)
|
|
|
|
SHLIB_LINK += $(shell $(PKG_CONFIG) --libs liburiparser)
|
|
|
|
|
|
|
|
REGRESS = init test
|
|
|
|
REGRESS_OPTS = --inputdir=test
|
|
|
|
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
|
|
include $(PGXS)
|
|
|
|
|
2015-03-13 03:18:58 +00:00
|
|
|
uri--$(extension_version).sql: uri.sql
|
2015-02-18 04:23:18 +00:00
|
|
|
cat $^ >$@
|