summaryrefslogtreecommitdiffstats
path: root/modules.awk
diff options
context:
space:
mode:
Diffstat (limited to 'modules.awk')
-rw-r--r--modules.awk451
1 files changed, 451 insertions, 0 deletions
diff --git a/modules.awk b/modules.awk
new file mode 100644
index 00000000..7f26819f
--- /dev/null
+++ b/modules.awk
@@ -0,0 +1,451 @@
+#
+# BEGIN COPYRIGHT BLOCK
+# Copyright 2001 Sun Microsystems, Inc.
+# Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
+# 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=$(NSROOT)/lib
+MCOM_LIBDIR=$(MCOM_ROOT)/lib
+HTTPD=$(NSROOT)/httpd
+PROXY=$(NSROOT)/proxy
+BATMAN=$(NSROOT)/batman
+MAIL=$(NSROOT)/mailserv2
+NEWS=$(NSROOT)/news
+CMS=$(NSROOT)/species
+ROGUE=$(MCOM_ROOT)/lw/rogue
+
+# Ari's definitions for MCOM libraries, these should have if statements
+# around them to make sure they only apply to the proxy
+ifeq ($(PRODUCT), "Netscape Proxy Server")
+ifeq ($(ARCH), HPUX)
+MCL_CFLAGS="-DMCC_PROXY -I../ldapserver/include -D_HPUX_SOURCE -Aa +DA1.0 +z"
+else
+MCL_CFLAGS="-DMCC_PROXY -I../ldapserver/include"
+endif
+endif
+
+# We need to customize how libnet works for the Catalog Server...
+ifeq ($(PRODUCT), "Netscape Catalog Server")
+MCL_CFLAGS="-DSEND_FROM_FEILD"
+endif
+
+# ------------------------------- Modules --------------------------------
+
+
+ifneq ($(MODULE), LibRegex)
+LIBREGEX=regex
+LIBRARY regex $(NS_LIBDIR)/libregex
+endif
+
+ifeq ($(PRODUCT), "Netscape Proxy Server")
+ifneq ($(MODULE), LibBase)
+BASE=base $(LIBREGEX) $(LIBSI18N)
+BASE_SSL=base-ssl $(LIBREGEX)
+LIBRARY base $(NS_LIBDIR)/base regex
+endif
+else
+ifneq ($(MODULE), LibBase)
+BASE=base $(LIBSI18N)
+BASE_SSL=base-ssl
+LIBRARY base $(NS_LIBDIR)/base
+endif
+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 $(MCOM_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 $(MCOM_ROOT)/$(NSPRDIR)
+#endif
+#endif
+#
+#ifneq ($(MODULE), LibSSLio)
+#LIBSSLIO=$(NSCP_DISTDIR)/lib/libsslio.$(LIB_SUFFIX)
+#DISTLIB libsslio $(MCOM_ROOT)/$(NSPRDIR)/lib/sslio libsslio
+#endif
+
+ifneq ($(MODULE), LibDirMon)
+LIBDIRMON=$(NSCP_DISTDIR)/lib/libdirmon.$(LIB_SUFFIX)
+#DISTLIB libdirmon $(MCOM_ROOT)/$(NSPRDIR)/lib/dirmon libdirmon
+DISTLIB libdirmon $(MCOM_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 $(MCOM_ROOT)/$(NSPRDIR)/lib/arlib libares
+#endif
+
+#ifneq ($(MODULE), LibPRstrm)
+#LIBPRSTRMS=$(NSCP_DISTDIR)/lib/libprstrms.$(LIB_SUFFIX)
+#DISTLIB libprstrms $(MCOM_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
+
+ifdef FORTEZZA
+ifeq ($(ARCH), WINNT)
+LIBSEC += $(MCOM_LIBDIR)/../dist/$(NSOBJDIR_NAME)/lib/tssp32.lib
+else
+FORTEZZA_DRIVER = $(MCOM_LIBDIR)/../dist/$(NSOBJDIR_NAME)/lib/libci.a
+endif
+LIBSEC += $(FORTEZZA_DRIVER)
+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 $(NSROOT)/admserv libnspr frame safs libsnmp libadmin libadminutil libsec-$(WHICHA)
+endif
+
+ifneq ($(MODULE), mailServer)
+MODULE mail-server $(NSROOT)/mailserv2/code libnspr
+endif
+
+ifneq ($(MODULE), mailAdmin)
+MODULE mail-admin $(NSROOT)/mailserv2/admin libnspr frame libsec-$(WHICHA) admin
+endif
+
+ifneq ($(MODULE), mailInstall)
+MODULE mail-inst $(NSROOT)/mailserv2/install libnspr cgiutils regex frame
+endif
+
+ifneq ($(MODULE), nnrpdBinary)
+MODULE news-nnrpd $(NSROOT)/news/nnrpd libnspr inn base libsec-$(WHICHA)
+endif
+
+ifneq ($(MODULE), inndBinary)
+MODULE news-innd $(NSROOT)/news/innd libnspr inn base libsec-$(WHICHA)
+endif
+
+ifneq ($(MODULE), innBackEnds)
+MODULE news-backends $(NSROOT)/news/backends libnspr inn base libsec-$(WHICHA)
+endif
+
+ifneq ($(MODULE), innExpire)
+MODULE news-expire $(NSROOT)/news/expire libnspr inn
+endif
+
+ifneq ($(MODULE), innFrontEnds)
+MODULE news-frontends $(NSROOT)/news/frontends libnspr inn
+endif
+
+ifneq ($(MODULE), innInstall)
+MODULE news-install $(NSROOT)/news/newinst libnspr inn admin base
+endif
+
+ifneq ($(MODULE), innAdmin)
+MODULE news-admin $(NSROOT)/news/admin libnspr inn admin base
+endif
+
+ifneq ($(MODULE), innSiteFiles)
+MODULE news-site $(NSROOT)/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 $(NSROOT)/mc-icons
+endif
+
+ifneq ($(MODULE), cms-rogue)
+MODULE cms-rogue $(ROGUE)
+endif
+
+ifneq ($(MODULE), cms-cert)
+MODULE cms-cert $(MCOM_ROOT)/certsvc
+endif
+
+ifneq ($(MODULE), ns-config)
+MODULE ns-config $(MCOM_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