2 # Licensed to the Apache Software Foundation (ASF) under one or more
3 # contributor license agreements. See the NOTICE file distributed with
4 # this work for additional information regarding copyright ownership.
5 # The ASF licenses this file to You under the Apache License, Version 2.0
6 # (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
19 # NetWare Makefile for mod_jk (uses build system of Apache 1.3.x - gnu make)
20 # created by Guenter Knauf <fuankg@apache.org>
24 # Make sure all needed macro's are defined
27 ifneq "$(wildcard $(JAVA_HOME)/include/netware/jni_md.h)" "$(JAVA_HOME)/include/netware/jni_md.h"
28 $(error JAVA_HOME does not point to a valid NetWare Java SDK!)
31 LDLIBS = -l"$(METROWERKS)/Novell Support/libraries/runtime/mwcrtl.lib"
36 # Get the 'head' of the build environment if necessary. This includes default
37 # targets and paths to tools
40 ifndef EnvironmentDefined
41 include $(AP_WORK)\NWGNUhead.inc
45 # These directories will be at the beginning of the include list, followed by
50 $(JAVA_HOME)/include \
51 $(JAVA_HOME)/include/netware \
57 # These flags will come after CFLAGS
65 # These defines will come after DEFINES
71 # These flags will be added to the link.opt file
78 # These values will be appended to the correct variables based on the value of
81 ifeq "$(RELEASE)" "debug"
95 ifeq "$(RELEASE)" "noopt"
109 ifeq "$(RELEASE)" "release"
124 # These are used by the link target if an NLM is being generated
125 # This is used by the link 'name' directive to name the nlm. If left blank
126 # TARGET_nlm (see below) will be used.
131 # This is used by the link '-desc ' directive.
132 # If left blank, NLM_NAME will be used.
134 NLM_DESCRIPTION = Apache $(AP_VERSION_STR) plugin for Tomcat $(JK_VERSION_STR)
137 # This is used by the link '-copy ' directive.
138 # If left blank, the ASF copyright defined in NWGNUtail.inc will be used.
140 NLM_COPYRIGHT = Licensed under the Apache License Version 2.0
143 # This is used by the '-threadname' directive. If left blank,
144 # NLM_NAME Thread will be used.
146 NLM_THREAD_NAME = JK Module
149 # If this is specified, it will override VERSION value in
150 # $(AP_WORK)\NWGNUenvironment.inc
152 NLM_VERSION = $(JK_VERSION)
155 # If this is specified, it will override the default of 64K
157 NLM_STACK_SIZE = 65536
160 # If this is specified it will be used by the link '-entry' directive
162 NLM_ENTRY_SYM = _lib_start
163 #NLM_ENTRY_SYM = _lib_start_ws
166 # If this is specified it will be used by the link '-exit' directive
168 NLM_EXIT_SYM = _lib_stop
169 #NLM_EXIT_SYM = _lib_stop_ws
172 # If this is specified it will be used by the link '-flags' directive
177 # Declare all target files (you must add your files here)
181 # If there is an NLM target, put it here
184 $(OBJDIR)/$(NLM_NAME).nlm \
188 # If there is an LIB target, put it here
194 # These are the OBJ files needed to create the NLM target above.
195 # Paths must all use the '/' character
198 $(OBJDIR)/$(NLM_NAME).o \
199 $(OBJDIR)/jk_nwmain.o \
200 $(OBJDIR)/jk_ajp12_worker.o \
201 $(OBJDIR)/jk_ajp13.o \
202 $(OBJDIR)/jk_ajp13_worker.o \
203 $(OBJDIR)/jk_ajp14.o \
204 $(OBJDIR)/jk_ajp14_worker.o \
205 $(OBJDIR)/jk_ajp_common.o \
206 $(OBJDIR)/jk_connect.o \
207 $(OBJDIR)/jk_context.o \
208 $(OBJDIR)/jk_jni_worker.o \
209 $(OBJDIR)/jk_lb_worker.o \
212 $(OBJDIR)/jk_msg_buff.o \
213 $(OBJDIR)/jk_pool.o \
215 $(OBJDIR)/jk_sockbuf.o \
216 $(OBJDIR)/jk_status.o \
217 $(OBJDIR)/jk_uri_worker_map.o \
219 $(OBJDIR)/jk_util.o \
220 $(OBJDIR)/jk_worker.o \
224 # These are the LIB files needed to create the NLM target above.
225 # These will be added as a library command in the link.opt file.
228 $(NWOS)/$(OBJDIR)/libpre.o \
231 # $(NWOS)/$(OBJDIR)/libprews.o
234 # These are the modules that the above NLM target depends on to load.
235 # These will be added as a module command in the link.opt file.
237 FILES_nlm_modules = \
241 # If the nlm has a msg file, put it's path here
246 # If the nlm has a hlp file put it's path here
251 # If this is specified, it will override $(NWOS)\copyright.txt.
256 # Any additional imports go here
258 FILES_nlm_Ximports = \
267 # Any symbols exported to here
269 FILES_nlm_exports = \
274 # These are the OBJ files needed to create the LIB target above.
275 # Paths must all use the '/' character
281 # implement targets and dependancies (leave this section alone)
284 libs :: $(OBJDIR) $(TARGET_lib)
286 nlms :: libs $(TARGET_nlm)
289 # Updated this target to create necessary directories and copy files to the
290 # correct place. (See $(AP_WORK)\NWGNUhead.inc for examples)
292 install :: nlms FORCE
293 copy $(OBJDIR)\$(NLM_NAME).nlm $(INSTALL)\Apache\modules
296 # Any specialized rules here
298 vpath %.c . $(JKCOMMON) $(SNPRINTF)
300 $(OBJDIR)/version.inc: $(JKCOMMON)/jk_version.h $(SRC)/include/httpd.h $(OBJDIR)
302 @awk -f ../../support/get_ver.awk $< $(SRC)/include/httpd.h > $@
304 # Include the version info retrieved from jk_version.h
305 -include $(OBJDIR)/version.inc
308 # Include the 'tail' makefile that has targets that depend on variables defined
312 include $(AP_WORK)/NWGNUtail.inc