edburns%acm.org d7503689df build_include_path_mods
git-svn-id: svn://10.0.0.236/trunk@235418 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-09 00:47:52 +00:00

139 lines
3.4 KiB
Makefile

#!gmake
#
# 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 = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
LIBRARY_NAME = pluglet
MODULE = pluglet
IS_COMPONENT = 1
ifeq ($(OS_ARCH),Linux)
INCLUDES := -I$(MOZ_JDKHOME)/include -I$(MOZ_JDKHOME)/include/linux $(INCLUDES) \
-I$(DEPTH)/widget/src/gtk -I../src_share
else
ifeq ($(OS_ARCH),WINNT)
INCLUDES := -I$(MOZ_JDKHOME)/include -I$(MOZ_JDKHOME)/include/win32 $(INCLUDES) \
-I../src_share -I.
else
ifeq ($(OS_ARCH),Darwin)
INCLUDES := -I$(MOZ_JDKHOME)/include $(INCLUDES) -I../src_share -I.
else
INCLUDES := -I$(MOZ_JDKHOME)/include -I$(MOZ_JDKHOME)/include/solaris $(INCLUDES) \
-I$(DEPTH)/widget/src/gtk -I../src_share
endif
endif
endif
CPPSRCS = \
PlugletEngine.cpp \
List.cpp \
Pluglet.cpp \
PlugletFactory.cpp \
PlugletInputStream.cpp \
PlugletLoader.cpp \
PlugletManager.cpp \
PlugletPeer.cpp \
PlugletStreamInfo.cpp \
PlugletStreamListener.cpp \
PlugletsDir.cpp \
Registry.cpp \
PlugletViewFactory.cpp \
$(NULL)
ifeq ($(OS_ARCH),Linux)
CPPSRCS += \
PlugletViewMotif.cpp \
$(NULL)
else
ifeq ($(OS_ARCH),WINNT)
CPPSRCS += \
PlugletViewWindows.cpp \
$(NULL)
else
ifeq ($(OS_ARCH),Darwin)
endif
endif
endif
XPIDLSRCS = \
iPlugletEngine.idl \
iPlugletManager.idl \
$(NULL)
CXXFLAGS := $(MOZ_TOOLKIT_REGISTRY_CFLAGS) -DMOZILLA_INTERNAL_API -D_REENTRANT -DOJI_DISABLE $(CXXFLAGS) -DFORCE_PR_LOG
ifeq ($(OS_ARCH),Darwin)
INCLUDES += -I$(MOZ_JDKHOME)/include -I.
DSO_LDOPTS += -L/System/Library/Frameworks/JavaVM.Framework/Libraries -ljvm_compat
DLL_SUFFIX = .jnilib
endif #DARWIN
INCLUDES += \
-I$(DIST)/include/string \
-I$(DIST)/include/plugin \
-I$(DIST)/include/xpcom \
-I$(DIST)/include/xpcom_obsolete \
$(NULL)
ifeq ($(OS_ARCH),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 -ljava -lawt -lXt -lgdk -lgtkxtbin -lgtksuperwin
DEFINES += -DDISABLE_JIT
endif # LINUX
ifeq ($(OS_ARCH),WINNT)
EXTRA_LIBS += \
$(JAVAHOME)/lib/jvm.lib \
$(XPCOM_LIBS) \
$(DIST)/lib/xpcom_compat.lib \
$(NSPR_LIBS) \
$(NULL)
endif # WINNT
ifeq (($OS_ARCH),SunOS)
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 -lthread
endif
include $(topsrcdir)/config/rules.mk
CCC += $(CXXFLAGS)