1999-08-04 01:40:56 +04:00
|
|
|
#
|
1999-11-06 06:40:37 +03:00
|
|
|
# The contents of this file are subject to the Netscape 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/NPL/
|
1999-04-25 23:25:24 +04:00
|
|
|
#
|
1999-11-06 06:40:37 +03:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1999-04-25 23:25:24 +04:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:40:37 +03:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-08-04 01:40:56 +04:00
|
|
|
#
|
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
|
|
|
|
|
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) \
|
|
|
|
$(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 \
|
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
|
|
|
|
|
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
|
|
|
|
OS_LIBS += -lws2_32
|
|
|
|
endif
|
|
|
|
endif
|