2000-03-04 04:10:58 +03:00
|
|
|
#!nmake
|
|
|
|
#
|
|
|
|
# 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):
|
|
|
|
|
|
|
|
IGNORE_MANIFEST=1
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Makefile to build the java portion of the java wrapper to mozilla
|
2001-04-03 01:18:06 +04:00
|
|
|
#// Assumes that all necesssary classes for webclient have already been
|
|
|
|
#// compiled into $(DIST)\classes
|
2000-03-04 04:10:58 +03:00
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Specify the depth of the current directory relative to the
|
|
|
|
#// root of NS
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
DEPTH= ..\..\..
|
|
|
|
|
|
|
|
# PENDING(edburns): find out where this should really get defined
|
|
|
|
JAVA_OR_NSJVM=1
|
|
|
|
NO_CAFE=1
|
|
|
|
|
|
|
|
include <$(DEPTH)\config\config.mak>
|
|
|
|
|
|
|
|
# for compatibility
|
|
|
|
include <$(DEPTH)\java\config\localdefs.mak>
|
|
|
|
|
|
|
|
JAR_WEBCLIENT_CLASSES = \
|
|
|
|
org\mozilla\webclient \
|
|
|
|
org\mozilla\webclient\wrapper_native \
|
|
|
|
org\mozilla\webclient\wrapper_native\win32 \
|
|
|
|
org\mozilla\webclient\test \
|
|
|
|
|
|
|
|
|
|
|
|
# org\mozilla\webclient\test org\mozilla\webclient\win32 org\mozilla\webclient\test\swing
|
|
|
|
|
|
|
|
!ifdef JAVA_OR_NSJVM
|
|
|
|
JDIRS = $(JAR_WEBCLIENT_CLASSES)
|
|
|
|
!endif
|
|
|
|
|
2001-04-03 01:18:06 +04:00
|
|
|
!ifdef PACKAGE_BUILD
|
|
|
|
PACKAGE_VER = 1_0
|
|
|
|
#PENDING(edburns): jar name should be defined elewhere!
|
|
|
|
WEBCLIENT_JAR_NAME=webclient_$(PACKAGE_VER).jar
|
|
|
|
PACKAGE_DIR = $(DIST)\javadev
|
|
|
|
PACKAGE_LIB = $(PACKAGE_DIR)\lib
|
|
|
|
!endif
|
2000-03-04 04:10:58 +03:00
|
|
|
|
|
|
|
JAVAC_PROG=$(JDKHOME)\bin\javac
|
|
|
|
|
|
|
|
export::
|
2000-06-05 02:16:36 +04:00
|
|
|
@echo +++ NOTE, you must have the org.w3c.dom classes in your classpath!
|
|
|
|
@echo +++ If you do not have org.w3c.dom classes, webclient will not build.
|
|
|
|
@echo +++ You can get the required dom classes at
|
2000-06-09 23:03:42 +04:00
|
|
|
@echo +++ http://www.mozilla.org/projects/blackwood/webclient/bin/m3/files.html
|
2000-06-05 02:16:36 +04:00
|
|
|
@echo +++
|
|
|
|
@echo +++ checking that org.mozilla.dom classes have been built...
|
|
|
|
if not exist $(MOZ_SRC)\mozilla\dist\classes\org\mozilla\dom\DOMAccessor.class \
|
|
|
|
stopbuild.exe
|
2000-03-04 04:10:58 +03:00
|
|
|
@echo +++ Checking that org.mozilla.util classes have been built...
|
|
|
|
if not exist $(MOZ_SRC)\mozilla\dist\classes\org\mozilla\util\Assert.class \
|
|
|
|
stopbuild.exe
|
|
|
|
|
2000-06-05 02:16:36 +04:00
|
|
|
!ifdef CLASSPATH
|
|
|
|
JAVAC_CLASSPATH=$(JAVAC_CLASSPATH);$(CLASSPATH)
|
|
|
|
!endif
|
|
|
|
|
2000-09-21 01:38:33 +04:00
|
|
|
include <$(DEPTH)\config\javarules.mak>
|
2000-03-04 04:10:58 +03:00
|
|
|
include <$(DEPTH)\config\rules.mak>
|
|
|
|
|
2001-04-03 01:18:06 +04:00
|
|
|
install:: jarEmUp
|
|
|
|
|
|
|
|
jarEmup:
|
|
|
|
!ifdef PACKAGE_BUILD
|
|
|
|
-mkdir $(DIST)\javadev
|
|
|
|
chmod 775 $(DIST)\javadev
|
|
|
|
-mkdir $(DIST)\javadev\lib
|
|
|
|
chmod 775 $(DIST)\javadev\lib
|
|
|
|
rm -f $(PACKAGE_LIB)\$(WEBCLIENT_JAR_NAME)
|
|
|
|
jar -cvfM0 $(PACKAGE_LIB)\$(WEBCLIENT_JAR_NAME) -C $(DIST)\..\classes org
|
|
|
|
!endif
|
|
|
|
|
|
|
|
clobber_all::
|
|
|
|
!ifdef PACKAGE_BUILD
|
|
|
|
rm -f $(PACKAGE_LIB)\$(WEBCLIENT_JAR_NAME)
|
|
|
|
!endif
|