1999-08-03 21:40:56 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-04-25 19:25:24 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00: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 19:25:24 +00:00
|
|
|
#
|
1999-11-06 03:40:37 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-18 22:01:16 +00: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 03:40:37 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00: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-03 21:40:56 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1999-04-25 19:25:24 +00:00
|
|
|
|
1999-08-03 21:40:56 +00:00
|
|
|
DEPTH = ../..
|
1999-04-25 19:25:24 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
1999-08-03 21:40:56 +00:00
|
|
|
MODULE = necko
|
|
|
|
LIBRARY_NAME = necko
|
2001-04-28 19:48:12 +00:00
|
|
|
EXPORT_LIBRARY = 1
|
1999-08-03 21:40:56 +00:00
|
|
|
IS_COMPONENT = 1
|
2005-11-12 18:17:19 +00:00
|
|
|
MODULE_NAME = necko
|
2002-12-28 01:15:07 +00:00
|
|
|
GRE_MODULE = 1
|
2004-12-09 19:28:35 +00:00
|
|
|
LIBXUL_LIBRARY = 1
|
2002-12-28 01:15:07 +00:00
|
|
|
|
2004-01-07 13:37:00 +00:00
|
|
|
PACKAGE_FILE = necko.pkg
|
|
|
|
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
PACKAGE_FILE += necko-tests.pkg
|
|
|
|
endif
|
|
|
|
|
2001-09-18 13:41:47 +00:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
nkcache \
|
|
|
|
pref \
|
|
|
|
mimetype \
|
|
|
|
locale \
|
|
|
|
intl \
|
2001-10-03 00:43:30 +00:00
|
|
|
uconv \
|
2003-01-17 23:43:33 +00:00
|
|
|
unicharutil \
|
2001-09-18 13:41:47 +00:00
|
|
|
$(ZLIB_REQUIRES) \
|
|
|
|
$(NULL)
|
1999-04-25 19:25:24 +00:00
|
|
|
|
1999-09-30 21:22:48 +00:00
|
|
|
CPPSRCS = nsNetModule.cpp
|
2001-01-23 22:10:34 +00:00
|
|
|
EXPORTS = nsNetCID.h
|
1999-04-25 19:25:24 +00:00
|
|
|
|
1999-08-03 21:40:56 +00:00
|
|
|
SHARED_LIBRARY_LIBS = \
|
2006-02-13 20:35:56 +00:00
|
|
|
../base/src/$(LIB_PREFIX)neckobase_s.$(LIB_SUFFIX) \
|
|
|
|
../dns/src/$(LIB_PREFIX)neckodns_s.$(LIB_SUFFIX) \
|
|
|
|
../socket/base/$(LIB_PREFIX)neckosocket_s.$(LIB_SUFFIX) \
|
|
|
|
../streamconv/src/$(LIB_PREFIX)nkconv_s.$(LIB_SUFFIX) \
|
|
|
|
../streamconv/converters/$(LIB_PREFIX)nkcnvts_s.$(LIB_SUFFIX) \
|
|
|
|
../mime/src/$(LIB_PREFIX)nkmime_s.$(LIB_SUFFIX) \
|
|
|
|
../cache/src/$(LIB_PREFIX)nkcache_s.$(LIB_SUFFIX) \
|
|
|
|
../protocol/about/src/$(LIB_PREFIX)nkabout_s.$(LIB_SUFFIX) \
|
2005-11-12 18:46:42 +00:00
|
|
|
$(foreach d,$(filter-out about,$(NECKO_PROTOCOLS)), \
|
2006-02-13 20:35:56 +00:00
|
|
|
../protocol/$(d)/src/$(LIB_PREFIX)nk$(d)_s.$(LIB_SUFFIX)) \
|
1999-08-03 21:40:56 +00:00
|
|
|
$(NULL)
|
1999-04-25 19:25:24 +00:00
|
|
|
|
2006-05-02 18:08:55 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
../system/win32/$(LIB_PREFIX)neckosystem_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
1999-08-03 21:40:56 +00:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../base/src \
|
|
|
|
-I$(srcdir)/../dns/src \
|
1999-08-24 04:54:03 +00:00
|
|
|
-I$(srcdir)/../socket/base \
|
2000-05-06 09:15:56 +00:00
|
|
|
-I$(srcdir)/../streamconv/src \
|
|
|
|
-I$(srcdir)/../streamconv/converters \
|
|
|
|
-I$(srcdir)/../mime/src \
|
2002-09-19 18:29:56 +00:00
|
|
|
-I$(srcdir)/../cache/src \
|
2000-05-06 09:15:56 +00:00
|
|
|
-I$(srcdir)/../protocol/about/src \
|
2005-11-12 18:46:42 +00:00
|
|
|
$(foreach d,$(filter-out about,$(NECKO_PROTOCOLS)), \
|
2006-02-13 20:35:56 +00:00
|
|
|
-I$(srcdir)/../protocol/$(d)/src) \
|
1999-08-03 21:40:56 +00:00
|
|
|
$(NULL)
|
1999-06-09 20:39:08 +00:00
|
|
|
|
2006-05-02 18:08:55 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../system/win32
|
|
|
|
endif
|
|
|
|
|
2004-07-19 04:57:02 +00:00
|
|
|
ifdef NECKO_COOKIES
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2006-02-13 20:35:56 +00:00
|
|
|
../cookie/src/$(LIB_PREFIX)neckocookie_s.$(LIB_SUFFIX) \
|
2004-07-19 04:57:02 +00:00
|
|
|
$(NULL)
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../cookie/src
|
|
|
|
endif
|
|
|
|
|
1999-08-03 21:40:56 +00:00
|
|
|
EXTRA_DSO_LDOPTS = \
|
2001-12-18 09:14:29 +00:00
|
|
|
$(LIBS_DIR) \
|
2001-12-18 22:19:21 +00:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2001-10-22 20:44:02 +00:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2003-01-03 08:58:59 +00:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2000-05-20 04:29:55 +00:00
|
|
|
$(ZLIB_LIBS) \
|
1999-08-03 21:40:56 +00:00
|
|
|
$(NULL)
|
1999-04-25 19:25:24 +00:00
|
|
|
|
2002-10-08 03:12:32 +00:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2003-05-21 21:59:55 +00:00
|
|
|
ifeq ($(OS_ARCH),AIX)
|
|
|
|
EXTRA_DSO_LDOPTS += -lodm -lcfg
|
|
|
|
endif
|
|
|
|
|
1999-06-27 05:47:04 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2003-01-30 05:53:29 +00:00
|
|
|
|
2003-03-08 05:57:15 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2004-07-15 21:32:42 +00:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
|
2003-03-08 05:57:15 +00:00
|
|
|
endif
|
2005-04-05 17:40:32 +00:00
|
|
|
|
|
|
|
DEFINES += -DIMPL_NS_NET
|