]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/apr-util/NWGNUmakefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / apr-util / NWGNUmakefile
1 #
2 # Declare the sub-directories to be built here
3 #
4
5 SUBDIRS = \
6         ldap \
7         xml \
8         $(EOLIST)
9
10 ifdef WITH_APR_DBD
11 SUBDIRS += \
12         dbd \
13         $(EOLIST)
14 endif
15
16 ifdef WITH_APR_DBM
17 SUBDIRS += \
18         dbm \
19         $(EOLIST)
20 endif
21
22 #
23 # Get the 'head' of the build environment.  This includes default targets and
24 # paths to tools
25 #
26
27 include $(APR_WORK)/build/NWGNUhead.inc
28
29 #
30 # Make sure all needed macro's are defined
31 #
32
33 #
34 # These directories will be at the beginning of the include list, followed by
35 # INCDIRS
36 #
37 XINCDIRS        += \
38                         $(APR)/include \
39                         $(APR)/include/arch/NetWare \
40                         $(APU)/include \
41                         $(APU)/uri \
42                         $(APU)/dbm/sdbm \
43                         $(APU)/include/private \
44                         $(APUXML)/expat/lib \
45                         $(LDAPSDK)/inc \
46                         $(EOLIST)
47
48 #
49 # These flags will come after CFLAGS
50 #
51 XCFLAGS         += \
52                         $(EOLIST)
53
54 #
55 # These defines will come after DEFINES
56 #
57 XDEFINES        += \
58                         $(EOLIST)
59
60 #
61 # These flags will be added to the link.opt file
62 #
63 XLFLAGS         += \
64                         $(EOLIST)
65
66 #
67 # These values will be appended to the correct variables based on the value of
68 # RELEASE
69 #
70 ifeq "$(RELEASE)" "debug"
71 XINCDIRS        += \
72                         $(EOLIST)
73
74 XCFLAGS         += \
75                         $(EOLIST)
76
77 XDEFINES        += \
78                         $(EOLIST)
79
80 XLFLAGS         += \
81                         $(EOLIST)
82 endif
83
84 ifeq "$(RELEASE)" "noopt"
85 XINCDIRS        += \
86                         $(EOLIST)
87
88 XCFLAGS         += \
89                         $(EOLIST)
90
91 XDEFINES        += \
92                         $(EOLIST)
93
94 XLFLAGS         += \
95                         $(EOLIST)
96 endif
97
98 ifeq "$(RELEASE)" "release"
99 XINCDIRS        += \
100                         $(EOLIST)
101
102 XCFLAGS         += \
103                         $(EOLIST)
104
105 XDEFINES        += \
106                         $(EOLIST)
107
108 XLFLAGS         += \
109                         $(EOLIST)
110 endif
111
112 #
113 # These are used by the link target if an NLM is being generated
114 # This is used by the link 'name' directive to name the nlm.  If left blank
115 # TARGET_nlm (see below) will be used.
116 #
117 NLM_NAME        =
118
119 #
120 # This is used by the link '-desc ' directive.
121 # If left blank, NLM_NAME will be used.
122 #
123 NLM_DESCRIPTION =
124
125 #
126 # This is used by the '-threadname' directive.  If left blank,
127 # NLM_NAME Thread will be used.
128 #
129 NLM_THREAD_NAME =
130 #
131 # If this is specified, it will override VERSION value in
132 # $(APR_WORK)/build/NWGNUenvironment.inc
133 #
134 NLM_VERSION     =
135
136 #
137 # If this is specified, it will override the default of 64K
138 #
139 NLM_STACK_SIZE  =
140
141 #
142 # If this is specified it will be used by the link '-entry' directive
143 #
144 NLM_ENTRY_SYM   =
145
146 #
147 # If this is specified it will be used by the link '-exit' directive
148 #
149 NLM_EXIT_SYM    =
150
151 #
152 # If this is specified it will be used by the link '-check' directive
153 #
154 NLM_CHECK_SYM   =
155
156 #
157 # If this is specified it will be used by the link '-flags' directive
158 #
159 NLM_FLAGS       =
160
161 #
162 # If this is specified it will be linked in with the XDCData option in the def
163 # file instead of the default of $(APR)/misc/netware/apache.xdc.  XDCData can
164 # be disabled by setting APACHE_UNIPROC in the environment
165 #
166 XDCDATA         =
167
168 #
169 # Declare all target files (you must add your files here)
170 #
171
172 #
173 # If there is an NLM target, put it here
174 #
175 TARGET_nlm = \
176         $(EOLIST)
177
178 #
179 # If there is an LIB target, put it here
180 #
181 TARGET_lib = \
182         $(OBJDIR)/apulib.lib \
183         $(EOLIST)
184
185 #
186 # These are the OBJ files needed to create the NLM target above.
187 # Paths must all use the '/' character
188 #
189 FILES_nlm_objs = \
190         $(EOLIST)
191
192 #
193 # These are the LIB files needed to create the NLM target above.
194 # These will be added as a library command in the link.opt file.
195 #
196 FILES_nlm_libs = \
197         $(EOLIST)
198
199 #
200 # These are the modules that the above NLM target depends on to load.
201 # These will be added as a module command in the link.opt file.
202 #
203 FILES_nlm_modules = \
204         $(EOLIST)
205
206 #
207 # If the nlm has a msg file, put it's path here
208 #
209 FILE_nlm_msg =
210
211 #
212 # If the nlm has a hlp file put it's path here
213 #
214 FILE_nlm_hlp =
215
216 #
217 # If this is specified, it will override $(NWOS)\copyright.txt.
218 #
219 FILE_nlm_copyright =
220
221 #
222 # Any additional imports go here
223 #
224 FILES_nlm_Ximports = \
225         $(EOLIST)
226
227 #
228 # Any symbols exported to here
229 #
230 FILES_nlm_exports = \
231         $(EOLIST)
232
233 #
234 # These are the OBJ files needed to create the LIB target above.
235 # Paths must all use the '/' character
236 #
237 FILES_lib_objs = \
238         $(OBJDIR)/apr_base64.o \
239         $(OBJDIR)/apr_brigade.o \
240         $(OBJDIR)/apr_buckets.o \
241         $(OBJDIR)/apr_buckets_alloc.o \
242         $(OBJDIR)/apr_buckets_eos.o \
243         $(OBJDIR)/apr_buckets_file.o \
244         $(OBJDIR)/apr_buckets_flush.o \
245         $(OBJDIR)/apr_buckets_heap.o \
246         $(OBJDIR)/apr_buckets_mmap.o \
247         $(OBJDIR)/apr_buckets_pipe.o \
248         $(OBJDIR)/apr_buckets_pool.o \
249         $(OBJDIR)/apr_buckets_refcount.o \
250         $(OBJDIR)/apr_buckets_simple.o \
251         $(OBJDIR)/apr_buckets_socket.o \
252         $(OBJDIR)/apr_crypto.o \
253         $(OBJDIR)/apr_date.o \
254         $(OBJDIR)/apr_dbm.o \
255         $(OBJDIR)/apr_dbd.o \
256         $(OBJDIR)/apr_dbm_sdbm.o \
257         $(OBJDIR)/apu_dso.o \
258         $(OBJDIR)/apr_hooks.o \
259         $(OBJDIR)/apr_md4.o \
260         $(OBJDIR)/apr_md5.o \
261         $(OBJDIR)/apr_memcache.o \
262         $(OBJDIR)/apr_passwd.o \
263         $(OBJDIR)/apr_queue.o \
264         $(OBJDIR)/apr_reslist.o \
265         $(OBJDIR)/apr_rmm.o \
266         $(OBJDIR)/apr_sha1.o \
267         $(OBJDIR)/apu_version.o \
268         $(OBJDIR)/getuuid.o \
269         $(OBJDIR)/uuid.o \
270         $(OBJDIR)/apr_strmatch.o \
271         $(OBJDIR)/apr_thread_pool.o \
272         $(OBJDIR)/apr_uri.o \
273         $(OBJDIR)/crypt_blowfish.o \
274         $(OBJDIR)/sdbm.o \
275         $(OBJDIR)/sdbm_hash.o \
276         $(OBJDIR)/sdbm_lock.o \
277         $(OBJDIR)/sdbm_pair.o \
278         $(OBJDIR)/xlate.o \
279         $(EOLIST)
280
281 #
282 # implement targets and dependancies (leave this section alone)
283 #
284
285 libs :: $(OBJDIR) $(TARGET_lib)
286
287 nlms :: libs $(TARGET_nlm)
288
289 #
290 # Updated this target to create necessary directories and copy files to the
291 # correct place.  (See $(APR_WORK)/build/NWGNUhead.inc for examples)
292 #
293 install :: nlms FORCE
294
295 #
296 # Any specialized rules here
297 #
298
299 vpath %.c buckets:crypto:dbd:dbm:dbm/sdbm:encoding:hooks:ldap:memcache:misc:strmatch:uri:xlate:xml
300
301 #
302 # Include the 'tail' makefile that has targets that depend on variables defined
303 # in this makefile
304 #
305
306 include $(APRBUILD)/NWGNUtail.inc
307
308