summaryrefslogtreecommitdiff
path: root/support/NWGNUab
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2009-12-01 14:42:26 +0000
committerGuenter Knauf <fuankg@apache.org>2009-12-01 14:42:26 +0000
commita66a14309d1abff6b604176bad9f27f60aee1ce4 (patch)
tree3723f41c683fe508046b364ca53d1bdbd099e943 /support/NWGNUab
parent14f5f18aa4991d3bcce3599b3619e3188feee1ed (diff)
downloadhttpd-a66a14309d1abff6b604176bad9f27f60aee1ce4.tar.gz
more NetWare makefile fixes and cleanups.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/NWGNUab')
-rw-r--r--support/NWGNUab64
1 files changed, 46 insertions, 18 deletions
diff --git a/support/NWGNUab b/support/NWGNUab
index dcbabc655b..ea22b8fada 100644
--- a/support/NWGNUab
+++ b/support/NWGNUab
@@ -1,14 +1,10 @@
#
-# Make sure all needed macro's are defined
-#
-
-#
# Get the 'head' of the build environment if necessary. This includes default
# targets and paths to tools
#
ifndef EnvironmentDefined
-include $(AP_WORK)\build\NWGNUhead.inc
+include $(AP_WORK)/build/NWGNUhead.inc
endif
#
@@ -17,12 +13,29 @@ endif
# Make sure all needed macro's are defined
#
-ifdef WITH_MOD_SSL
-ifneq "$(OSSLSDK)" ""
-OSSLINC = $(OSSLSDK)/outinc_nw_libc
-OSSLLIB = $(OSSLSDK)/out_nw_libc
+ifeq "$(WITH_ABS)" "1"
+
+ifeq "$(USE_NTLS)" "1"
+SSL_INC = $(NTLSSDK)/inc
+SSL_LIB = $(NTLSSDK)/imp
+SSL_BIN = $(NTLSSDK)/bin
+SSL_APP = $(NTLSSDK)/apps
+ifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
+$(warning '$(NTLSSDK)' does NOT point to a valid NTLS SDK!)
+endif
+else
+SSL_INC = $(OSSLSDK)/outinc_nw_libc
+SSL_LIB = $(OSSLSDK)/out_nw_libc
+SSL_BIN = $(OSSLSDK)/out_nw_libc
+SSL_APP = $(OSSLSDK)/apps
+ifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
+$(warning '$(OSSLSDK)' does NOT point to a valid OpenSSL SDK!)
+endif
+endif
+ifeq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
HAVE_OPENSSL = 1
endif
+
endif
#
@@ -31,8 +44,8 @@ endif
#
ifdef HAVE_OPENSSL
XINCDIRS += \
- $(OSSLINC) \
- $(OSSLINC)/openssl \
+ $(SSL_INC) \
+ $(SSL_INC)/openssl \
$(EOLIST)
endif
@@ -63,7 +76,7 @@ XDEFINES += \
# These flags will be added to the link.opt file
#
XLFLAGS += \
- -l $(OSSLLIB) \
+ -l $(SSL_LIB) \
$(EOLIST)
endif
@@ -152,7 +165,7 @@ NLM_VERSION =
#
# If this is specified, it will override the default of 64K
#
-NLM_STACK_SIZE = 8192
+NLM_STACK_SIZE = 65536
#
@@ -212,11 +225,13 @@ FILES_nlm_libs = \
$(EOLIST)
ifdef HAVE_OPENSSL
+ifneq "$(USE_NTLS)" "1"
FILES_nlm_libs += \
- $(OSSLLIB)/crypto.lib \
- $(OSSLLIB)/ssl.lib \
+ $(SSL_LIB)/crypto.lib \
+ $(SSL_LIB)/ssl.lib \
$(EOLIST)
endif
+endif
#
# These are the modules that the above NLM target depends on to load.
@@ -227,6 +242,13 @@ FILES_nlm_modules = \
libc \
$(EOLIST)
+ifdef HAVE_OPENSSL
+ifeq "$(USE_NTLS)" "1"
+FILES_nlm_modules += ntls \
+ $(EOLIST)
+endif
+endif
+
#
# If the nlm has a msg file, put it's path here
#
@@ -250,18 +272,24 @@ FILES_nlm_Ximports = \
@libc.imp \
$(EOLIST)
-ifdef HAVE_OPENSSL
# Don't link with Winsock if standard sockets are being used
-ifndef USE_STDSOCKETS
+ifneq "$(USE_STDSOCKETS)" "1"
FILES_nlm_Ximports += @ws2nlm.imp \
$(EOLIST)
endif
+
+ifdef HAVE_OPENSSL
+ifeq "$(USE_NTLS)" "1"
+FILES_nlm_Ximports += @ntls.imp \
+ $(EOLIST)
+else
FILES_nlm_Ximports += \
GetProcessSwitchCount \
RunningProcess \
GetSuperHighResolutionTimer \
$(EOLIST)
endif
+endif
#
# Any symbols exported to here
@@ -299,5 +327,5 @@ install :: nlms FORCE
# in this makefile
#
-include $(AP_WORK)\build\NWGNUtail.inc
+include $(AP_WORK)/build/NWGNUtail.inc