bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / native / apache-2.0 / NWGNUmakefile
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 2.x - gnu make)
20 # created by Guenter Knauf <fuankg@apache.org>
21 #
22
23 ifneq "$(wildcard $(JAVA_HOME)/include/netware/jni_md.h)" "$(JAVA_HOME)/include/netware/jni_md.h"
24 $(error JAVA_HOME does not point to a valid NetWare Java SDK!) 
25 endif
26
27 #
28 # Declare the sub-directories to be built here
29 #
30
31 SUBDIRS = \
32         $(EOLIST)
33
34 #
35 # Get the 'head' of the build environment.  This includes default targets and
36 # paths to tools
37 #
38
39 include $(AP_WORK)/build/NWGNUhead.inc
40
41 #
42 # build this level's files
43
44 #
45 # Make sure all needed macro's are defined
46 #
47
48 JKCOMMON = ../common
49
50 #
51 # These directories will be at the beginning of the include list, followed by
52 # INCDIRS
53 #
54 XINCDIRS        += \
55                         $(JKCOMMON) \
56                         $(APR)/include \
57                         $(APRUTIL)/include \
58                         $(AP_WORK)/include \
59                         $(NWOS) \
60                         $(JAVA_HOME)/include \
61                         $(JAVA_HOME)/include/netware \
62                         $(EOLIST)
63
64 #
65 # These flags will come after CFLAGS
66 #
67 XCFLAGS         += \
68                         $(EOLIST)
69
70 #
71 # These defines will come after DEFINES
72 #
73 XDEFINES        += \
74                         -D__NOVELL_LIBC__ \
75                         -D_POSIX_SOURCE \
76                         $(EOLIST)
77
78 #
79 # These flags will be added to the link.opt file
80 #
81 XLFLAGS         += \
82                         $(EOLIST)
83
84 #
85 # These values will be appended to the correct variables based on the value of
86 # RELEASE
87 #
88 ifeq "$(RELEASE)" "debug"
89 XINCDIRS        += \
90                         $(EOLIST)
91
92 XCFLAGS         += \
93                         $(EOLIST)
94
95 XDEFINES        += \
96                         $(EOLIST)
97
98 XLFLAGS         += \
99                         $(EOLIST)
100 endif
101
102 ifeq "$(RELEASE)" "noopt"
103 XINCDIRS        += \
104                         $(EOLIST)
105
106 XCFLAGS         += \
107                         $(EOLIST)
108
109 XDEFINES        += \
110                         $(EOLIST)
111
112 XLFLAGS         += \
113                         $(EOLIST)
114 endif
115
116 ifeq "$(RELEASE)" "release"
117 XINCDIRS        += \
118                         $(EOLIST)
119
120 XCFLAGS         += \
121                         $(EOLIST)
122
123 XDEFINES        += \
124                         $(EOLIST)
125
126 XLFLAGS         += \
127                         $(EOLIST)
128 endif
129
130 #
131 # These are used by the link target if an NLM is being generated
132 # This is used by the link 'name' directive to name the nlm.  If left blank
133 # TARGET_nlm (see below) will be used.
134 #
135 NLM_NAME        = mod_jk
136
137 #
138 # This is used by the link '-desc ' directive.
139 # If left blank, NLM_NAME will be used.
140 #
141 NLM_DESCRIPTION = Apache $(VERSION_STR) plugin for Tomcat $(JK_VERSION_STR)
142
143 #
144 # This is used by the link '-copy ' directive.
145 # If left blank, the ASF copyright defined in NWGNUtail.inc will be used.
146 #
147 NLM_COPYRIGHT   =
148
149 #
150 # This is used by the '-threadname' directive.  If left blank,
151 # NLM_NAME Thread will be used.
152 #
153 NLM_THREAD_NAME = JK Module
154
155 #
156 # If this is specified, it will override VERSION value in
157 # $(AP_WORK)\build\NWGNUenvironment.inc
158 #
159 NLM_VERSION     = $(JK_VERSION)
160
161 #
162 # If this is specified, it will override the default of 64K
163 #
164 NLM_STACK_SIZE  = 49152
165
166
167 #
168 # If this is specified it will be used by the link '-entry' directive
169 #
170 NLM_ENTRY_SYM   = _LibCPrelude
171
172 #
173 # If this is specified it will be used by the link '-exit' directive
174 #
175 NLM_EXIT_SYM    = _LibCPostlude
176
177 #
178 # If this is specified it will be used by the link '-check' directive
179 #
180 NLM_CHECK_SYM   =
181
182 #
183 # If these are specified it will be used by the link '-flags' directive
184 #
185 NLM_FLAGS       = AUTOUNLOAD, PSEUDOPREEMPTION
186
187 #
188 # If this is specified it will be linked in with the XDCData option in the def
189 # file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
190 # by setting APACHE_UNIPROC in the environment
191 #
192 XDCDATA         =
193
194 #
195 # If there is an NLM target, put it here
196 #
197 TARGET_nlm = \
198         $(OBJDIR)/$(NLM_NAME).nlm \
199         $(EOLIST)
200
201 #
202 # If there is an LIB target, put it here
203 #
204 TARGET_lib = \
205         $(EOLIST)
206
207 #
208 # These are the OBJ files needed to create the NLM target above.
209 # Paths must all use the '/' character
210 #
211 FILES_nlm_objs = \
212         $(OBJDIR)/jk_nwmain.o \
213         $(OBJDIR)/jk_ajp12_worker.o \
214         $(OBJDIR)/jk_ajp13.o \
215         $(OBJDIR)/jk_ajp13_worker.o \
216         $(OBJDIR)/jk_ajp14.o \
217         $(OBJDIR)/jk_ajp14_worker.o \
218         $(OBJDIR)/jk_ajp_common.o \
219         $(OBJDIR)/jk_connect.o \
220         $(OBJDIR)/jk_context.o \
221         $(OBJDIR)/jk_jni_worker.o \
222         $(OBJDIR)/jk_lb_worker.o \
223         $(OBJDIR)/jk_map.o \
224         $(OBJDIR)/jk_md5.o \
225         $(OBJDIR)/jk_msg_buff.o \
226         $(OBJDIR)/jk_pool.o \
227         $(OBJDIR)/jk_shm.o \
228         $(OBJDIR)/jk_sockbuf.o \
229         $(OBJDIR)/jk_status.o \
230         $(OBJDIR)/jk_uri_worker_map.o \
231         $(OBJDIR)/jk_url.o \
232         $(OBJDIR)/jk_util.o \
233         $(OBJDIR)/jk_worker.o \
234         $(OBJDIR)/mod_jk.o \
235         $(EOLIST)
236
237 #
238 # These are the LIB files needed to create the NLM target above.
239 # These will be added as a library command in the link.opt file.
240 #
241 FILES_nlm_libs = \
242         $(NOVELLLIBC)/imports/libcpre.o \
243         $(EOLIST)
244
245 #
246 # These are the modules that the above NLM target depends on to load.
247 # These will be added as a module command in the link.opt file.
248 #
249 FILES_nlm_modules = \
250         aprlib \
251         libc \
252         $(EOLIST)
253
254 #
255 # If the nlm has a msg file, put it's path here
256 #
257 FILE_nlm_msg =
258
259 #
260 # If the nlm has a hlp file put it's path here
261 #
262 FILE_nlm_hlp =
263
264 #
265 # If this is specified, it will override $(NWOS)\copyright.txt.
266 #
267 FILE_nlm_copyright =
268
269 #
270 # Any additional imports go here
271 #
272 FILES_nlm_Ximports = \
273         @aprlib.imp \
274         @httpd.imp \
275         @libc.imp \
276         @ws2nlm.imp \
277         $(EOLIST)
278
279 #
280 # Any symbols exported to here
281 #
282 FILES_nlm_exports = \
283         jk_module \
284         $(EOLIST)
285
286 #
287 # These are the OBJ files needed to create the LIB target above.
288 # Paths must all use the '/' character
289 #
290 FILES_lib_objs = \
291         $(EOLIST)
292
293 #
294 # implement targets and dependancies (leave this section alone)
295 #
296
297 libs :: $(OBJDIR) $(TARGET_lib)
298
299 nlms :: libs $(TARGET_nlm)
300
301 #
302 # Updated this target to create necessary directories and copy files to the
303 # correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
304 #
305 install :: nlms FORCE
306         copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
307
308 #
309 # Any specialized rules here
310 #
311
312 vpath %.c $(JKCOMMON)
313
314 $(OBJDIR)/version.inc: $(JKCOMMON)/jk_version.h $(OBJDIR)
315         @echo Creating $@
316         @awk -f ../../support/get_ver.awk $< > $@
317
318
319 #
320 # Include the version info retrieved from jk_version.h
321 #
322
323 -include $(OBJDIR)/version.inc
324
325 #
326 # Include the 'tail' makefile that has targets that depend on variables defined
327 # in this makefile
328 #
329
330 include $(AP_WORK)/build/NWGNUtail.inc
331
332