EXTENSION = http
|
DATA = http--1.0--1.1.sql \
|
http--1.1--1.2.sql \
|
http--1.2--1.3.sql \
|
http--1.3--1.4.sql \
|
http--1.4--1.5.sql \
|
http--1.5--1.6.sql \
|
http--1.6--1.6.1.sql \
|
http--1.6.1--1.6.sql \
|
http--1.6.sql
|
PGFILEDESC = "HTTP client for PostgreSQL, retrieve a web page from inside the database."
|
#local only with "docker run -d -p 9080:80 kennethreitz/httpbin"
|
#REGRESS = http http-ver
|
|
MODULE_big = http
|
OBJS = http.o
|
|
UNAME := $(shell uname)
|
ifeq ($(UNAME), Linux)
|
CURL_CONFIG = curl-config
|
CURL_INC := $(shell $(CURL_CONFIG) --cflags)
|
ifeq ($(CURL_INC),)
|
CURL_INC := -I/usr/local/include
|
endif
|
PG_CPPFLAGS = $(CURL_INC)
|
SHLIB_LINK = $(shell $(CURL_CONFIG) --libs)
|
else
|
PG_CPPFLAGS = -Iwincurl
|
SHLIB_LINK = -lcurl
|
endif
|
|
ifdef USE_PGXS
|
PGXS := $(shell pg_config --pgxs)
|
include $(PGXS)
|
else
|
subdir = contrib/http
|
top_builddir = ../..
|
include $(top_builddir)/src/Makefile.global
|
include $(top_srcdir)/contrib/contrib-global.mk
|
endif
|