NWGNUmakefile revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# This Makefile requires the environment var OSSLSDK
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# pointing to the base directory of your OpenSSL SDK.
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If you want to use the Novell NTLS SDK instead then
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# define NTLSSDK pointing to the base directory of the
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# SDK, and also set USE_NTLS=1
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# Declare the sub-directories to be built here
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# Get the 'head' of the build environment. This includes default targets and
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# paths to tools
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# build this level's files
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# Make sure all needed macro's are defined
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenifeq "$(USE_NTLS)" "1"
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenSSL_INC = $(NTLSSDK)/inc
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenSSL_LIB = $(NTLSSDK)/imp
4ea6c43a08b37f270bd54b5809142246fd118263Timo SirainenSSL_BIN = $(NTLSSDK)/bin
bf9ea5404a0094a8fb8199b677d81f803512c44eTimo SirainenSSL_APP = $(NTLSSDK)/apps
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen$(error '$(NTLSSDK)' does NOT point to a valid NTLS SDK!)
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenSSL_INC = $(OSSLSDK)/outinc_nw_libc
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenSSL_LIB = $(OSSLSDK)/out_nw_libc
4ea6c43a08b37f270bd54b5809142246fd118263Timo SirainenSSL_BIN = $(OSSLSDK)/out_nw_libc
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenSSL_APP = $(OSSLSDK)/apps
bf9ea5404a0094a8fb8199b677d81f803512c44eTimo Sirainenifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
bf9ea5404a0094a8fb8199b677d81f803512c44eTimo Sirainen$(error '$(OSSLSDK)' does NOT point to a valid OpenSSL SDK!)
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# These directories will be at the beginning of the include list, followed by
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen $(SSL_INC)/openssl \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen $(APR)/include \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen $(APRUTIL)/include \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen $(AP_WORK)/include \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# These flags will come after CFLAGS
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# These defines will come after DEFINES
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen -DHAVE_OPENSSL \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# These flags will be added to the link.opt file
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen -l $(SSL_LIB) \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# These values will be appended to the correct variables based on the value of
2769eecf814bd243033dcbf5bdc38f4162d3202dTimo Sirainenifeq "$(RELEASE)" "debug"
bd7b1a9000b12349e2a99bb43b3ce8b96a18e92bTimo Sirainenifeq "$(RELEASE)" "noopt"
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenifeq "$(RELEASE)" "release"
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# These are used by the link target if an NLM is being generated
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# TARGET_nlm (see below) will be used.
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenNLM_NAME = mod_ssl
bf9ea5404a0094a8fb8199b677d81f803512c44eTimo Sirainen# This is used by the link '-desc ' directive.
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If left blank, NLM_NAME will be used.
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenifeq "$(USE_NTLS)" "1"
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) SSL module (NTLS)
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenNLM_DESCRIPTION = Apache $(VERSION_STR) SSL module (OpenSSL)
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# This is used by the '-threadname' directive. If left blank,
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# NLM_NAME Thread will be used.
bda9a6d9b021c122a01a85cb3cee2f996263d8f0Timo SirainenNLM_THREAD_NAME = $(NLM_NAME)
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If this is specified, it will override VERSION value in
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If this is specified, it will override the default of 64K
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenNLM_STACK_SIZE = 8192
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If this is specified it will be used by the link '-entry' directive
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenNLM_ENTRY_SYM =
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If this is specified it will be used by the link '-exit' directive
bf9ea5404a0094a8fb8199b677d81f803512c44eTimo SirainenNLM_EXIT_SYM =
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If this is specified it will be used by the link '-check' directive
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenNLM_CHECK_SYM =
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# If this is specified it will be used by the link '-flags' directive
66a872b4569c048e804f0731680d89c6042d8890Timo Sirainen# If this is specified it will be linked in with the XDCData option in the def
378d924da5853145a6df9a299074f04be69986c7Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# by setting APACHE_UNIPROC in the environment
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen# Declare all target files (you must add your files here)
# These will be added as a library command in the link.opt file.
$(SSL_LIB)/crypto.lib \
$(SSL_LIB)/ssl.lib \
# These will be added as a module command in the link.opt file.
# If this is specified, it will override $(NWOS)\copyright.txt.
@libc.imp \
@aprlib.imp \
@httpd.imp \
FILES_nlm_Ximports += @ws2nlm.imp \
FILES_nlm_Ximports += @ntls.imp \
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
$(call COPY,$(SSL_BIN)/openssl.nlm, $(INSTALL)/$(BASEDIR)/bin/)
$(call COPY,$(SSL_APP)/openssl.cnf, $(INSTALL)/$(BASEDIR)/bin/)
vpath %.c $(AP_WORK)/modules/arch/netware
include $(APBUILD)/NWGNUtail.inc