diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-07-12 23:20:04 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-07-12 23:20:04 +0200 |
commit | a441d2f44ca233c9d3f0228e76b3072e9cdb7fda (patch) | |
tree | 1daedd331468d22477842fdb083b2dd5f2a2b3c1 /makefiles/gmake/platform.mk | |
parent | 701352f84ddd204d738407c29a4b6e501694a59c (diff) | |
download | crawler-a441d2f44ca233c9d3f0228e76b3072e9cdb7fda.tar.gz crawler-a441d2f44ca233c9d3f0228e76b3072e9cdb7fda.tar.bz2 |
fixed tests and added a libfetch test
Diffstat (limited to 'makefiles/gmake/platform.mk')
-rw-r--r-- | makefiles/gmake/platform.mk | 52 |
1 files changed, 42 insertions, 10 deletions
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk index 6ad041e..ad29eb9 100644 --- a/makefiles/gmake/platform.mk +++ b/makefiles/gmake/platform.mk @@ -21,21 +21,11 @@ # set up defaults for the build switches WITH_SSL ?= 0 -WITH_LUA ?= 0 -WITH_SASL ?= 0 -WITH_PAM ?= 0 WITH_SYSTEM_SQLITE3 ?= 0 WITH_LOCAL_SQLITE3 ?= 0 WITH_PGSQL ?= 0 WITH_LIBXML2 ?= 0 -WITH_LIBXSLT ?= 0 -WITH_SYSTEM_LIBHPDF ?= 0 -WITH_LOCAL_LIBHPDF ?= 0 -WITH_QT ?= 0 -WITH_LIBGMP ?= 0 -WITH_EXAMPLES ?= 1 ENABLE_NLS ?= 1 -RUN_TESTS ?= 1 # variables guessed by 'guess_env' PLATFORM ?= $(shell $(SHELL) $(TOPDIR)/makefiles/gmake/guess_env --platform "$(CC)" "$(CURDIR)" $(TOPDIR)) @@ -272,3 +262,45 @@ endif PLATFORM_COMPILE_FLAGS += $(INCLUDE_FLAGS_NET) +# OpenSSL +######### + +ifeq ($(WITH_SSL),1) + +ifeq "$(PLATFORM)" "LINUX" + +OPENSSL_LIBS ?= -lssl -lcrypto + +endif + +ifeq "$(PLATFORM)" "SUNOS" +ifeq "$(OS_MAJOR_VERSION)" "5" +ifeq "$(OS_MINOR_VERSION)" "10" +OPENSSL_DIR ?= /usr/local/ssl +OPENSSL_LIBS ?= -lssl -lcrypto +endif +endif +endif + +ifeq "$(PLATFORM)" "FREEBSD" +ifeq "$(OS_MAJOR_VERSION)" "8" +OPENSSL_LIBS ?= -lssl -lcrypto +endif +ifeq "$(OS_MAJOR_VERSION)" "9" +OPENSSL_LIBS ?= -lssl -lcrypto +endif +endif + +ifeq "$(PLATFORM)" "OPENBSD" +ifeq "$(OS_MAJOR_VERSION)" "5" +OPENSSL_LIBS ?= -lssl -lcrypto +endif +endif + +ifeq "$(PLATFORM)" "NETBSD" +ifeq "$(OS_MAJOR_VERSION)" "5" +OPENSSL_LIBS ?= -lssl -lcrypto +endif +endif + +endif |