#
# 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/
#
# 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.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): 
#

DEPTH		= ../../..
topsrcdir	= ../../..
srcdir		= .
VPATH		= .

include $(DEPTH)/config/autoconf.mk

MODULE		= necko
LIBRARY_NAME	= neckobase_s
REQUIRES	= xpcom \
		  string \
		  mimetype \
		  uconv \
		  locale \
		  pref \
		  $(NULL)

CPPSRCS		= \
		nsIOThreadPool.cpp \
		nsTransportUtils.cpp \
		nsAsyncStreamCopier.cpp \
		nsAsyncStreamListener.cpp \
		nsBufferedStreams.cpp \
		nsDirectoryIndexStream.cpp \
		nsDownloader.cpp \
		nsFileStreams.cpp \
		nsInputStreamChannel.cpp \
		nsInputStreamPump.cpp \
		nsStreamTransportService.cpp \
		nsIOService.cpp \
		nsLoadGroup.cpp \
		nsMIMEInputStream.cpp \
		nsProtocolProxyService.cpp \
		nsRequestObserverProxy.cpp \
		nsResumableEntityID.cpp \
		nsSimpleStreamListener.cpp \
		nsSimpleURI.cpp \
		nsStandardURL.cpp \
		nsSocketTransport2.cpp \
		nsSocketTransportService2.cpp \
		nsServerSocket.cpp \
		nsStreamListenerTee.cpp \
		nsStreamLoader.cpp \
		nsSyncStreamListener.cpp \
		nsUnicharStreamLoader.cpp \
		nsURIChecker.cpp \
		nsURLHelper.cpp \
		nsURLParsers.cpp \
		$(NULL)

ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
	CPPSRCS += nsURLHelperOS2.cpp
else
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
	CPPSRCS += nsURLHelperWin.cpp
	CPPSRCS += nsNativeConnectionHelper.cpp
	CPPSRCS += nsAutodialWin.cpp
else
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
	CPPSRCS += nsURLHelperOSX.cpp
else
	CPPSRCS += nsURLHelperUnix.cpp
endif
endif
endif

EXTRA_COMPONENTS = \
		$(srcdir)/nsProxyAutoConfig.js \
		$(NULL)

# we don't want the shared lib, but we want to force the creation of a
# static lib.
FORCE_STATIC_LIB = 1

include $(topsrcdir)/config/rules.mk

