2
# Makefile for mod_jk (uses the build system of Apache2 - gnu make)
3
# created by Guenter Knauf <eflash@gmx.net>
6
#ifeq ($(strip $(JAVA_HOME)),)
7
#@echo You must set the JAVA_HOME environment var pointing to the NetWare Java SDK!
11
# Declare the sub-directories to be built here
18
# Get the 'head' of the build environment. This includes default targets and
22
include $(AP_WORK)\build\NWGNUhead.inc
25
# build this level's files
28
# Make sure all needed macro's are defined
34
# These directories will be at the beginning of the include list, followed by
41
$(AP_WORK)/modules/arch/netware \
45
$(JAVA_HOME)/include \
46
$(JAVA_HOME)/include/netware \
50
# These flags will come after CFLAGS
56
# These defines will come after DEFINES
64
# These flags will be added to the link.opt file
70
# These values will be appended to the correct variables based on the value of
73
ifeq "$(RELEASE)" "debug"
87
ifeq "$(RELEASE)" "noopt"
101
ifeq "$(RELEASE)" "release"
116
# These are used by the link target if an NLM is being generated
117
# This is used by the link 'name' directive to name the nlm. If left blank
118
# TARGET_nlm (see below) will be used.
123
# This is used by the link '-desc ' directive.
124
# If left blank, NLM_NAME will be used.
126
NLM_DESCRIPTION = Apache $(VERSION_STR) plugin for Tomcat $(JK_VERSION_STR)
129
# This is used by the link '-copy ' directive.
130
# If left blank, the ASF copyright defined in NWGNUtail.inc will be used.
135
# This is used by the '-threadname' directive. If left blank,
136
# NLM_NAME Thread will be used.
138
NLM_THREAD_NAME = JK Module
141
# If this is specified, it will override VERSION value in
142
# $(AP_WORK)\build\NWGNUenvironment.inc
144
NLM_VERSION = $(JK_VERSION)
147
# If this is specified, it will override the default of 64K
149
NLM_STACK_SIZE = 49152
153
# If this is specified it will be used by the link '-entry' directive
155
NLM_ENTRY_SYM = _LibCPrelude
158
# If this is specified it will be used by the link '-exit' directive
160
NLM_EXIT_SYM = _LibCPostlude
163
# If this is specified it will be used by the link '-check' directive
168
# If these are specified it will be used by the link '-flags' directive
170
NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
173
# If this is specified it will be linked in with the XDCData option in the def
174
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
175
# by setting APACHE_UNIPROC in the environment
180
# If there is an NLM target, put it here
183
$(OBJDIR)/mod_jk.nlm \
187
# If there is an LIB target, put it here
193
# These are the OBJ files needed to create the NLM target above.
194
# Paths must all use the '/' character
197
$(OBJDIR)/jk_nwmain.o \
198
$(OBJDIR)/jk_ajp12_worker.o \
199
$(OBJDIR)/jk_ajp13.o \
200
$(OBJDIR)/jk_ajp13_worker.o \
201
$(OBJDIR)/jk_ajp14.o \
202
$(OBJDIR)/jk_ajp14_worker.o \
203
$(OBJDIR)/jk_ajp_common.o \
204
$(OBJDIR)/jk_connect.o \
205
$(OBJDIR)/jk_context.o \
206
$(OBJDIR)/jk_jni_worker.o \
207
$(OBJDIR)/jk_lb_worker.o \
210
$(OBJDIR)/jk_msg_buff.o \
211
$(OBJDIR)/jk_pool.o \
213
$(OBJDIR)/jk_sockbuf.o \
214
$(OBJDIR)/jk_status.o \
215
$(OBJDIR)/jk_uri_worker_map.o \
216
$(OBJDIR)/jk_util.o \
217
$(OBJDIR)/jk_worker.o \
222
# These are the LIB files needed to create the NLM target above.
223
# These will be added as a library command in the link.opt file.
230
# These are the modules that the above NLM target depends on to load.
231
# These will be added as a module command in the link.opt file.
233
FILES_nlm_modules = \
239
# If the nlm has a msg file, put it's path here
244
# If the nlm has a hlp file put it's path here
249
# If this is specified, it will override $(NWOS)\copyright.txt.
254
# Any additional imports go here
256
FILES_nlm_Ximports = \
264
# Any symbols exported to here
266
FILES_nlm_exports = \
271
# These are the OBJ files needed to create the LIB target above.
272
# Paths must all use the '/' character
278
# implement targets and dependancies (leave this section alone)
281
libs :: $(OBJDIR) $(TARGET_lib)
283
nlms :: libs $(TARGET_nlm)
286
# Updated this target to create necessary directories and copy files to the
287
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
289
install :: nlms FORCE
290
copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
293
# Any specialized rules here
296
vpath %.c $(JKCOMMON)
298
$(OBJDIR)/version.inc: $(JKCOMMON)/jk_version.h $(OBJDIR)
300
@awk -f ../../support/get_ver.awk $< > $@
304
# Include the version info retrieved from jk_version.h
307
-include $(OBJDIR)/version.inc
310
# Include the 'tail' makefile that has targets that depend on variables defined
314
include $(AP_WORK)\build\NWGNUtail.inc