home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / js / jsj / classes / Makefile
Encoding:
Makefile  |  1998-04-08  |  1.8 KB  |  66 lines

  1. #!gmake
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18.  
  19.  
  20. DEPTH        = ../../..
  21.  
  22. MODULE        = java
  23.  
  24. #
  25. # the idea is that the install phase for those modules will
  26. # make their own signed jar files
  27. # there are some exceptions here that we deal with
  28. # stuff in modules and in ns/js/jsj
  29. #
  30. JMODS        = netscape/javascript netscape/javascript/adapters
  31.  
  32. #
  33. # JDIRS is dependant on JAVA_DESTPATH in config/rules.m[a]k. 
  34. # Be sure to touch that directory if you add a new directory to
  35. # JDIRS, or else it will not build. FIXME
  36. #
  37. JDIRS        = $(JMODS)
  38.  
  39. JAR_JSJ        = jsj10.jar
  40. JAR_JSJ_CLASSES    = $(JMODS)  
  41.  
  42. #
  43. # jars to build at install time
  44. #
  45. JARS        = $(JAR_JSJ)
  46.  
  47. include $(DEPTH)/config/rules.mk
  48.  
  49. JAVA_SOURCEPATH    = $(DEPTH)/js/jsj/classes
  50.  
  51. doc::
  52.     $(JAVADOC) -d $(DIST)/doc netscape.javascript
  53.  
  54. natives_list:: FORCE
  55.     rm -rf $@
  56.     find . -name "*.class" -print | sed 's@\./\(.*\)\.class$$@\1@' | \
  57.         sed 's@/@.@g' | xargs $(JVH) -natives | sort > $@
  58.  
  59. check_natives:: natives_list
  60.     rm -f found_natives
  61.     nm -B    ../$(OBJDIR)/*.o \
  62.         | egrep "Java.*_stub" | awk '{ print $$3; }' | sort > found_natives
  63.     diff found_natives natives_list
  64.  
  65. FORCE:
  66.