# # 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. # # The Original Code is the Mozilla browser. # # The Initial Developer of the Original Code is Netscape # Communications, Inc. Portions created by Netscape are # Copyright (C) 2001, Mozilla. All Rights Reserved. # # Contributor(s): DEPTH = ../../../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk LIBRARY_NAME = mozctl RESFILE = MozillaControl.res DEFFILE = L_mozctl.def EXPORT_LIBRARY = 1 FORCE_SHARED_LIB= 1 GRE_MODULE = 1 REQUIRES = \ xpcom \ string \ js \ widget \ gfx \ view \ necko \ pref \ webbrwsr \ docshell \ dom \ uriloader \ layout \ content \ editor \ webshell \ profile \ embed_base \ necko \ windowwatcher \ webbrowserpersist \ helperAppDlg \ exthandler \ mimetype \ composer \ commandhandler \ ax_common \ $(NULL) CPPSRCS = \ StdAfx.cpp \ MozillaControl.cpp \ MozillaBrowser.cpp \ WebBrowserContainer.cpp \ IEHtmlDocument.cpp \ DropTarget.cpp \ PropertyDlg.cpp \ PromptService.cpp \ HelperAppDlg.cpp \ WindowCreator.cpp \ $(NULL) EXTRA_DSO_LDOPTS = \ $(DIST)/lib/$(LIB_PREFIX)gkgfx.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)embed_base_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)ax_common_s.$(LIB_SUFFIX) \ $(MOZ_UNICHARUTIL_LIBS) \ $(XPCOM_LIBS) \ $(NSPR_LIBS) \ $(NULL) OS_LIBS += \ comdlg32.lib \ ole32.lib \ oleaut32.lib \ uuid.lib \ shell32.lib \ $(NULL) MIDL_GENERATED_FILES = MozillaControl_i.c MozillaControl.h GARBAGE += $(DEFFILE) $(MIDL_GENERATED_FILES) done_gen include $(topsrcdir)/config/rules.mk CXXFLAGS += /D "WIN32" /GX /U "ClientWallet" LDFLAGS += -SUBSYSTEM:windows /DLL ifdef MOZ_NO_DEBUG_RTL DEFINES += -DMOZ_NO_DEBUG_RTL endif DEFINES += -DMOZ_ACTIVEX_CONTROL_SUPPORT LOCAL_INCLUDES += -I. export:: $(DEFFILE) done_gen $(DEFFILE): mkctldef.sh $(srcdir)/mkctldef.sh $@ done_gen: MozillaControl.idl $(MIDL) $(MIDL_FLAGS) /Oicf /h MozillaControl.h /iid MozillaControl_i.c $(srcdir)/MozillaControl.idl touch $@ $(MIDL_GENERATED_FILES): done_gen