summaryrefslogtreecommitdiffstats
path: root/modules.awk
blob: 3a437857dcfbf09de1ddd76c4837e30508d14b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
# 
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
# 
# In addition, as a special exception, Red Hat, Inc. gives You the additional
# right to link the code of this Program with code not covered under the GNU
# General Public License ("Non-GPL Code") and to distribute linked combinations
# including the two, subject to the limitations in this paragraph. Non-GPL Code
# permitted under this exception must only link to the code of this Program
# through those well defined interfaces identified in the file named EXCEPTION
# found in the source code files (the "Approved Interfaces"). The files of
# Non-GPL Code may instantiate templates or use macros or inline functions from
# the Approved Interfaces without causing the resulting work to be covered by
# the GNU General Public License. Only Red Hat, Inc. may make changes or
# additions to the list of Approved Interfaces. You must obey the GNU General
# Public License in all respects for all of the Program code and other code used
# in conjunction with the Program except the Non-GPL Code covered by this
# exception. If you modify this file, you may extend this exception to your
# version of the file, but you are not obligated to do so. If you do not wish to
# provide this exception without modification, you must delete this exception
# statement from your version and license this file solely under the GPL without
# exception. 
# 
# 
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# modules.mk: defines rules for each module that any part of the systems 
# will require in dependency lists.
#
# The current module will not be defined, you must have set the variable
# MODULE before this file is included.


NS_LIBDIR=$(BUILD_ROOT)/lib
MCOM_LIBDIR=$(BUILD_ROOT)/lib
HTTPD=$(BUILD_ROOT)/httpd
PROXY=$(BUILD_ROOT)/proxy
BATMAN=$(BUILD_ROOT)/batman
MAIL=$(BUILD_ROOT)/mailserv2
NEWS=$(BUILD_ROOT)/news
CMS=$(BUILD_ROOT)/species
ROGUE=$(BUILD_ROOT)/lw/rogue

# ------------------------------- Modules --------------------------------


ifneq ($(MODULE), LibRegex)
LIBREGEX=regex
LIBRARY regex $(NS_LIBDIR)/libregex
endif

ifneq ($(MODULE), LibBase)
BASE=base $(LIBSI18N)
BASE_SSL=base-ssl
LIBRARY base $(NS_LIBDIR)/base
endif

ifneq ($(MODULE), LibAccess)
LIBACCESS=access $(BASE) $(LIBSI18N)
LIBRARY libaccess $(NS_LIBDIR)/libaccess
endif

ifneq ($(MODULE), LibLdapUtil)
LIBLDAPU=ldapu $(BASE)
LIBRARY libldapu $(NS_LIBDIR)/ldaputil
endif

ifneq ($(MODULE), LibHttpDaemon)
HTTPDAEMON=httpdaemon
HTTPDAEMON_SSL=httpdaemon-ssl
LIBRARY libhttpdaemon $(NS_LIBDIR)/httpdaemon
endif

ifneq ($(MODULE), LibFrame)
FRAME=frame $(BASE)
FRAME_SSL=frame-ssl $(BASE_SSL)
LIBRARY frame $(NS_LIBDIR)/frame
endif

ifneq ($(MODULE), LibProxy)
LIBPROXY=libproxy
LIBPROXY_SSL=libproxy-ssl
LIBRARY libproxy $(NS_LIBDIR)/libproxy
endif

ifneq ($(MODULE), LibSNMP)
LIBSNMP=libsnmp
LIBSNMP_SSL=libsnmp-ssl
LIBRARY libsnmp $(NS_LIBDIR)/libsnmp
endif

ifneq ($(MODULE), LibSAFs)
SAFS=safs
SAFS_SSL=safs-ssl
LIBRARY safs $(NS_LIBDIR)/safs
endif

ifneq ($(MODULE), LibAR)
LIBARES=ares
LIBRARY libares
endif

ifneq ($(MODULE), CGIUtils)
CGIUTILS=cgiutils
LIBRARY cgiutils $(NS_LIBDIR)/cgiutils
endif

ifneq ($(MODULE), LibAdmin)
LIBADMIN=admin
LIBRARY admin $(NS_LIBDIR)/libadmin
endif

ifneq ($(MODULE), LibAdminUtil)
#LIBADMINUTIL=adminutil
LIBRARY adminutil $(NS_LIBDIR)/libadminutil
endif

ifneq ($(MODULE), LibCrypt)
LIBCRYPT=crypt
LIBRARY crypt $(NS_LIBDIR)/libcrypt
endif

ifneq ($(MODULE), LibMessages)
LIBMESSAGES=messages
LIBRARY messages $(NS_LIBDIR)/libmessages
endif

ifneq ($(MODULE), LibNSCore)
LIBNSCORE=nscore
LIBRARY nscore $(NS_LIBDIR)/libnscore
endif

ifneq ($(MODULE), LibMsgDisp)
LIBNSCORE=msgdisp
LIBRARY msgdisp $(NS_LIBDIR)/libmsgdisp
endif

ifneq ($(MODULE), LibMetaData)
LIBNSCORE=metadata
LIBRARY metadata $(NS_LIBDIR)/libmetadata
endif

ifneq ($(MODULE), LibIr)
LIBNSCORE=ir
LIBRARY ir $(NS_LIBDIR)/libir
endif

ifneq ($(MODULE), LibDocLdr)
LIBNSCORE=docldr
LIBRARY docldr $(NS_LIBDIR)/libdocldr
endif

ifneq ($(MODULE), LibVLdr)
LIBNSCORE=vldr
LIBRARY vldr $(NS_LIBDIR)/libvldr
endif

ifneq ($(MODULE), LibsI18N)
LIBSI18N=si18n
LIBRARY si18n $(NS_LIBDIR)/libsi18n
endif

ifneq ($(MODULE), LibINN)
LIBINN=inn
LIBRARY inn $(NS_LIBDIR)/libinn
endif


#ifeq ($(ARCH), WINNT)
#ifneq ($(MODULE), LibNSPR)
#ifeq ($(DEBUG), purify)
#LIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(LIB_SUFFIX)
#else
#LIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(LIB_SUFFIX)
#endif
#NSPRDIR=nspr20
#DISTLIB libnspr $(BUILD_ROOT)/$(NSPRDIR)
#endif
#else
#ifneq ($(MODULE), LibNSPR)
#ifeq ($(DEBUG), purify)
#LIBNSPR=$(NSCP_DISTDIR)/lib/purelibnspr.$(LIB_SUFFIX) 
#SHLIBNSPR=$(NSCP_DISTDIR)/lib/purelibnspr$(DLL_PRESUF).$(DLL_SUFFIX) 
#else
#LIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(LIB_SUFFIX) 
#SHLIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME)$(DLL_PRESUF).$(DLL_SUFFIX) 
#endif
#NSPRDIR=nspr20
#DISTLIB libnspr $(BUILD_ROOT)/$(NSPRDIR)
#endif
#endif
#
#ifneq ($(MODULE), LibSSLio)
#LIBSSLIO=$(NSCP_DISTDIR)/lib/libsslio.$(LIB_SUFFIX)
#DISTLIB libsslio $(BUILD_ROOT)/$(NSPRDIR)/lib/sslio libsslio
#endif

ifneq ($(MODULE), LibDirMon)
LIBDIRMON=$(NSCP_DISTDIR)/lib/libdirmon.$(LIB_SUFFIX)
#DISTLIB libdirmon $(BUILD_ROOT)/$(NSPRDIR)/lib/dirmon libdirmon
DISTLIB libdirmon $(BUILD_ROOT)/nspr20/lib/dirmon libdirmon
endif


#LibAres and LibPRstrm are from NSPR20 BIN release
#ifneq ($(MODULE), LibAres)
#LIBARES=$(NSCP_DISTDIR)/lib/libares.$(LIB_SUFFIX)
#DISTLIB libares $(BUILD_ROOT)/$(NSPRDIR)/lib/arlib libares
#endif

#ifneq ($(MODULE), LibPRstrm)
#LIBPRSTRMS=$(NSCP_DISTDIR)/lib/libprstrms.$(LIB_SUFFIX)
#DISTLIB libprstrms $(BUILD_ROOT)/$(NSPRDIR)/lib/prstreams libprstrms
#endif

#ifneq ($(MODULE), LibXP)
#LIBXP=$(MCOM_LIBDIR)/xp/$(NSOBJDIR_NAME)/libxp.$(LIB_SUFFIX)
#DISTLIB libxp $(MCOM_LIBDIR)/xp libnspr
#DISTLIB libxp $(MCOM_LIBDIR)/xp 
#endif

#ifneq ($(MODULE), LibDBM)
#LIBDBM=$(MCOM_LIBDIR)/libdbm/$(NSOBJDIR_NAME)/libdbm.$(LIB_SUFFIX)
#DISTLIB libdbm $(MCOM_LIBDIR)/libdbm libnspr
#endif

ifneq ($(MODULE), LibNT)
LIBNT=$(MCOM_LIBDIR)/libnt/$(NSOBJDIR_NAME)/libnt.$(LIB_SUFFIX)
DISTLIB libnt $(MCOM_LIBDIR)/libnt
endif

#ifneq ($(MODULE), LibSecurity)
#ifeq ($(SECURITY), domestic)
#WHICHA=us
#else
#WHICHA=export
#endif
#LIBSEC=$(MCOM_LIBDIR)/libsec/$(NSOBJDIR_NAME)/libsec-$(WHICHA).$(LIB_SUFFIX) $(LIBDBM) $(LIBXP)
#LIBSECNAME=libsec-$(WHICHA)
#libsec: $(LIBSECNAME)
#DISTLIB libsec-$(WHICHA) $(MCOM_LIBDIR)/libsec libnspr libdbm libxp
#endif

ifneq ($(MODULE), LibNet)
LIBNET=$(MCOM_LIBDIR)/libnet/$(NSOBJDIR_NAME)/libnet.$(LIB_SUFFIX)
DISTLIB libnet.$(LIB_SUFFIX) $(MCOM_LIBDIR)/libnet
endif

ifneq ($(MODULE), LibCS)
LIBCS=libcs
LIBRARY libcs $(NS_LIBDIR)/libcs
endif

ifneq ($(MODULE), LibRobotAPI)
LIBROBOTAPI=librobotapi
LIBRARY librobotapi $(BATMAN)/rds/api
endif

ifneq ($(MODULE), httpdAdminHTML)
MODULE httpd-adm-html $(HTTPD)/newadmin/html
endif

ifneq ($(MODULE), httpdAdminIcons)
MODULE httpd-adm-icons $(HTTPD)/newadmin/icons
endif

ifeq ($(ARCH), WINNT)
ifneq ($(MODULE), httpdAdminBin)
# the admin binaries link with the Server DLL
MODULE httpd-adm-bin $(HTTPD)/newadmin/src
endif
endif
ifneq ($(MODULE), httpdAdminBin)
ifneq ($(ARCH), WINNT)
MODULE httpd-adm-bin $(HTTPD)/newadmin/src
endif
endif

ifneq ($(MODULE), httpdInstall)
MODULE httpd-inst $(HTTPD)/newinst
endif

ifneq ($(MODULE), httpdBinary)
MODULE httpd-bin $(HTTPD)/src
endif

ifneq ($(MODULE), httpdExtrasDatabase)
MODULE httpd-extra-db libxp
endif


ifneq ($(MODULE), httpSubagtBinary)
MODULE http-subagt-bin $(HTTPD)/plugins/snmp
endif


ifneq ($(MODULE), proxyExtras)
MODULE proxy-extra libxp
endif

ifneq ($(MODULE), proxyAdminHTML)
MODULE proxy-adm-html $(PROXY)/newadmin/html
endif

ifneq ($(MODULE), proxyAdminIcons)
MODULE proxy-adm-icons $(PROXY)/newadmin/icons
endif

ifneq ($(MODULE), proxyAdminBin)
MODULE proxy-adm-bin $(PROXY)/newadmin/src
endif

ifneq ($(MODULE), proxyInstallHTML)
MODULE proxy-inst-html $(PROXY)/newinst/html
endif

ifneq ($(MODULE), proxyInstallBin)
MODULE proxy-inst-bin $(PROXY)/newinst/src
endif

ifneq ($(MODULE), proxyBinary)
MODULE proxy-bin $(PROXY)/src
endif

ifneq ($(MODULE), admservBinary)
MODULE admin-server $(BUILD_ROOT)/admserv libnspr frame safs libsnmp libadmin libadminutil libsec-$(WHICHA)
endif

ifneq ($(MODULE), mailServer)
MODULE mail-server $(BUILD_ROOT)/mailserv2/code libnspr
endif

ifneq ($(MODULE), mailAdmin)
MODULE mail-admin $(BUILD_ROOT)/mailserv2/admin libnspr frame libsec-$(WHICHA) admin
endif

ifneq ($(MODULE), mailInstall)
MODULE mail-inst $(BUILD_ROOT)/mailserv2/install libnspr cgiutils regex frame
endif

ifneq ($(MODULE), nnrpdBinary)
MODULE news-nnrpd $(BUILD_ROOT)/news/nnrpd libnspr inn base libsec-$(WHICHA)
endif

ifneq ($(MODULE), inndBinary)
MODULE news-innd $(BUILD_ROOT)/news/innd libnspr inn base libsec-$(WHICHA)
endif

ifneq ($(MODULE), innBackEnds)
MODULE news-backends $(BUILD_ROOT)/news/backends libnspr inn base libsec-$(WHICHA)
endif

ifneq ($(MODULE), innExpire)
MODULE news-expire $(BUILD_ROOT)/news/expire libnspr inn
endif

ifneq ($(MODULE), innFrontEnds)
MODULE news-frontends $(BUILD_ROOT)/news/frontends libnspr inn
endif

ifneq ($(MODULE), innInstall)
MODULE news-install $(BUILD_ROOT)/news/newinst libnspr inn admin base
endif

ifneq ($(MODULE), innAdmin)
MODULE news-admin $(BUILD_ROOT)/news/admin libnspr inn admin base 
endif

ifneq ($(MODULE), innSiteFiles)
MODULE news-site $(BUILD_ROOT)/news/site libnspr inn
endif


ifneq ($(MODULE), batmanDS)
MODULE batman-ds $(BATMAN)/ds libcs
endif

ifneq ($(MODULE), batmanClient)
MODULE batman-client $(BATMAN)/client libcs
endif

ifneq ($(MODULE), batmanRDS)
MODULE batman-rds $(BATMAN)/rds libnspr libcs regex libxp libdbm libnet.$(LIB_SUFFIX) libsec-$(WHICHA) base frame
endif

ifneq ($(MODULE), batmanMiniRDS)
MODULE batman-minirds $(BATMAN)/minirds 
endif

ifneq ($(MODULE), batmanDBA)
MODULE batman-dba $(BATMAN)/dba libcs libdbm
endif

ifneq ($(MODULE), batmanTaxonomy)
MODULE batman-taxonomy $(BATMAN)/tax libcs
endif

ifneq ($(MODULE), httpd-extras)
MODULE httpd-extras $(HTTPD)/extras
endif

ifneq ($(MODULE), httpd-mc-icons)
MODULE httpd-mc-icons $(BUILD_ROOT)/mc-icons
endif

ifneq ($(MODULE), cms-rogue)
MODULE cms-rogue $(ROGUE)
endif

ifneq ($(MODULE), cms-cert)
MODULE cms-cert $(BUILD_ROOT)/certsvc
endif

ifneq ($(MODULE), ns-config)
MODULE ns-config $(BUILD_ROOT)/config
endif

# httpd-bin first so the dll gets built
ifeq ($(ARCH), WINNT)
PACKAGE httpd httpd-adm-bin httpd-adm-html httpd-adm-icons httpd-inst
else
PACKAGE httpd httpd-bin 
endif

PACKAGE proxy proxy-bin proxy-adm-html proxy-adm-bin proxy-adm-icons proxy-inst-html proxy-inst-bin

PACKAGE mail mail-server mail-admin mail-inst

PACKAGE news news-backends news-expire news-frontends news-innd news-install news-admin news-nnrpd news-site

PACKAGE admserv admin-server

PACKAGE batman batman-rds batman-minirds batman-ds batman-client batman-taxonomy


PACKAGE cms-httpd  httpd-adm-bin httpd-adm-html httpd-adm-icons httpd-mc-icons httpd-extras httpd-inst
# base frame admin libaccess cgiutils  
PACKAGE cms-server ns-config libnspr libdbm libsec-$(WHICHA) libxp cms-rogue cms-cert