2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is mozilla.org code.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
20 # the Initial Developer. All Rights Reserved.
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 INCLUDED_COMMON_MK
= 1
40 ######################################################################
41 # Cross-platform defines used on all platforms (in theory)
42 ######################################################################
45 # The VERSION_NUMBER is suffixed onto the end of the DLLs we ship.
46 # Since the longest of these is 5 characters without the suffix,
47 # be sure to not set VERSION_NUMBER to anything longer than 3
48 # characters for Win16's sake.
50 # Also... If you change this value, there are several other places
51 # you'll need to change (because they're not reached by this
53 # sun-java/nsjava/nsjava32.def
54 # sun-java/nsjava/nsjava16.def
55 # sun-java/classsrc/sun/audio/AudioDevice.java
56 # sun-java/classsrc/sun/awt/windows/WToolkit.java
60 # jar for core java classes:
61 JAR_NAME
= java
$(VERSION_NUMBER
).jar
63 # jar for navigator-specific java code:
64 NAV_JAR_NAME
= nav
$(VERSION_NUMBER
).jar
66 ######################################################################
67 # Cross-Platform Java Stuff
68 ######################################################################
71 # get class files from the directory they are compiled to
72 JAVA_CLASSPATH
= $(JAVAC_ZIP
)$(PATH_SEPARATOR
)$(JAVA_DESTPATH
)
74 JAVA_FLAGS
= -classpath
$(JAVA_CLASSPATH
) -ms8m
75 JAVA
= $(JAVA_PROG
) $(JAVA_FLAGS
)
78 # NOTE: If a new DLL is being added to this define you will have to update
79 # ns/sun-java/include/javadefs.h in order not to break win16.
81 JAVA_DEFINES
= -DJAR_NAME
=\"$(JAR_NAME
)\" -DJRTDLL
=\"$(JRTDLL
)\" -DMMDLL
=\"$(MMDLL
)\" \
82 -DAWTDLL
=\"$(AWTDLL
)\" -DJITDLL
=\"$(JITDLL
)\" -DJPWDLL
=\"$(JPWDLL
)\"
84 ######################################################################
88 # java wants '-ms8m' and kaffe wants '-ms 8m', so this needs to be
93 # to run the compiler in the interpreter
94 JAVAC_PROG
= $(JINT_FLAGS
) $(PDJAVA_FLAGS
) -classpath
$(JAVAC_ZIP
) sun.tools.javac.Main
95 JAVAC
= $(JAVA_PROG
) $(JAVAC_PROG
) $(JAVAC_FLAGS
)
97 # std set of options passed to the compiler
98 JAVAC_FLAGS
= -classpath
$(JAVAC_CLASSPATH
) $(JAVAC_OPTIMIZER
) -d
$(JAVA_DESTPATH
)
101 # The canonical Java classpath is:
102 # JAVA_DESTPATH, JAVA_SOURCEPATH, JAVA_LIBS
104 # appropriately delimited, in that order
106 JAVAC_CLASSPATH
= $(JAVAC_ZIP
)$(PATH_SEPARATOR
)$(JAVA_DESTPATH
)$(PATH_SEPARATOR
)$(JAVA_SOURCEPATH
)
108 ######################################################################
111 # Rules to build java .html files from java source files
113 JAVADOC_PROG
= $(JAVA
) sun.tools.javadoc.Main
114 JAVADOC_FLAGS
= -classpath
$(JAVAC_CLASSPATH
)
115 JAVADOC
= $(JAVADOC_PROG
) $(JAVADOC_FLAGS
)
117 ######################################################################
120 JAVAH_FLAGS
= -classpath
$(JAVAC_ZIP
)$(PATH_SEPARATOR
)$(JAVA_DESTPATH
)
121 JAVAH
= $(JAVAH_PROG
) $(JAVAH_FLAGS
)
123 ######################################################################
126 JMCSRCDIR
= $(DIST
)/_jmc
127 JMC_PROG
= $(JAVA
) netscape.tools.jmc.Main
128 JMC_CLASSPATH
= $(JMCSRCDIR
)$(PATH_SEPARATOR
)$(JAVAC_CLASSPATH
)
129 JMC_FLAGS
= -classpath
$(JMC_CLASSPATH
) -verbose
130 JMC
= $(JMC_PROG
) $(JMC_FLAGS
)
132 ######################################################################
135 ZIP
= $(ZIP_PROG
) $(ZIP_FLAGS
)
137 ######################################################################
140 ORBTOOLS
= $(DEPTH
)/modules
/iiop
/tools
/orbtools.zip
141 ORB_CLASSPATH
= $(ORBTOOLS
)$(PATH_SEPARATOR
)$(JAVA_CLASSPATH
)
143 IDL2JAVA_PROG
= $(JAVA_PROG
)
144 IDL2JAVA_FLAGS
= -classpath
$(ORB_CLASSPATH
) pomoco.tools.idl2java
145 IDL2JAVA
= $(IDL2JAVA_PROG
) $(IDL2JAVA_FLAGS
)
147 ######################################################################
150 JAVALEX_PROG
= $(JAVA_PROG
) -classpath
$(ORB_CLASSPATH
) sbktech.tools.jax.driver
152 JAVALEX
= $(JAVALEX_PROG
) $(JAVALEX_FLAGS
)
154 JAVACUP_PROG
= $(JAVA_PROG
) -classpath
$(ORB_CLASSPATH
) java_cup.Main
156 JAVACUP
= $(JAVACUP_PROG
) $(JAVACUP_FLAGS
)