NWGNUmakefile revision e76fdcdfb8994ad70776526f50fa013b3e9a6033
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# This Makefile requires the environment var OSSLSDK
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# pointing to the base directory of your OpenSSL SDK.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Declare the sub-directories to be built here
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Get the 'head' of the build environment. This includes default targets and
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# paths to tools
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncinclude $(AP_WORK)\build\NWGNUhead.inc
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# build this level's files
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Make sure all needed macro's are defined
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncOSSLINC = $(OSSLSDK)/outinc_nw_libc
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncOSSLLIB = $(OSSLSDK)/out_nw_libc
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These directories will be at the beginning of the include list, followed by
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXINCDIRS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(OSSLINC) \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(OSSLINC)/openssl \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(AP_WORK)/include \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(APR)/include \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync $(APRUTIL)/include \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These flags will come after CFLAGS
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXCFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync -relax_pointers \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These defines will come after DEFINES
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXDEFINES += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync -DHAVE_OPENSSL \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These flags will be added to the link.opt file
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXLFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync -l $(OSSLLIB) \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These values will be appended to the correct variables based on the value of
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncifeq "$(RELEASE)" "debug"
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXINCDIRS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXCFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXDEFINES += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXLFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncifeq "$(RELEASE)" "noopt"
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXINCDIRS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXCFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXDEFINES += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXLFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncifeq "$(RELEASE)" "release"
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXINCDIRS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXCFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXDEFINES += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncXLFLAGS += \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These are used by the link target if an NLM is being generated
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# This is used by the link 'name' directive to name the nlm. If left blank
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# TARGET_nlm (see below) will be used.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_NAME = mod_ssl
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# This is used by the link '-desc ' directive.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If left blank, NLM_NAME will be used.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_DESCRIPTION = Apache $(VERSION_STR) SSL module
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# This is used by the '-threadname' directive. If left blank,
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# NLM_NAME Thread will be used.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_THREAD_NAME = mod_ssl
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified, it will override VERSION value in
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# $(AP_WORK)\build\NWGNUenvironment.inc
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_VERSION =
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified, it will override the default of 64K
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_STACK_SIZE = 8192
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified it will be used by the link '-entry' directive
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_ENTRY_SYM = _LibCPrelude
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified it will be used by the link '-exit' directive
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_EXIT_SYM = _LibCPostlude
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified it will be used by the link '-check' directive
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_CHECK_SYM =
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified it will be used by the link '-flags' directive
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If this is specified it will be linked in with the XDCData option in the def
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# by setting APACHE_UNIPROC in the environment
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Declare all target files (you must add your files here)
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If there is an NLM target, put it here
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncTARGET_nlm = \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# If there is an LIB target, put it here
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncTARGET_lib = \
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These are the OBJ files needed to create the NLM target above.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# Paths must all use the '/' character
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsyncFILES_nlm_objs := $(patsubst %.c,$(OBJDIR)/%.o,$(wildcard *.c))
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These are the LIB files needed to create the NLM target above.
16a8d09569a2ebd598cef72fa605be6fb4563607vboxsync# These will be added as a library command in the link.opt file.
$(OSSLLIB)/crypto.lib \
$(OSSLLIB)/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 \
@$(APR)/aprlib.imp \
@httpd.imp \
FILES_nlm_Ximports += @ws2nlm.imp \
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
copy $(OBJDIR)\mod_ssl.nlm $(INSTALL)\Apache2\modules\*.*
vpath %.c $(AP_WORK)/modules/arch/netware
include $(AP_WORK)\build\NWGNUtail.inc