bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / native / apache-1.3 / NWGNUmakefile.mak
1 #
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
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
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.
16 #
17
18 #
19 # NetWare Makefile for mod_jk (uses build system of Apache 1.3.x - gnu make)
20 # created by Guenter Knauf <fuankg@apache.org>
21 #
22
23 #
24 # Make sure all needed macro's are defined
25 #
26
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!) 
29 endif
30
31 LDLIBS = -l"$(METROWERKS)/Novell Support/libraries/runtime/mwcrtl.lib"
32
33 JKCOMMON = ../common
34
35 #
36 # Get the 'head' of the build environment if necessary.  This includes default
37 # targets and paths to tools
38 #
39
40 ifndef EnvironmentDefined
41 include $(AP_WORK)\NWGNUhead.inc
42 endif
43
44 #
45 # These directories will be at the beginning of the include list, followed by
46 # INCDIRS
47 #
48 XINCDIRS        += \
49                         $(JKCOMMON) \
50                         $(JAVA_HOME)/include \
51                         $(JAVA_HOME)/include/netware \
52                         $(SRC)\include \
53                         $(NWOS) \
54                         $(EOLIST)
55
56 #
57 # These flags will come after CFLAGS
58 #
59 XCFLAGS         += \
60                         -DNO_GETTIMEOFDAY \
61                         -DJK_PREFORK \
62                         $(EOLIST)
63
64 #
65 # These defines will come after DEFINES
66 #
67 XDEFINES        += \
68                         $(EOLIST)
69
70 #
71 # These flags will be added to the link.opt file
72 #
73 XLFLAGS         += \
74                         $(LDLIBS) \
75                         $(EOLIST)
76
77 #
78 # These values will be appended to the correct variables based on the value of
79 # RELEASE
80 #
81 ifeq "$(RELEASE)" "debug"
82 XINCDIRS        += \
83                         $(EOLIST)
84
85 XCFLAGS         += \
86                         $(EOLIST)
87
88 XDEFINES        += \
89                         $(EOLIST)
90
91 XLFLAGS         += \
92                         $(EOLIST)
93 endif
94
95 ifeq "$(RELEASE)" "noopt"
96 XINCDIRS        += \
97                         $(EOLIST)
98
99 XCFLAGS         += \
100                         $(EOLIST)
101
102 XDEFINES        += \
103                         $(EOLIST)
104
105 XLFLAGS         += \
106                         $(EOLIST)
107 endif
108
109 ifeq "$(RELEASE)" "release"
110 XINCDIRS        += \
111                         $(EOLIST)
112
113 XCFLAGS         += \
114                         $(EOLIST)
115
116 XDEFINES        += \
117                         $(EOLIST)
118
119 XLFLAGS         += \
120                         $(EOLIST)
121 endif
122
123 #
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.
127 #
128 NLM_NAME        = mod_jk
129
130 #
131 # This is used by the link '-desc ' directive. 
132 # If left blank, NLM_NAME will be used.
133 #
134 NLM_DESCRIPTION = Apache $(AP_VERSION_STR) plugin for Tomcat $(JK_VERSION_STR)
135
136 #
137 # This is used by the link '-copy ' directive.
138 # If left blank, the ASF copyright defined in NWGNUtail.inc will be used.
139 #
140 NLM_COPYRIGHT = Licensed under the Apache License Version 2.0
141
142 #
143 # This is used by the '-threadname' directive.  If left blank,
144 # NLM_NAME Thread will be used.
145 #
146 NLM_THREAD_NAME = JK Module
147
148 #
149 # If this is specified, it will override VERSION value in 
150 # $(AP_WORK)\NWGNUenvironment.inc
151 #
152 NLM_VERSION     = $(JK_VERSION)
153
154 #
155 # If this is specified, it will override the default of 64K
156 #
157 NLM_STACK_SIZE  = 65536
158
159 #
160 # If this is specified it will be used by the link '-entry' directive
161 #
162 NLM_ENTRY_SYM   = _lib_start
163 #NLM_ENTRY_SYM  = _lib_start_ws
164
165 #
166 # If this is specified it will be used by the link '-exit' directive
167 #
168 NLM_EXIT_SYM    = _lib_stop
169 #NLM_EXIT_SYM   = _lib_stop_ws
170
171 #
172 # If this is specified it will be used by the link '-flags' directive
173 #
174 NLM_FLAGS       =
175
176 #
177 # Declare all target files (you must add your files here)
178 #
179
180 #
181 # If there is an NLM target, put it here
182 #
183 TARGET_nlm = \
184         $(OBJDIR)/$(NLM_NAME).nlm \
185         $(EOLIST)
186
187 #
188 # If there is an LIB target, put it here
189 #
190 TARGET_lib = \
191         $(EOLIST)
192
193 #
194 # These are the OBJ files needed to create the NLM target above.
195 # Paths must all use the '/' character
196 #
197 FILES_nlm_objs = \
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 \
210         $(OBJDIR)/jk_map.o \
211         $(OBJDIR)/jk_md5.o \
212         $(OBJDIR)/jk_msg_buff.o \
213         $(OBJDIR)/jk_pool.o \
214         $(OBJDIR)/jk_shm.o \
215         $(OBJDIR)/jk_sockbuf.o \
216         $(OBJDIR)/jk_status.o \
217         $(OBJDIR)/jk_uri_worker_map.o \
218         $(OBJDIR)/jk_url.o \
219         $(OBJDIR)/jk_util.o \
220         $(OBJDIR)/jk_worker.o \
221         $(EOLIST)
222
223 #
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.
226 #
227 FILES_nlm_libs = \
228         $(NWOS)/$(OBJDIR)/libpre.o \
229         $(EOLIST)
230
231 #       $(NWOS)/$(OBJDIR)/libprews.o
232
233 #
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.
236 #
237 FILES_nlm_modules = \
238         $(EOLIST)
239
240 #
241 # If the nlm has a msg file, put it's path here
242 #
243 FILE_nlm_msg =
244  
245 #
246 # If the nlm has a hlp file put it's path here
247 #
248 FILE_nlm_hlp =
249
250 #
251 # If this is specified, it will override $(NWOS)\copyright.txt.
252 #
253 FILE_nlm_copyright =
254
255 #
256 # Any additional imports go here
257 #
258 FILES_nlm_Ximports = \
259         @ApacheCore.imp \
260         @threads.imp \
261         @clib.imp \
262         @nlmlib.imp \
263         @socklib.imp \
264         $(EOLIST)
265  
266 #   
267 # Any symbols exported to here
268 #
269 FILES_nlm_exports = \
270         jk_module \
271         $(EOLIST)
272
273 #   
274 # These are the OBJ files needed to create the LIB target above.
275 # Paths must all use the '/' character
276 #
277 FILES_lib_objs = \
278         $(EOLIST)
279
280 #
281 # implement targets and dependancies (leave this section alone)
282 #
283
284 libs :: $(OBJDIR) $(TARGET_lib)
285
286 nlms :: libs $(TARGET_nlm)
287
288 #
289 # Updated this target to create necessary directories and copy files to the 
290 # correct place.  (See $(AP_WORK)\NWGNUhead.inc for examples)
291 #
292 install :: nlms FORCE
293         copy $(OBJDIR)\$(NLM_NAME).nlm $(INSTALL)\Apache\modules
294
295 #
296 # Any specialized rules here
297 #
298 vpath %.c . $(JKCOMMON) $(SNPRINTF)
299
300 $(OBJDIR)/version.inc: $(JKCOMMON)/jk_version.h $(SRC)/include/httpd.h $(OBJDIR)
301         @echo Creating $@
302         @awk -f ../../support/get_ver.awk $<  $(SRC)/include/httpd.h > $@
303
304 # Include the version info retrieved from jk_version.h
305 -include $(OBJDIR)/version.inc
306
307 #
308 # Include the 'tail' makefile that has targets that depend on variables defined
309 # in this makefile
310 #
311
312 include $(AP_WORK)/NWGNUtail.inc
313