home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / config / common.mk < prev    next >
Encoding:
Text File  |  1998-04-08  |  4.6 KB  |  139 lines

  1. #
  2. # The contents of this file are subject to the Netscape Public License
  3. # Version 1.0 (the "NPL"); you may not use this file except in
  4. # compliance with the NPL.  You may obtain a copy of the NPL at
  5. # http://www.mozilla.org/NPL/
  6. #
  7. # Software distributed under the NPL is distributed on an "AS IS" basis,
  8. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  9. # for the specific language governing rights and limitations under the
  10. # NPL.
  11. #
  12. # The Initial Developer of this code under the NPL is Netscape
  13. # Communications Corporation.  Portions created by Netscape are
  14. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  15. # Reserved.
  16. #
  17.  
  18. ######################################################################
  19. # Cross-platform defines used on all platforms (in theory)
  20. ######################################################################
  21.  
  22. #
  23. # The VERSION_NUMBER is suffixed onto the end of the DLLs we ship.
  24. # Since the longest of these is 5 characters without the suffix,
  25. # be sure to not set VERSION_NUMBER to anything longer than 3 
  26. # characters for Win16's sake.
  27. #
  28. # Also... If you change this value, there are several other places
  29. # you'll need to change (because they're not reached by this 
  30. # variable): 
  31. #    sun-java/nsjava/nsjava32.def
  32. #    sun-java/nsjava/nsjava16.def
  33. #    sun-java/classsrc/sun/audio/AudioDevice.java
  34. #    sun-java/classsrc/sun/awt/windows/WToolkit.java
  35. #
  36. VERSION_NUMBER        = 40
  37.  
  38. ZIP_NAME        = java_$(VERSION_NUMBER)
  39. JAR_NAME        = java$(VERSION_NUMBER).jar
  40.  
  41. # XXX obsolete
  42. WIN_ZIP_NAME        = $(ZIP_NAME).win
  43. MAC_ZIP_NAME        = $(ZIP_NAME).mac
  44. UNIX_ZIP_NAME        = $(ZIP_NAME).x
  45. STAND_ALONE_ZIP_NAME    = java_sa.zip
  46.  
  47. ######################################################################
  48. # Cross-Platform Java Stuff
  49. ######################################################################
  50. # java interpreter
  51.  
  52. # get class files from the directory they are compiled to
  53. JAVA_CLASSPATH        = $(JAVAC_ZIP)$(PATH_SEPARATOR)$(JAVA_DESTPATH)
  54.  
  55. JAVA_FLAGS        = -classpath $(JAVA_CLASSPATH) -ms8m
  56. JAVA            = $(JAVA_PROG) $(JAVA_FLAGS) 
  57.  
  58. #
  59. # NOTE: If a new DLL is being added to this define you will have to update
  60. #       ns/sun-java/include/javadefs.h in order not to break win16.
  61. #
  62. JAVA_DEFINES        = -DJAR_NAME=\"$(JAR_NAME)\" -DJRTDLL=\"$(JRTDLL)\" -DMMDLL=\"$(MMDLL)\" \
  63.               -DAWTDLL=\"$(AWTDLL)\" -DJITDLL=\"$(JITDLL)\" -DJPWDLL=\"$(JPWDLL)\"
  64.  
  65. ######################################################################
  66. # javac
  67.  
  68. #
  69. # java wants '-ms8m' and kaffe wants '-ms 8m', so this needs to be
  70. # overridable.
  71. #
  72. JINT_FLAGS        = -ms8m
  73.  
  74. # to run the compiler in the interpreter
  75. JAVAC_PROG        = $(JINT_FLAGS) $(PDJAVA_FLAGS) -classpath $(JAVAC_ZIP) sun.tools.javac.Main
  76. JAVAC            = $(JAVA_PROG) $(JAVAC_PROG) $(JAVAC_FLAGS)
  77.  
  78. # std set of options passed to the compiler
  79. JAVAC_FLAGS        = -classpath $(JAVAC_CLASSPATH) $(JAVAC_OPTIMIZER) -d $(JAVA_DESTPATH)
  80.  
  81. #
  82. # The canonical Java classpath is:
  83. # JAVA_DESTPATH, JAVA_SOURCEPATH, JAVA_LIBS
  84. # appropriately delimited, in that order
  85. #
  86. JAVAC_CLASSPATH        = $(JAVA_DESTPATH)$(PATH_SEPARATOR)$(JAVA_SOURCEPATH)
  87.  
  88. ######################################################################
  89. # javadoc
  90.  
  91. # Rules to build java .html files from java source files
  92.  
  93. JAVADOC_PROG        = $(JAVA) sun.tools.javadoc.Main
  94. JAVADOC_FLAGS        = -classpath $(JAVAC_CLASSPATH)
  95. JAVADOC            = $(JAVADOC_PROG) $(JAVADOC_FLAGS)
  96.  
  97. ######################################################################
  98. # javah
  99.  
  100. JAVAH_FLAGS        = -classpath $(JAVA_DESTPATH)
  101. JAVAH            = $(JAVAH_PROG) $(JAVAH_FLAGS)
  102.  
  103. ######################################################################
  104. # jmc
  105.  
  106. JMCSRCDIR        = $(XPDIST)/_jmc
  107. JMC_PROG        = $(JAVA) netscape.tools.jmc.Main
  108. JMC_CLASSPATH        = $(JMCSRCDIR)$(PATH_SEPARATOR)$(JAVAC_CLASSPATH)
  109. JMC_FLAGS        = -classpath $(JMC_CLASSPATH) -verbose
  110. JMC            = $(JMC_PROG) $(JMC_FLAGS)
  111.  
  112. ######################################################################
  113. # zip
  114.  
  115. ZIP            = $(ZIP_PROG) $(ZIP_FLAGS)
  116.  
  117. ######################################################################
  118. # idl2java
  119.  
  120. ORBTOOLS        = $(DEPTH)/modules/iiop/tools/orbtools.zip
  121. ORB_CLASSPATH        = $(ORBTOOLS)$(PATH_SEPARATOR)$(JAVA_CLASSPATH)
  122.  
  123. IDL2JAVA_PROG        = $(JAVA_PROG)
  124. IDL2JAVA_FLAGS        = -classpath $(ORB_CLASSPATH) pomoco.tools.idl2java
  125. IDL2JAVA        = $(IDL2JAVA_PROG) $(IDL2JAVA_FLAGS)
  126.  
  127. ######################################################################
  128. # lex and yacc
  129.  
  130. JAVALEX_PROG        = $(JAVA_PROG) -classpath $(ORB_CLASSPATH) sbktech.tools.jax.driver
  131. JAVALEX_FLAGS        =
  132. JAVALEX            = $(JAVALEX_PROG) $(JAVALEX_FLAGS)
  133.  
  134. JAVACUP_PROG        = $(JAVA_PROG) -classpath $(ORB_CLASSPATH) java_cup.Main
  135. JAVACUP_FLAGS        =
  136. JAVACUP            = $(JAVACUP_PROG) $(JAVACUP_FLAGS)
  137.  
  138.