1999-08-04 01:40:56 +04:00
|
|
|
#
|
2004-04-19 02:01:16 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-04-25 23:25:24 +04:00
|
|
|
#
|
2004-04-19 02:01:16 +04:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
1999-04-25 23:25:24 +04:00
|
|
|
#
|
1999-11-06 06:40:37 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-19 02:01:16 +04:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-11-06 06:40:37 +03:00
|
|
|
#
|
2004-04-19 02:01:16 +04:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
1999-08-04 01:40:56 +04:00
|
|
|
#
|
2004-04-19 02:01:16 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1999-04-25 23:25:24 +04:00
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
DEPTH = ../..
|
1999-04-25 23:25:24 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
MODULE = necko
|
|
|
|
LIBRARY_NAME = necko
|
2001-04-28 23:48:12 +04:00
|
|
|
EXPORT_LIBRARY = 1
|
1999-08-04 01:40:56 +04:00
|
|
|
IS_COMPONENT = 1
|
2001-06-21 00:21:49 +04:00
|
|
|
MODULE_NAME = necko_core_and_primary_protocols
|
2002-12-28 04:15:07 +03:00
|
|
|
GRE_MODULE = 1
|
|
|
|
|
2004-01-07 16:37:00 +03:00
|
|
|
PACKAGE_FILE = necko.pkg
|
|
|
|
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
PACKAGE_FILE += necko-tests.pkg
|
|
|
|
endif
|
|
|
|
|
2001-09-18 17:41:47 +04:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
nkcache \
|
|
|
|
pref \
|
|
|
|
mimetype \
|
|
|
|
util \
|
|
|
|
jar \
|
|
|
|
locale \
|
|
|
|
intl \
|
2001-10-03 04:43:30 +04:00
|
|
|
uconv \
|
2003-01-18 02:43:33 +03:00
|
|
|
unicharutil \
|
2001-12-05 04:09:38 +03:00
|
|
|
caps \
|
2001-09-18 17:41:47 +04:00
|
|
|
$(ZLIB_REQUIRES) \
|
|
|
|
$(NULL)
|
1999-04-25 23:25:24 +04:00
|
|
|
|
1999-10-01 01:22:48 +04:00
|
|
|
CPPSRCS = nsNetModule.cpp
|
2001-01-24 01:10:34 +03:00
|
|
|
EXPORTS = nsNetCID.h
|
1999-04-25 23:25:24 +04:00
|
|
|
|
2003-04-23 07:47:43 +04:00
|
|
|
# core necko protocols (about:blank is mandatory)
|
|
|
|
PROTOCOLS = $(filter file ftp http jar res,$(NECKO_PROTOCOLS))
|
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
SHARED_LIBRARY_LIBS = \
|
2001-12-15 02:49:04 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)neckobase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)neckodns_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)neckosocket_s.$(LIB_SUFFIX) \
|
2003-10-11 03:08:01 +04:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)neckocookie_s.$(LIB_SUFFIX) \
|
2001-12-15 02:49:04 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)nkconv_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)nkcnvts_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)nkmime_s.$(LIB_SUFFIX) \
|
2002-09-19 22:29:56 +04:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)nkcache_s.$(LIB_SUFFIX) \
|
2003-04-23 07:47:43 +04:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)nkabout_s.$(LIB_SUFFIX) \
|
|
|
|
$(foreach d,$(PROTOCOLS), \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)nk${d}_s.$(LIB_SUFFIX)) \
|
1999-08-04 01:40:56 +04:00
|
|
|
$(NULL)
|
1999-04-25 23:25:24 +04:00
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../base/src \
|
|
|
|
-I$(srcdir)/../dns/src \
|
1999-08-24 08:54:03 +04:00
|
|
|
-I$(srcdir)/../socket/base \
|
2003-10-11 03:08:01 +04:00
|
|
|
-I$(srcdir)/../cookie/src \
|
2000-05-06 13:15:56 +04:00
|
|
|
-I$(srcdir)/../streamconv/src \
|
|
|
|
-I$(srcdir)/../streamconv/converters \
|
|
|
|
-I$(srcdir)/../mime/src \
|
2002-09-19 22:29:56 +04:00
|
|
|
-I$(srcdir)/../cache/src \
|
2000-05-06 13:15:56 +04:00
|
|
|
-I$(srcdir)/../protocol/about/src \
|
2003-04-23 07:47:43 +04:00
|
|
|
$(foreach d,$(PROTOCOLS), \
|
|
|
|
-I$(srcdir)/../protocol/${d}/src) \
|
1999-08-04 01:40:56 +04:00
|
|
|
$(NULL)
|
1999-06-10 00:39:08 +04:00
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
ifdef MOZ_PERF_METRICS
|
|
|
|
EXTRA_DSO_LIBS += mozutil_s
|
|
|
|
endif
|
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
EXTRA_DSO_LDOPTS = \
|
2001-12-18 12:14:29 +03:00
|
|
|
$(LIBS_DIR) \
|
2001-12-19 01:19:21 +03:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2001-10-23 00:44:02 +04:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2003-01-03 11:58:59 +03:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2000-05-20 08:29:55 +04:00
|
|
|
$(ZLIB_LIBS) \
|
1999-08-04 01:40:56 +04:00
|
|
|
$(NULL)
|
1999-04-25 23:25:24 +04:00
|
|
|
|
2002-10-08 07:12:32 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2003-05-22 01:59:55 +04:00
|
|
|
ifeq ($(OS_ARCH),AIX)
|
|
|
|
EXTRA_DSO_LDOPTS += -lodm -lcfg
|
|
|
|
endif
|
|
|
|
|
1999-06-27 09:47:04 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2003-01-30 08:53:29 +03:00
|
|
|
|
2003-03-08 08:57:15 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
ifdef GNU_CC
|
2004-03-23 12:44:22 +03:00
|
|
|
OS_LIBS += -lwsock32
|
2003-03-08 08:57:15 +03:00
|
|
|
endif
|
|
|
|
endif
|