8495845a800cf09321436aed996188c9a92cd647bnicholes# Get the 'head' of the build environment if necessary. This includes default
8495845a800cf09321436aed996188c9a92cd647bnicholes# targets and paths to tools
8495845a800cf09321436aed996188c9a92cd647bnicholesifndef EnvironmentDefined
f43432d112920ab9af58aecc78d9fd5bacefc216fuankginclude $(AP_WORK)/build/NWGNUhead.inc
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# build this level's files
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# Make sure all needed macro's are defined
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifeq "$(WITH_ABS)" "1"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifeq "$(USE_NTLS)" "1"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_INC = $(NTLSSDK)/inc
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_LIB = $(NTLSSDK)/imp
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_BIN = $(NTLSSDK)/bin
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_APP = $(NTLSSDK)/apps
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg$(warning '$(NTLSSDK)' does NOT point to a valid NTLS SDK!)
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_INC = $(OSSLSDK)/outinc_nw_libc
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_LIB = $(OSSLSDK)/out_nw_libc
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_BIN = $(OSSLSDK)/out_nw_libc
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgSSL_APP = $(OSSLSDK)/apps
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg$(warning '$(OSSLSDK)' does NOT point to a valid OpenSSL SDK!)
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifeq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgHAVE_OPENSSL = 1
8495845a800cf09321436aed996188c9a92cd647bnicholes# These directories will be at the beginning of the include list, followed by
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgifdef HAVE_OPENSSL
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgXINCDIRS += \
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg $(SSL_INC) \
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg $(SSL_INC)/openssl \
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
c5ef27ed1cf15c6b6345335c51416d2ea36198bfbnicholes $(APRUTIL)/include \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These flags will come after CFLAGS
8495845a800cf09321436aed996188c9a92cd647bnicholes# These defines will come after DEFINES
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgifdef HAVE_OPENSSL
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg -DHAVE_OPENSSL \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These flags will be added to the link.opt file
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg -l $(SSL_LIB) \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These values will be appended to the correct variables based on the value of
8495845a800cf09321436aed996188c9a92cd647bnicholesifeq "$(RELEASE)" "debug"
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholesifeq "$(RELEASE)" "noopt"
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholesifeq "$(RELEASE)" "release"
8495845a800cf09321436aed996188c9a92cd647bnicholesXINCDIRS += \
8495845a800cf09321436aed996188c9a92cd647bnicholesXDEFINES += \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are used by the link target if an NLM is being generated
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
8495845a800cf09321436aed996188c9a92cd647bnicholes# TARGET_nlm (see below) will be used.
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgifdef HAVE_OPENSSL
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgNLM_NAME = abs
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_NAME = ab
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is used by the link '-desc ' directive.
8495845a800cf09321436aed996188c9a92cd647bnicholes# If left blank, NLM_NAME will be used.
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Benchmark Utility for NetWare
8495845a800cf09321436aed996188c9a92cd647bnicholes# This is used by the '-threadname' directive. If left blank,
8495845a800cf09321436aed996188c9a92cd647bnicholes# NLM_NAME Thread will be used.
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgNLM_THREAD_NAME = $(NLM_NAME)
63e6fde94d80a39bd87f3893a5f9515fdbdb7aa4bnicholes# This is used by the '-screenname' directive. If left blank,
63e6fde94d80a39bd87f3893a5f9515fdbdb7aa4bnicholes# 'Apache for NetWare' Thread will be used.
36b97bd7acc1ae60f6f31334b857617a083c4011bnicholes#NLM_SCREEN_NAME = Apache Bench
36b97bd7acc1ae60f6f31334b857617a083c4011bnicholesNLM_SCREEN_NAME = DEFAULT
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified, it will override VERSION value in
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgNLM_VERSION =
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified, it will override the default of 64K
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgNLM_STACK_SIZE = 65536
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be used by the link '-check' directive
8495845a800cf09321436aed996188c9a92cd647bnicholesNLM_CHECK_SYM =
8495845a800cf09321436aed996188c9a92cd647bnicholes# If these are specified it will be used by the link '-flags' directive
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified it will be linked in with the XDCData option in the def
8495845a800cf09321436aed996188c9a92cd647bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8495845a800cf09321436aed996188c9a92cd647bnicholes# by setting APACHE_UNIPROC in the environment
8495845a800cf09321436aed996188c9a92cd647bnicholes# If there is an NLM target, put it here
8495845a800cf09321436aed996188c9a92cd647bnicholesTARGET_nlm = \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg $(OBJDIR)/$(NLM_NAME).nlm \
8495845a800cf09321436aed996188c9a92cd647bnicholes# If there is an LIB target, put it here
8495845a800cf09321436aed996188c9a92cd647bnicholesTARGET_lib = \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the OBJ files needed to create the NLM target above.
8495845a800cf09321436aed996188c9a92cd647bnicholes# Paths must all use the '/' character
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_objs = \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the LIB files needed to create the NLM target above.
8495845a800cf09321436aed996188c9a92cd647bnicholes# These will be added as a library command in the link.opt file.
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgifdef HAVE_OPENSSL
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifneq "$(USE_NTLS)" "1"
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgFILES_nlm_libs += \
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg $(SSL_LIB)/crypto.lib \
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg $(SSL_LIB)/ssl.lib \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the modules that the above NLM target depends on to load.
8495845a800cf09321436aed996188c9a92cd647bnicholes# These will be added as a module command in the link.opt file.
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_modules = \
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifdef HAVE_OPENSSL
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifeq "$(USE_NTLS)" "1"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgFILES_nlm_modules += ntls \
8495845a800cf09321436aed996188c9a92cd647bnicholes# If the nlm has a msg file, put it's path here
8495845a800cf09321436aed996188c9a92cd647bnicholesFILE_nlm_msg =
8495845a800cf09321436aed996188c9a92cd647bnicholes# If the nlm has a hlp file put it's path here
8495845a800cf09321436aed996188c9a92cd647bnicholesFILE_nlm_hlp =
8495845a800cf09321436aed996188c9a92cd647bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
8495845a800cf09321436aed996188c9a92cd647bnicholesFILE_nlm_copyright =
8495845a800cf09321436aed996188c9a92cd647bnicholes# Any additional imports go here
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_Ximports = \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# Don't link with Winsock if standard sockets are being used
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifneq "$(USE_STDSOCKETS)" "1"
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgFILES_nlm_Ximports += @ws2nlm.imp \
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifdef HAVE_OPENSSL
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgifeq "$(USE_NTLS)" "1"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankgFILES_nlm_Ximports += @ntls.imp \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgFILES_nlm_Ximports += \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg GetProcessSwitchCount \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg RunningProcess \
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg GetSuperHighResolutionTimer \
8495845a800cf09321436aed996188c9a92cd647bnicholes# Any symbols exported to here
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_nlm_exports = \
8495845a800cf09321436aed996188c9a92cd647bnicholes# These are the OBJ files needed to create the LIB target above.
8495845a800cf09321436aed996188c9a92cd647bnicholes# Paths must all use the '/' character
8495845a800cf09321436aed996188c9a92cd647bnicholesFILES_lib_objs = \
8495845a800cf09321436aed996188c9a92cd647bnicholes# implement targets and dependancies (leave this section alone)
8495845a800cf09321436aed996188c9a92cd647bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
8495845a800cf09321436aed996188c9a92cd647bnicholesnlms :: libs $(TARGET_nlm)
8495845a800cf09321436aed996188c9a92cd647bnicholes# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
8495845a800cf09321436aed996188c9a92cd647bnicholesinstall :: nlms FORCE
8495845a800cf09321436aed996188c9a92cd647bnicholes# Any specialized rules here
8495845a800cf09321436aed996188c9a92cd647bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
8495845a800cf09321436aed996188c9a92cd647bnicholes# in this makefile
f43432d112920ab9af58aecc78d9fd5bacefc216fuankginclude $(AP_WORK)/build/NWGNUtail.inc