Skip to content

Commit 14f3fe8

Browse files
author
Bradley Nicholes
committed
NetWare make files for building experimental modules mod_deflate,
mod_example and support utilities ab, htdbm and logresolve Submitted by: Guenter Knauf [eflash@gmx.net] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94883 13f79535-47bb-0310-9956-ffa450edef68
1 parent d5e573d commit 14f3fe8

8 files changed

Lines changed: 1525 additions & 0 deletions

File tree

modules/NWGNUmakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#
22
# Declare the sub-directories to be built here
33
#
4+
# To build the experimental modules, add "experimental \"
5+
# to the list below.
46

57
SUBDIRS = \
68
aaa \

modules/experimental/NWGNUdeflate

Lines changed: 274 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
1+
#
2+
# The MOD_DEFLATE module requires the ZLib source which
3+
# can be downloaded from http://www.gzip.org/zlib/
4+
#
5+
# Declare the sub-directories to be built here
6+
#
7+
8+
SUBDIRS = \
9+
$(EOLIST)
10+
11+
#
12+
# Get the 'head' of the build environment. This includes default targets and
13+
# paths to tools
14+
#
15+
16+
include $(AP_WORK)\build\NWGNUhead.inc
17+
18+
#
19+
# build this level's files
20+
21+
#
22+
# Make sure all needed macro's are defined
23+
#
24+
25+
#
26+
# These directories will be at the beginning of the include list, followed by
27+
# INCDIRS
28+
#
29+
XINCDIRS += \
30+
$(AP_WORK)/include \
31+
$(NWOS) \
32+
$(AP_WORK)/modules/arch/netware \
33+
$(AP_WORK)/srclib/apr/include \
34+
$(AP_WORK)/srclib/apr-util/include \
35+
$(AP_WORK)/srclib/apr \
36+
$(AP_WORK)/srclib/zlib \
37+
$(EOLIST)
38+
39+
#
40+
# These flags will come after CFLAGS
41+
#
42+
XCFLAGS += \
43+
-prefix pre_nw.h \
44+
$(EOLIST)
45+
46+
#
47+
# These defines will come after DEFINES
48+
#
49+
XDEFINES += \
50+
$(EOLIST)
51+
52+
#
53+
# These flags will be added to the link.opt file
54+
#
55+
XLFLAGS += \
56+
$(EOLIST)
57+
58+
#
59+
# These values will be appended to the correct variables based on the value of
60+
# RELEASE
61+
#
62+
ifeq "$(RELEASE)" "debug"
63+
XINCDIRS += \
64+
$(EOLIST)
65+
66+
XCFLAGS += \
67+
$(EOLIST)
68+
69+
XDEFINES += \
70+
$(EOLIST)
71+
72+
XLFLAGS += \
73+
$(EOLIST)
74+
endif
75+
76+
ifeq "$(RELEASE)" "noopt"
77+
XINCDIRS += \
78+
$(EOLIST)
79+
80+
XCFLAGS += \
81+
$(EOLIST)
82+
83+
XDEFINES += \
84+
$(EOLIST)
85+
86+
XLFLAGS += \
87+
$(EOLIST)
88+
endif
89+
90+
ifeq "$(RELEASE)" "release"
91+
XINCDIRS += \
92+
$(EOLIST)
93+
94+
XCFLAGS += \
95+
$(EOLIST)
96+
97+
XDEFINES += \
98+
$(EOLIST)
99+
100+
XLFLAGS += \
101+
$(EOLIST)
102+
endif
103+
104+
#
105+
# These are used by the link target if an NLM is being generated
106+
# This is used by the link 'name' directive to name the nlm. If left blank
107+
# TARGET_nlm (see below) will be used.
108+
#
109+
NLM_NAME = deflate
110+
111+
#
112+
# This is used by the link '-desc ' directive.
113+
# If left blank, NLM_NAME will be used.
114+
#
115+
NLM_DESCRIPTION = Deflate Module
116+
117+
#
118+
# This is used by the '-threadname' directive. If left blank,
119+
# NLM_NAME Thread will be used.
120+
#
121+
NLM_THREAD_NAME = Deflate Module
122+
123+
#
124+
# If this is specified, it will override VERSION value in
125+
# $(AP_WORK)\build\NWGNUenvironment.inc
126+
#
127+
NLM_VERSION =
128+
129+
#
130+
# If this is specified, it will override the default of 64K
131+
#
132+
NLM_STACK_SIZE = 8192
133+
134+
135+
#
136+
# If this is specified it will be used by the link '-entry' directive
137+
#
138+
NLM_ENTRY_SYM = _LibCPrelude
139+
140+
#
141+
# If this is specified it will be used by the link '-exit' directive
142+
#
143+
NLM_EXIT_SYM = _LibCPostlude
144+
145+
#
146+
# If this is specified it will be used by the link '-check' directive
147+
#
148+
NLM_CHECK_SYM =
149+
150+
#
151+
# If these are specified it will be used by the link '-flags' directive
152+
#
153+
NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
154+
155+
#
156+
# If this is specified it will be linked in with the XDCData option in the def
157+
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
158+
# by setting APACHE_UNIPROC in the environment
159+
#
160+
XDCDATA =
161+
162+
#
163+
# If there is an NLM target, put it here
164+
#
165+
TARGET_nlm = \
166+
$(OBJDIR)/deflate.nlm \
167+
$(EOLIST)
168+
169+
#
170+
# If there is an LIB target, put it here
171+
#
172+
TARGET_lib = \
173+
$(EOLIST)
174+
175+
#
176+
# These are the OBJ files needed to create the NLM target above.
177+
# Paths must all use the '/' character
178+
#
179+
FILES_nlm_objs = \
180+
$(OBJDIR)/mod_deflate.o \
181+
$(OBJDIR)/adler32.o \
182+
$(OBJDIR)/crc32.o \
183+
$(OBJDIR)/deflate.o \
184+
$(OBJDIR)/trees.o \
185+
$(OBJDIR)/zutil.o \
186+
$(EOLIST)
187+
188+
#
189+
# These are the LIB files needed to create the NLM target above.
190+
# These will be added as a library command in the link.opt file.
191+
#
192+
FILES_nlm_libs = \
193+
libcpre.o \
194+
$(EOLIST)
195+
196+
#
197+
# These are the modules that the above NLM target depends on to load.
198+
# These will be added as a module command in the link.opt file.
199+
#
200+
FILES_nlm_modules = \
201+
aprlib \
202+
libc \
203+
$(EOLIST)
204+
205+
#
206+
# If the nlm has a msg file, put it's path here
207+
#
208+
FILE_nlm_msg =
209+
210+
#
211+
# If the nlm has a hlp file put it's path here
212+
#
213+
FILE_nlm_hlp =
214+
215+
#
216+
# If this is specified, it will override $(NWOS)\copyright.txt.
217+
#
218+
FILE_nlm_copyright =
219+
220+
#
221+
# Any additional imports go here
222+
#
223+
FILES_nlm_Ximports = \
224+
@$(APR)/aprlib.imp \
225+
@$(NWOS)/httpd.imp \
226+
@libc.imp \
227+
$(EOLIST)
228+
229+
#
230+
# Any symbols exported to here
231+
#
232+
FILES_nlm_exports = \
233+
deflate_module \
234+
$(EOLIST)
235+
236+
#
237+
# These are the OBJ files needed to create the LIB target above.
238+
# Paths must all use the '/' character
239+
#
240+
FILES_lib_objs = \
241+
$(EOLIST)
242+
243+
#
244+
# implement targets and dependancies (leave this section alone)
245+
#
246+
247+
libs :: $(OBJDIR) $(TARGET_lib)
248+
249+
nlms :: libs $(TARGET_nlm)
250+
251+
#
252+
# Updated this target to create necessary directories and copy files to the
253+
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
254+
#
255+
install :: nlms FORCE
256+
257+
#
258+
# Any specialized rules here
259+
#
260+
261+
$(OBJDIR)/%.o: ../../srclib/zlib/%.c $(OBJDIR)\cc.opt
262+
@echo Compiling $<
263+
$(CC) ..\..\srclib\zlib\$(<F) -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
264+
265+
266+
#
267+
# Include the 'tail' makefile that has targets that depend on variables defined
268+
# in this makefile
269+
#
270+
271+
include $(AP_WORK)\build\NWGNUtail.inc
272+
273+
274+

0 commit comments

Comments
 (0)