summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-07-12 23:20:04 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-07-12 23:20:04 +0200
commita441d2f44ca233c9d3f0228e76b3072e9cdb7fda (patch)
tree1daedd331468d22477842fdb083b2dd5f2a2b3c1 /makefiles
parent701352f84ddd204d738407c29a4b6e501694a59c (diff)
downloadcrawler-a441d2f44ca233c9d3f0228e76b3072e9cdb7fda.tar.gz
crawler-a441d2f44ca233c9d3f0228e76b3072e9cdb7fda.tar.bz2
fixed tests and added a libfetch test
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/gmake/help.mk4
-rw-r--r--makefiles/gmake/platform.mk52
-rw-r--r--makefiles/gmake/sub.mk2
3 files changed, 46 insertions, 12 deletions
diff --git a/makefiles/gmake/help.mk b/makefiles/gmake/help.mk
index b5ffa62..2b5f07a 100644
--- a/makefiles/gmake/help.mk
+++ b/makefiles/gmake/help.mk
@@ -17,6 +17,8 @@ make check-po check sanity of gettext files
Available optional features:
+WITH_SSL=1 use OpenSSL additionally for communication encryption
+
frontier implementations:
WITH_SYSTEM_SQLITE3=1 use the system version of sqlite3
@@ -37,4 +39,4 @@ Some more obscure options:
ENABLE_NLS=0 Don't build gettext NLS support (default is on)
Example:
-make WITH_SQLITE3=1 WITH_PGSQL=1 WITH_LIBXML2=1
+make WITH_SSL=1 WITH_SQLITE3=1 WITH_PGSQL=1 WITH_LOCAL_LIBFETCH=1 WITH_LIBXML2=1
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
diff --git a/makefiles/gmake/sub.mk b/makefiles/gmake/sub.mk
index 5e4bf63..787fb0b 100644
--- a/makefiles/gmake/sub.mk
+++ b/makefiles/gmake/sub.mk
@@ -19,7 +19,7 @@ $(SUBDIRS):
$(MAKE) -C $@ all
.PHONY: test local_test
-test: all local_test
+test: all $(TEST_BINS) $(TEST_CPP_BINS) local_test
@test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \
(set -e; $(MAKE) -C $$d test || exit 1); done)