NWGNUab revision 8ffac2c334103c0336602aaede650cb578611151
4737N/A#
4737N/A# Get the 'head' of the build environment if necessary. This includes default
4737N/A# targets and paths to tools
4737N/A#
4737N/A
4737N/Aifndef EnvironmentDefined
4737N/Ainclude $(AP_WORK)/build/NWGNUhead.inc
4737N/Aendif
4737N/A
4737N/A#
4737N/A# build this level's files
4737N/A#
4737N/A# Make sure all needed macro's are defined
4737N/A#
4737N/A
4737N/Aifeq "$(WITH_ABS)" "1"
4737N/A
4737N/Aifeq "$(USE_NTLS)" "1"
4737N/ASSL_INC = $(NTLSSDK)/inc
4737N/ASSL_LIB = $(NTLSSDK)/imp
4737N/ASSL_BIN = $(NTLSSDK)/bin
4737N/ASSL_APP = $(NTLSSDK)/apps
5336N/Aifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
4737N/A$(warning '$(NTLSSDK)' does NOT point to a valid NTLS SDK!)
4737N/Aendif
4737N/Aelse
4737N/ASSL_INC = $(OSSLSDK)/outinc_nw_libc
4737N/ASSL_LIB = $(OSSLSDK)/out_nw_libc
5363N/ASSL_BIN = $(OSSLSDK)/out_nw_libc
4737N/ASSL_APP = $(OSSLSDK)/apps
4737N/Aifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
4737N/A$(warning '$(OSSLSDK)' does NOT point to a valid OpenSSL SDK!)
4737N/Aendif
5363N/Aendif
4737N/Aifeq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
4737N/AHAVE_OPENSSL = 1
4737N/Aendif
5363N/A
4737N/Aendif
4737N/A
4737N/A#
4737N/A# These directories will be at the beginning of the include list, followed by
4737N/A# INCDIRS
4737N/A#
4737N/Aifdef HAVE_OPENSSL
4737N/AXINCDIRS += \
4737N/A $(SSL_INC) \
4737N/A $(SSL_INC)/openssl \
4737N/A $(EOLIST)
4737N/Aendif
4737N/A
4737N/AXINCDIRS += \
4737N/A $(NWOS) \
4737N/A $(AP_WORK)/include \
4737N/A $(APR)/include \
4737N/A $(APRUTIL)/include \
4737N/A $(APR)/misc/netware \
4737N/A $(EOLIST)
4737N/A
4737N/A#
4737N/A# These flags will come after CFLAGS
4737N/A#
4737N/AXCFLAGS += \
4737N/A $(EOLIST)
4737N/A
4737N/A#
4737N/A# These defines will come after DEFINES
4737N/A#
5450N/Aifdef HAVE_OPENSSL
5450N/AXDEFINES += \
5450N/A -DHAVE_OPENSSL \
4737N/A $(EOLIST)
4737N/A
4737N/A#
4737N/A# These flags will be added to the link.opt file
4737N/A#
4737N/AXLFLAGS += \
5450N/A -l $(SSL_LIB) \
5450N/A $(EOLIST)
5450N/Aendif
4737N/A
4737N/A#
4737N/A# These values will be appended to the correct variables based on the value of
4737N/A# RELEASE
4737N/A#
4737N/Aifeq "$(RELEASE)" "debug"
4737N/AXINCDIRS += \
4737N/A $(EOLIST)
4737N/A
4737N/AXCFLAGS += \
4737N/A $(EOLIST)
4737N/A
4737N/AXDEFINES += \
4737N/A $(EOLIST)
4737N/A
4737N/AXLFLAGS += \
4737N/A $(EOLIST)
4737N/Aendif
4737N/A
4737N/Aifeq "$(RELEASE)" "noopt"
4737N/AXINCDIRS += \
4737N/A $(EOLIST)
4737N/A
4737N/AXCFLAGS += \
4897N/A $(EOLIST)
4897N/A
4897N/AXDEFINES += \
4737N/A $(EOLIST)
4737N/A
4897N/AXLFLAGS += \
4737N/A $(EOLIST)
5336N/Aendif
4737N/A
4737N/Aifeq "$(RELEASE)" "release"
4737N/AXINCDIRS += \
4737N/A $(EOLIST)
4737N/A
5336N/AXCFLAGS += \
5336N/A $(EOLIST)
5336N/A
5336N/AXDEFINES += \
4737N/A $(EOLIST)
4737N/A
4737N/AXLFLAGS += \
4897N/A $(EOLIST)
4897N/Aendif
5336N/A
4897N/A#
4897N/A# These are used by the link target if an NLM is being generated
4897N/A# This is used by the link 'name' directive to name the nlm. If left blank
4897N/A# TARGET_nlm (see below) will be used.
4897N/A#
4897N/Aifdef HAVE_OPENSSL
4897N/ANLM_NAME = abs
4737N/Aelse
4896N/ANLM_NAME = ab
4896N/Aendif
4737N/A
4737N/A#
4737N/A# This is used by the link '-desc ' directive.
4737N/A# If left blank, NLM_NAME will be used.
4737N/A#
4737N/ANLM_DESCRIPTION = Apache $(VERSION_STR) Benchmark Utility for NetWare
4897N/A
4897N/A#
4737N/A# This is used by the '-threadname' directive. If left blank,
4737N/A# NLM_NAME Thread will be used.
4737N/A#
4737N/ANLM_THREAD_NAME = $(NLM_NAME)
4737N/A
4737N/A#
4737N/A# This is used by the '-screenname' directive. If left blank,
4896N/A# 'Apache for NetWare' Thread will be used.
4737N/A#
4739N/A#NLM_SCREEN_NAME = Apache Bench
4737N/ANLM_SCREEN_NAME = DEFAULT
4737N/A
4737N/A#
4737N/A# If this is specified, it will override VERSION value in
4898N/A# $(AP_WORK)/build/NWGNUenvironment.inc
4737N/A#
4737N/ANLM_VERSION =
4737N/A
4737N/A#
4737N/A# If this is specified, it will override the default of 64K
4737N/A#
NLM_STACK_SIZE = 65536
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM =
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM =
#
# If this is specified it will be used by the link '-check' directive
#
NLM_CHECK_SYM =
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS =
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/$(NLM_NAME).nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/ab.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
libcpre.o \
$(EOLIST)
ifdef HAVE_OPENSSL
ifneq "$(USE_NTLS)" "1"
FILES_nlm_libs += \
$(SSL_LIB)/crypto.lib \
$(SSL_LIB)/ssl.lib \
$(EOLIST)
endif
endif
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
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
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@libc.imp \
$(EOLIST)
# Don't link with Winsock if standard sockets are being used
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
#
FILES_nlm_exports = \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)/build/NWGNUtail.inc