2
# This Makefile requires the environment var OSSLSDK
3
# pointing to the base directory of your OpenSSL SDK.
7
# Declare the sub-directories to be built here
14
# Get the 'head' of the build environment. This includes default targets and
18
include $(AP_WORK)\build\NWGNUhead.inc
21
# build this level's files
23
# Make sure all needed macro's are defined
26
OSSLINC = $(OSSLSDK)/outinc_nw_libc
27
OSSLLIB = $(OSSLSDK)/out_nw_libc
30
# These directories will be at the beginning of the include list, followed by
37
$(AP_WORK)/server/mpm/NetWare \
38
$(AP_WORK)/modules/arch/netware \
39
$(AP_WORK)/modules/generators \
47
# These flags will come after CFLAGS
54
# These defines will come after DEFINES
61
# These flags will be added to the link.opt file
68
# These values will be appended to the correct variables based on the value of
71
ifeq "$(RELEASE)" "debug"
85
ifeq "$(RELEASE)" "noopt"
99
ifeq "$(RELEASE)" "release"
114
# These are used by the link target if an NLM is being generated
115
# This is used by the link 'name' directive to name the nlm. If left blank
116
# TARGET_nlm (see below) will be used.
121
# This is used by the link '-desc ' directive.
122
# If left blank, NLM_NAME will be used.
124
NLM_DESCRIPTION = Apache $(VERSION_STR) SSL module
127
# This is used by the '-threadname' directive. If left blank,
128
# NLM_NAME Thread will be used.
130
NLM_THREAD_NAME = $(NLM_NAME)
133
# If this is specified, it will override VERSION value in
134
# $(AP_WORK)\build\NWGNUenvironment.inc
139
# If this is specified, it will override the default of 64K
141
NLM_STACK_SIZE = 8192
145
# If this is specified it will be used by the link '-entry' directive
147
NLM_ENTRY_SYM = _LibCPrelude
150
# If this is specified it will be used by the link '-exit' directive
152
NLM_EXIT_SYM = _LibCPostlude
155
# If this is specified it will be used by the link '-check' directive
160
# If this is specified it will be used by the link '-flags' directive
162
NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
165
# If this is specified it will be linked in with the XDCData option in the def
166
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
167
# by setting APACHE_UNIPROC in the environment
172
# Declare all target files (you must add your files here)
176
# If there is an NLM target, put it here
179
$(OBJDIR)/$(NLM_NAME).nlm \
183
# If there is an LIB target, put it here
189
# These are the OBJ files needed to create the NLM target above.
190
# Paths must all use the '/' character
192
FILES_nlm_objs := $(patsubst %.c,$(OBJDIR)/%.o,$(wildcard *.c))
196
# These are the LIB files needed to create the NLM target above.
197
# These will be added as a library command in the link.opt file.
201
$(OSSLLIB)/crypto.lib \
206
# These are the modules that the above NLM target depends on to load.
207
# These will be added as a module command in the link.opt file.
209
FILES_nlm_modules = \
215
# If the nlm has a msg file, put it's path here
220
# If the nlm has a hlp file put it's path here
225
# If this is specified, it will override $(NWOS)\copyright.txt.
230
# Any additional imports go here
232
FILES_nlm_Ximports = \
236
GetProcessSwitchCount \
238
GetSuperHighResolutionTimer \
241
# Don't link with Winsock if standard sockets are being used
242
ifndef USE_STDSOCKETS
243
FILES_nlm_Ximports += @ws2nlm.imp \
248
# Any symbols exported to here
250
FILES_nlm_exports = \
255
# These are the OBJ files needed to create the LIB target above.
256
# Paths must all use the '/' character
262
# implement targets and dependancies (leave this section alone)
265
libs :: $(OBJDIR) $(TARGET_lib)
267
nlms :: libs $(TARGET_nlm)
270
# Updated this target to create necessary directories and copy files to the
271
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
273
install :: nlms FORCE
274
copy $(OBJDIR)\mod_ssl.nlm $(INSTALL)\Apache2\modules\*.*
277
# Any specialized rules here
279
vpath %.c $(AP_WORK)/modules/arch/netware
281
# Make sure that the build doesn't attempt to regenerate the shipping files.
282
# This requires a 'touch' utility. Can be downloaded from 'coreutils' at
283
# http://sourceforge.net/projects/gnuwin32/
284
ssl_expr_parse.h : ssl_expr_parse.y
285
touch ssl_expr_parse.h
286
ssl_expr_parse.c : ssl_expr_parse.y
287
touch ssl_expr_parse.c
288
ssl_expr_scan.c : ssl_expr_scan.l
289
touch ssl_expr_scan.c
292
# Include the 'tail' makefile that has targets that depend on variables defined
296
include $(AP_WORK)\build\NWGNUtail.inc