home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / js / jsj / Makefile < prev    next >
Encoding:
Makefile  |  1998-04-08  |  1.9 KB  |  79 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. ifdef MOZ_JAVA
  23. DIRS        = classes
  24. endif
  25.  
  26. MODULE        = java
  27. LIBRARY_NAME    = jsj
  28.  
  29. REQUIRES    = java js applet nspr img util layer
  30.  
  31. CSRCS        = \
  32.           jsjava.c \
  33.           jsStubs.c \
  34.           $(NULL)
  35.  
  36.  
  37. JRI_GEN        = netscape.javascript.JSObject netscape.javascript.JSException
  38.  
  39. ifdef MOZ_JAVA
  40. CSRCS     += jsjsa.c      \
  41.         stubs.c      \
  42.         jsj_nodl.c    \
  43.         $(NULL)
  44. EXPORTS        = jsjava.h \
  45.           $(JRI_GEN_DIR)/netscape_javascript_JSObject.h \
  46.           $(JRI_GEN_DIR)/netscape_javascript_JSException.h \
  47.           $(NULL)
  48.  
  49. else
  50. EXPORTS = jsjava.h     \
  51.           $(NULL)
  52. endif
  53.  
  54.  
  55. include $(DEPTH)/config/rules.mk
  56.  
  57. ######################################################################
  58.  
  59. # Generate jsj_nodl.c (so that you can check it in)
  60. # These make rules only works on IRIX...sigh
  61.  
  62. ifeq ($(OS_ARCH),IRIX)
  63. jsj_nodl.c: $(OBJDIR)/stubs.o Makefile $(DEPTH)/config/nodl.pl
  64.     rm -f $@
  65.     $(PERL) $(DEPTH)/config/nodl.pl "jsj_nodl_tab" \
  66.         `nm -Bn $(OBJDIR)/stubs.o | egrep Java_.*_stub | awk '{print $$3;}'` > $@
  67. endif
  68.  
  69. ifdef MOZ_JAVA
  70. $(OBJDIR)/stubs.o:                     \
  71.     $(JRI_GEN_DIR)/netscape_javascript_JSObject.c     \
  72.     $(JRI_GEN_DIR)/netscape_javascript_JSException.c \
  73.     $(NULL)
  74. else
  75. $(OBJDIR)/stubs.o:
  76. endif
  77.  
  78. export:: install
  79.