
#//------------------------------------------------------------------------
#//
#// Makefile to build 
#//
#//------------------------------------------------------------------------


#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH= ..\..\..


MODULE=oji
LIBRARY_NAME=oji
MODULE_NAME=nsCJVMManagerModule
REQUIRES	= xpcom \
		  string \
		  java \
		  js \
		  plugin \
		  caps \
		  pref \
		  js \
		  jar \
		  necko \
		  dom \
		  widget \
		  xpconnect \
		  windowwatcher \
		  layout \
		  docshell \
		  webBrowser_core \
		  intl \
		  gfx \
		  $(NULL)
include <$(DEPTH)/config/config.mak>

!ifdef MOZ_OJI

#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------

#//------------------------------------------------------------------------
#// 
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------

OBJS = .\$(OBJDIR)\jvmmgr.obj \
       .\$(OBJDIR)\nsJVMManager.obj \
       .\$(OBJDIR)\nsJVMPluginTagInfo.obj \
       .\$(OBJDIR)\ProxyJNI.obj \
       .\$(OBJDIR)\lcglue.obj \
       .\$(OBJDIR)\nsCSecurityContext.obj \
       .\$(OBJDIR)\nsCJVMManagerFactory.obj \
       .\$(OBJDIR)\nsCNullSecurityContext.obj \
       .\$(OBJDIR)\ProxyClassLoader.obj \
       .\$(OBJDIR)\scd.obj

#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------

#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools 
#//     (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------

LINCS= -I_jri
#
# For Win16 the following include directories are copied into 
# ns/dist/public/win16
#


!endif # MOZ_OJI

EXPORTS = jvmmgr.h \
          nsJVMManager.h \
          nsJVMPluginTagInfo.h

LLIBS = \
	$(LIBNSPR)			\
	$(DIST)\lib\xpcom.lib         \
	$(DIST)\lib\js3250.lib          \
	$(DIST)\lib\jsj3250.lib         \
	$(NULL)


#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>

LCFLAGS=$(LCFLAGS) ^
	$(JAVA_DEFINES) 

PUBLIC_HEADER_DIR=$(PUBLIC)\ojiimpl

#export::
#    $(MAKE_INSTALL) $(EXPORTS) $(PUBLIC_HEADER_DIR)

!ifdef MOZ_OJI
clobber::
    $(RM_R) _jri
!endif # MOZ_OJI
