#
# 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 Communicator client code, 
# released March 31, 1998. 
#
# The Initial Developer of the Original Code is Netscape Communications 
# Corporation.  Portions created by Netscape are
# Copyright (C) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): 

DEPTH=..\..\..
REQUIRES = \
	xpcom \
	string \
	necko \
	webBrowser_core \
	widget \
	docshell \
	dom \
	uriloader \
	embed_base \
	webshell \
	shistory \
	pref \
	profile \
	find \
	gfx \
	windowwatcher \
	layout \
	history \
	helperAppDlg \
	content \
	webbrowserpersist \
	$(NULL)

DIRS=components \
     $(NULL)

MAKE_OBJ_TYPE   = EXE

MODULE          = testembed
PROGRAM         = .\$(OBJDIR)\$(MODULE).exe
RESFILE         = $(MODULE).res

LINCS = -Icomponents \
        $(NULL)

OBJS =                           \
    .\$(OBJDIR)\TestEmbed.obj     \
#    .\$(OBJDIR)\nsIObserServ.obj     \
    .\$(OBJDIR)\BrowserFrm.obj   \
    .\$(OBJDIR)\BrowserFrameGlue.obj   \
    .\$(OBJDIR)\BrowserView.obj \
    .\$(OBJDIR)\BrowserImpl.obj \
    .\$(OBJDIR)\BrowserImplWebPrgrsLstnr.obj \
    .\$(OBJDIR)\BrowserImplHistoryLstnr.obj \
    .\$(OBJDIR)\BrowserImplCtxMenuLstnr.obj \
    .\$(OBJDIR)\Dialogs.obj       \
    .\$(OBJDIR)\ProfileMgr.obj \
    .\$(OBJDIR)\ProfilesDlg.obj \
    .\$(OBJDIR)\winEmbedFileLocProvider.obj \
    .\$(OBJDIR)\MostRecentUrls.obj \
    .\$(OBJDIR)\PrintProgressDialog.obj       \
    .\$(OBJDIR)\Preferences.obj \
    .\$(OBJDIR)\StdAfx.obj       \
    .\$(OBJDIR)\UrlDialog.obj       \
    .\$(OBJDIR)\QaUtils.obj \
    .\$(OBJDIR)\Tests.obj \
    .\$(OBJDIR)\nsirequest.obj \
    .\$(OBJDIR)\nsihistory.obj \
    .\$(OBJDIR)\nsiwebnav.obj \
    .\$(OBJDIR)\nsiDirServ.obj \
    .\$(OBJDIR)\domwindow.obj \
    .\$(OBJDIR)\selection.obj \
    .\$(OBJDIR)\nsProfile.obj \
    $(NULL)

LLIBS=					\
    $(DIST)\lib\baseembed_s.lib		\
    $(DIST)\lib\gkgfx.lib		\
    $(DIST)\lib\xpcom.lib		\
    $(DIST)\lib\testEmbedComponents.lib  \
    $(LIBNSPR)				\
    $(NULL)

LCFLAGS = /D "_AFXDLL" /D "USE_SINGLE_SIGN_ON"
LLFLAGS = -SUBSYSTEM:windows

include <$(DEPTH)\config\rules.mak>

libs:: $(PROGRAM)
    $(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
    $(MAKE_INSTALL) testembed.htm $(DIST)\bin

clobber_all::
    $(RM) $(DIST)\bin\$(MODULE).exe
    $(RM) $(DIST)\bin\testembed.htm

