#
# 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

ifdef MOZ_THUNDERBIRD
MOZ_STANDALONE_NONBROWSER_XULAPP=1
endif
ifdef MOZ_STANDALONE_COMPOSER
MOZ_STANDALONE_NONBROWSER_XULAPP=1
endif

ifndef MOZ_STANDALONE_NONBROWSER_XULAPP
DIRS	= \
			directory \
			filepicker \
			find \
			search \
			related \
			prefwindow \
			shistory \
			console \
			updates \
			intl \
			resetPref \
			killAll \
			windowds \
			$(NULL)

ifndef MOZ_PHOENIX
DIRS += \
		autocomplete \
		bookmarks \
		download-manager \
		history \
		urlbarhistory \
		sidebar \
		$(NULL)
endif

ifeq ($(OS_ARCH),WINNT)
DIRS		+= urlwidget 
ifndef MOZ_PHOENIX
DIRS    += winhooks alerts
endif
endif

else

DIRS    = \
          intl \
	  find \
	  filepicker \
          download-manager \
          autocomplete \
          windowds \
          prefwindow \
          console \
          sidebar/public \
          history/public \
          shistory/public \
          bookmarks/public \
          $(NULL)

ifeq ($(OS_ARCH),WINNT) 
DIRS    += alerts winhooks
endif

endif

ifdef MOZ_ENABLE_XREMOTE
DIRS		+= xremote
endif

ifndef MOZ_STANDALONE_NONBROWSER_XULAPP
DIRS		+= build
else
DIRS		+= build2
endif

include $(topsrcdir)/config/rules.mk

