~ubuntu-branches/ubuntu/oneiric/libapache-mod-jk/oneiric

« back to all changes in this revision

Viewing changes to native/apache-2.0/NWGNUmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2006-08-05 16:30:53 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060805163053-myf66gm6j1a21ps6
Tags: 1:1.2.18-1ubuntu1
Merge from Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile for mod_jk (uses the build system of Apache2 - gnu make)
 
3
# created by Guenter Knauf <eflash@gmx.net>
 
4
#
 
5
 
 
6
#ifeq ($(strip $(JAVA_HOME)),)
 
7
#@echo You must set the JAVA_HOME environment var pointing to the NetWare Java SDK!
 
8
#endif
 
9
 
 
10
#
 
11
# Declare the sub-directories to be built here
 
12
#
 
13
 
 
14
SUBDIRS = \
 
15
        $(EOLIST)
 
16
 
 
17
#
 
18
# Get the 'head' of the build environment.  This includes default targets and
 
19
# paths to tools
 
20
#
 
21
 
 
22
include $(AP_WORK)\build\NWGNUhead.inc
 
23
 
 
24
#
 
25
# build this level's files
 
26
 
 
27
#
 
28
# Make sure all needed macro's are defined
 
29
#
 
30
 
 
31
JKCOMMON = ../common
 
32
 
 
33
#
 
34
# These directories will be at the beginning of the include list, followed by
 
35
# INCDIRS
 
36
#
 
37
XINCDIRS        += \
 
38
                        $(JKCOMMON) \
 
39
                        $(AP_WORK)/include \
 
40
                        $(NWOS) \
 
41
                        $(AP_WORK)/modules/arch/netware \
 
42
                        $(APR)/include \
 
43
                        $(APRUTIL)/include \
 
44
                        $(APR) \
 
45
                        $(JAVA_HOME)/include \
 
46
                        $(JAVA_HOME)/include/netware \
 
47
                        $(EOLIST)
 
48
 
 
49
#
 
50
# These flags will come after CFLAGS
 
51
#
 
52
XCFLAGS         += \
 
53
                        $(EOLIST)
 
54
 
 
55
#
 
56
# These defines will come after DEFINES
 
57
#
 
58
XDEFINES        += \
 
59
                        -D__NOVELL_LIBC__ \
 
60
                        -D_POSIX_SOURCE \
 
61
                        $(EOLIST)
 
62
 
 
63
#
 
64
# These flags will be added to the link.opt file
 
65
#
 
66
XLFLAGS         += \
 
67
                        $(EOLIST)
 
68
 
 
69
#
 
70
# These values will be appended to the correct variables based on the value of
 
71
# RELEASE
 
72
#
 
73
ifeq "$(RELEASE)" "debug"
 
74
XINCDIRS        += \
 
75
                        $(EOLIST)
 
76
 
 
77
XCFLAGS         += \
 
78
                        $(EOLIST)
 
79
 
 
80
XDEFINES        += \
 
81
                        $(EOLIST)
 
82
 
 
83
XLFLAGS         += \
 
84
                        $(EOLIST)
 
85
endif
 
86
 
 
87
ifeq "$(RELEASE)" "noopt"
 
88
XINCDIRS        += \
 
89
                        $(EOLIST)
 
90
 
 
91
XCFLAGS         += \
 
92
                        $(EOLIST)
 
93
 
 
94
XDEFINES        += \
 
95
                        $(EOLIST)
 
96
 
 
97
XLFLAGS         += \
 
98
                        $(EOLIST)
 
99
endif
 
100
 
 
101
ifeq "$(RELEASE)" "release"
 
102
XINCDIRS        += \
 
103
                        $(EOLIST)
 
104
 
 
105
XCFLAGS         += \
 
106
                        $(EOLIST)
 
107
 
 
108
XDEFINES        += \
 
109
                        $(EOLIST)
 
110
 
 
111
XLFLAGS         += \
 
112
                        $(EOLIST)
 
113
endif
 
114
 
 
115
#
 
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.
 
119
#
 
120
NLM_NAME                = mod_jk
 
121
 
 
122
#
 
123
# This is used by the link '-desc ' directive.
 
124
# If left blank, NLM_NAME will be used.
 
125
#
 
126
NLM_DESCRIPTION = Apache $(VERSION_STR) plugin for Tomcat $(JK_VERSION_STR)
 
127
 
 
128
#
 
129
# This is used by the link '-copy ' directive.
 
130
# If left blank, the ASF copyright defined in NWGNUtail.inc will be used.
 
131
#
 
132
NLM_COPYRIGHT   =
 
133
 
 
134
#
 
135
# This is used by the '-threadname' directive.  If left blank,
 
136
# NLM_NAME Thread will be used.
 
137
#
 
138
NLM_THREAD_NAME = JK Module
 
139
 
 
140
#
 
141
# If this is specified, it will override VERSION value in
 
142
# $(AP_WORK)\build\NWGNUenvironment.inc
 
143
#
 
144
NLM_VERSION     = $(JK_VERSION)
 
145
 
 
146
#
 
147
# If this is specified, it will override the default of 64K
 
148
#
 
149
NLM_STACK_SIZE  = 49152
 
150
 
 
151
 
 
152
#
 
153
# If this is specified it will be used by the link '-entry' directive
 
154
#
 
155
NLM_ENTRY_SYM   = _LibCPrelude
 
156
 
 
157
#
 
158
# If this is specified it will be used by the link '-exit' directive
 
159
#
 
160
NLM_EXIT_SYM    = _LibCPostlude
 
161
 
 
162
#
 
163
# If this is specified it will be used by the link '-check' directive
 
164
#
 
165
NLM_CHECK_SYM   =
 
166
 
 
167
#
 
168
# If these are specified it will be used by the link '-flags' directive
 
169
#
 
170
NLM_FLAGS               =  AUTOUNLOAD, PSEUDOPREEMPTION
 
171
 
 
172
#
 
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
 
176
#
 
177
XDCDATA         =
 
178
 
 
179
#
 
180
# If there is an NLM target, put it here
 
181
#
 
182
TARGET_nlm = \
 
183
        $(OBJDIR)/mod_jk.nlm \
 
184
        $(EOLIST)
 
185
 
 
186
#
 
187
# If there is an LIB target, put it here
 
188
#
 
189
TARGET_lib = \
 
190
        $(EOLIST)
 
191
 
 
192
#
 
193
# These are the OBJ files needed to create the NLM target above.
 
194
# Paths must all use the '/' character
 
195
#
 
196
FILES_nlm_objs = \
 
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 \
 
208
        $(OBJDIR)/jk_map.o \
 
209
        $(OBJDIR)/jk_md5.o \
 
210
        $(OBJDIR)/jk_msg_buff.o \
 
211
        $(OBJDIR)/jk_pool.o \
 
212
        $(OBJDIR)/jk_shm.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 \
 
218
        $(OBJDIR)/mod_jk.o \
 
219
        $(EOLIST)
 
220
 
 
221
#
 
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.
 
224
#
 
225
FILES_nlm_libs = \
 
226
        libcpre.o \
 
227
        $(EOLIST)
 
228
 
 
229
#
 
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.
 
232
#
 
233
FILES_nlm_modules = \
 
234
        aprlib \
 
235
        libc \
 
236
        $(EOLIST)
 
237
 
 
238
#
 
239
# If the nlm has a msg file, put it's path here
 
240
#
 
241
FILE_nlm_msg =
 
242
 
 
243
#
 
244
# If the nlm has a hlp file put it's path here
 
245
#
 
246
FILE_nlm_hlp =
 
247
 
 
248
#
 
249
# If this is specified, it will override $(NWOS)\copyright.txt.
 
250
#
 
251
FILE_nlm_copyright =
 
252
 
 
253
#
 
254
# Any additional imports go here
 
255
#
 
256
FILES_nlm_Ximports = \
 
257
        @$(APR)/aprlib.imp \
 
258
        @$(NWOS)/httpd.imp \
 
259
        @libc.imp \
 
260
        @ws2nlm.imp \
 
261
        $(EOLIST)
 
262
 
 
263
#
 
264
# Any symbols exported to here
 
265
#
 
266
FILES_nlm_exports = \
 
267
        jk_module \
 
268
        $(EOLIST)
 
269
 
 
270
#
 
271
# These are the OBJ files needed to create the LIB target above.
 
272
# Paths must all use the '/' character
 
273
#
 
274
FILES_lib_objs = \
 
275
        $(EOLIST)
 
276
 
 
277
#
 
278
# implement targets and dependancies (leave this section alone)
 
279
#
 
280
 
 
281
libs :: $(OBJDIR) $(TARGET_lib)
 
282
 
 
283
nlms :: libs $(TARGET_nlm)
 
284
 
 
285
#
 
286
# Updated this target to create necessary directories and copy files to the
 
287
# correct place.  (See $(AP_WORK)\build\NWGNUhead.inc for examples)
 
288
#
 
289
install :: nlms FORCE
 
290
        copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
 
291
 
 
292
#
 
293
# Any specialized rules here
 
294
#
 
295
 
 
296
vpath %.c $(JKCOMMON)
 
297
 
 
298
$(OBJDIR)/version.inc: $(JKCOMMON)/jk_version.h $(OBJDIR)
 
299
        @echo Creating $@
 
300
        @awk -f ../../support/get_ver.awk $< > $@
 
301
 
 
302
 
 
303
#
 
304
# Include the version info retrieved from jk_version.h
 
305
#
 
306
 
 
307
-include $(OBJDIR)/version.inc
 
308
 
 
309
#
 
310
# Include the 'tail' makefile that has targets that depend on variables defined
 
311
# in this makefile
 
312
#
 
313
 
 
314
include $(AP_WORK)\build\NWGNUtail.inc
 
315
 
 
316