diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-03 17:58:36 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-03 17:58:36 +0200 |
commit | 92ba06d58475fd4ab07d8e3b1efa6993f1f02340 (patch) | |
tree | 385a511835136fb2d190df05651b03c015690e91 /makefiles | |
parent | ee52b3eab8cc7feb49fa6db964b94b35e2bc8bac (diff) | |
download | crawler-92ba06d58475fd4ab07d8e3b1efa6993f1f02340.tar.gz crawler-92ba06d58475fd4ab07d8e3b1efa6993f1f02340.tar.bz2 |
added an experimental curl fetcher
Diffstat (limited to 'makefiles')
-rw-r--r-- | makefiles/gmake/help.mk | 1 | ||||
-rw-r--r-- | makefiles/gmake/platform.mk | 56 |
2 files changed, 56 insertions, 1 deletions
diff --git a/makefiles/gmake/help.mk b/makefiles/gmake/help.mk index c8d855e..db834a1 100644 --- a/makefiles/gmake/help.mk +++ b/makefiles/gmake/help.mk @@ -45,6 +45,7 @@ WITH_ICU=1 enable ICU support for URL parsing in Google URL scripting support: WITH_LUA=1 use Lua for configuration and scripting +WITH_CURL=1 use libcurl and libcurlpp and generate a Curl fetcher Some more obscure options: diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk index ad29eb9..8cafc3d 100644 --- a/makefiles/gmake/platform.mk +++ b/makefiles/gmake/platform.mk @@ -102,7 +102,7 @@ EXE = endif # extensions for shared libraries -# (TOOD: HP/Unix has .shlib, Mac/X has .lib, but we can't test it currently) +# (TOOD: HP/Unix has .shlib, Mac/X has .dylib, but we can't test it currently) SO = .so # name if the installation program @@ -304,3 +304,57 @@ endif endif endif + +# curl and curlpp +################# + +ifeq ($(WITH_CURL),1) + +ifeq "$(PLATFORM)" "LINUX" + +CURL_INCLUDES ?= +CURL_LDFLAGS ?= +CURL_LIBS ?= -lcurl -lcurlpp + +endif + +ifeq "$(PLATFORM)" "SUNOS" +ifeq "$(OS_MAJOR_VERSION)" "5" +ifeq "$(OS_MINOR_VERSION)" "10" +CURL_INCLUDES ?= -I/opt/csw/include +CURL_LDFLAGS ?= -L/opt/csw/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif +endif + +ifeq "$(PLATFORM)" "FREEBSD" +ifeq "$(OS_MAJOR_VERSION)" "8" +CURL_INCLUDES ?= -I/usr/local/include +CURL_LDFLAGS ?= -L/usr/local/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +ifeq "$(OS_MAJOR_VERSION)" "9" +CURL_INCLUDES ?= -I/usr/local/include +CURL_LDFLAGS ?= -L/usr/local/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif + +ifeq "$(PLATFORM)" "OPENBSD" +ifeq "$(OS_MAJOR_VERSION)" "5" +CURL_INCLUDES ?= -I/usr/local/include +CURL_LDFLAGS ?= -L/usr/local/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif + +ifeq "$(PLATFORM)" "NETBSD" +ifeq "$(OS_MAJOR_VERSION)" "5" +CURL_INCLUDES ?= -I/usr/pkg/include +CURL_LDFLAGS ?= -L/usr/pkg/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif + +endif |