2 # Get the 'head' of the build environment if necessary. This includes default
3 # targets and paths to tools
6 ifndef EnvironmentDefined
7 include $(AP_WORK)/build/NWGNUhead.inc
11 # build this level's files
13 # Make sure all needed macro's are defined
16 ifeq "$(WITH_ABS)" "1"
18 ifeq "$(USE_NTLS)" "1"
19 SSL_INC = $(NTLSSDK)/inc
20 SSL_LIB = $(NTLSSDK)/imp
21 SSL_BIN = $(NTLSSDK)/bin
22 SSL_APP = $(NTLSSDK)/apps
23 ifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
24 $(warning '$(NTLSSDK)' does NOT point to a valid NTLS SDK!)
27 SSL_INC = $(OSSLSDK)/outinc_nw_libc
28 SSL_LIB = $(OSSLSDK)/out_nw_libc
29 SSL_BIN = $(OSSLSDK)/out_nw_libc
30 SSL_APP = $(OSSLSDK)/apps
31 ifneq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
32 $(warning '$(OSSLSDK)' does NOT point to a valid OpenSSL SDK!)
35 ifeq "$(wildcard $(SSL_INC)/openssl/opensslv.h)" "$(SSL_INC)/openssl/opensslv.h"
42 # These directories will be at the beginning of the include list, followed by
61 # These flags will come after CFLAGS
67 # These defines will come after DEFINES
75 # These flags will be added to the link.opt file
83 # These values will be appended to the correct variables based on the value of
86 ifeq "$(RELEASE)" "debug"
100 ifeq "$(RELEASE)" "noopt"
114 ifeq "$(RELEASE)" "release"
129 # These are used by the link target if an NLM is being generated
130 # This is used by the link 'name' directive to name the nlm. If left blank
131 # TARGET_nlm (see below) will be used.
140 # This is used by the link '-desc ' directive.
141 # If left blank, NLM_NAME will be used.
143 NLM_DESCRIPTION = Apache $(VERSION_STR) Benchmark Utility for NetWare
146 # This is used by the '-threadname' directive. If left blank,
147 # NLM_NAME Thread will be used.
149 NLM_THREAD_NAME = $(NLM_NAME)
152 # This is used by the '-screenname' directive. If left blank,
153 # 'Apache for NetWare' Thread will be used.
155 #NLM_SCREEN_NAME = Apache Bench
156 NLM_SCREEN_NAME = DEFAULT
159 # If this is specified, it will override VERSION value in
160 # $(AP_WORK)/build/NWGNUenvironment.inc
165 # If this is specified, it will override the default of 64K
167 NLM_STACK_SIZE = 65536
171 # If this is specified it will be used by the link '-entry' directive
176 # If this is specified it will be used by the link '-exit' directive
181 # If this is specified it will be used by the link '-check' directive
186 # If these are specified it will be used by the link '-flags' directive
191 # If this is specified it will be linked in with the XDCData option in the def
192 # file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
193 # by setting APACHE_UNIPROC in the environment
198 # If there is an NLM target, put it here
201 $(OBJDIR)/$(NLM_NAME).nlm \
205 # If there is an LIB target, put it here
211 # These are the OBJ files needed to create the NLM target above.
212 # Paths must all use the '/' character
219 # These are the LIB files needed to create the NLM target above.
220 # These will be added as a library command in the link.opt file.
227 ifneq "$(USE_NTLS)" "1"
229 $(SSL_LIB)/crypto.lib \
236 # These are the modules that the above NLM target depends on to load.
237 # These will be added as a module command in the link.opt file.
239 FILES_nlm_modules = \
245 ifeq "$(USE_NTLS)" "1"
246 FILES_nlm_modules += ntls \
252 # If the nlm has a msg file, put it's path here
257 # If the nlm has a hlp file put it's path here
262 # If this is specified, it will override $(NWOS)\copyright.txt.
267 # Any additional imports go here
269 FILES_nlm_Ximports = \
274 # Don't link with Winsock if standard sockets are being used
275 ifneq "$(USE_STDSOCKETS)" "1"
276 FILES_nlm_Ximports += @ws2nlm.imp \
281 ifeq "$(USE_NTLS)" "1"
282 FILES_nlm_Ximports += @ntls.imp \
285 FILES_nlm_Ximports += \
286 GetProcessSwitchCount \
288 GetSuperHighResolutionTimer \
294 # Any symbols exported to here
296 FILES_nlm_exports = \
300 # These are the OBJ files needed to create the LIB target above.
301 # Paths must all use the '/' character
307 # implement targets and dependancies (leave this section alone)
310 libs :: $(OBJDIR) $(TARGET_lib)
312 nlms :: libs $(TARGET_nlm)
315 # Updated this target to create necessary directories and copy files to the
316 # correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
318 install :: nlms FORCE
321 # Any specialized rules here
325 # Include the 'tail' makefile that has targets that depend on variables defined
329 include $(AP_WORK)/build/NWGNUtail.inc