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