# 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 mozilla.org code. # # The Initial Developer of the Original Code is Sun Microsystems, # Inc. Portions created by Sun are # Copyright (C) 1999 Sun Microsystems, Inc. All # Rights Reserved. # # Contributor(s): DEPTH = ../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk JAVAHOME = $(MOZ_JDKHOME) MODULE = javadom LIBRARY_NAME = javadom IS_COMPONENT = 1 REQUIRES = xpcom \ string \ embed_base \ webBrowser_core \ webshell \ windowwatcher \ profile \ necko \ docshell \ dom \ layout \ widget \ uriloader \ shistory \ webbrowserpersist \ content \ gfx \ $(NULL) CPPSRCS = \ nsJavaDOMImpl.cpp EXTRA_LIBS += \ $(XPCOM_LIBS) \ $(NSPR_LIBS) \ $(NULL) include $(topsrcdir)/config/config.mk ifeq ($(OS_ARCH),Darwin) INCLUDES := -I$(MOZ_JDKHOME)/include -I. $(INCLUDES) DSO_LDOPTS += -framework JavaVM -flat_namespace -undefined suppress -L/System/Library/Frameworks/JavaVM.Framework/Libraries -ljvm_compat DLL_SUFFIX = .dylib endif #DARWIN ifeq ($(OS_ARCH),Linux) INCLUDES += -I$(JAVAHOME)/include -I$(JAVAHOME)/include/linux DSO_LDOPTS += \ -L$(JAVAHOME)/jre/lib/i386 \ -L$(JAVAHOME)/jre/lib/i386/client \ -L$(JAVAHOME)/jre/lib/i386/native_threads \ -Xlinker -rpath $(JAVAHOME)/jre/lib/i386 \ -Xlinker -rpath $(JAVAHOME)/jre/lib/i386/client \ -Xlinker -rpath $(JAVAHOME)/jre/lib/i386/native_threads \ -ljvm -lhpi DEFINES += -DDISABLE_JIT endif # LINUX ifeq ($(OS_ARCH),WINNT) INCLUDES := -I$(MOZ_JDKHOME)/include -I$(MOZ_JDKHOME)/include/win32 -I. $(INCLUDES) EXTRA_LIBS += \ $(JAVAHOME)/lib/jvm.lib \ $(NULL) endif # WINNT ifeq (($OS_ARCH),SunOS) INCLUDES += -I$(JAVAHOME)/include -I$(JAVAHOME)/include/solaris DSO_LDOPTS += \ -L$(JAVAHOME)/jre/lib/sparc \ -L$(JAVAHOME)/jre/lib/sparc/classic \ -L$(JAVAHOME)/jre/lib/sparc/native_threads \ -R$(JAVAHOME)/jre/lib/sparc \ -R$(JAVAHOME)/jre/lib/sparc/classic \ -R$(JAVAHOME)/jre/lib/sparc/native_threads \ -ljvm -lhpi endif # EXPORTS = \ nsIJavaDOM.h EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) include $(topsrcdir)/config/rules.mk DEFINES += -DMOZILLA_INTERNAL_API -DFORCE_PR_LOG edburns: @echo $(XPCOM_LIBS) @echo libs: $(EXTRA_LIBS)