home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / sun-java / stubs / src / makefile.win < prev    next >
Encoding:
Makefile  |  1998-04-08  |  3.0 KB  |  105 lines

  1. #!nmake
  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. IGNORE_MANIFEST=1 
  19. #//------------------------------------------------------------------------
  20. #//
  21. #// Makefile to build the java stub library
  22. #//
  23. #//------------------------------------------------------------------------
  24.  
  25.  
  26. #//------------------------------------------------------------------------
  27. #//
  28. #// Specify the depth of the current directory relative to the
  29. #// root of NS
  30. #//
  31. #//------------------------------------------------------------------------
  32. DEPTH= ..\..\..
  33.  
  34. !ifndef MAKE_OBJ_TYPE
  35. MAKE_OBJ_TYPE=EXE
  36. !endif
  37.  
  38. #//------------------------------------------------------------------------
  39. #//
  40. #// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
  41. #//
  42. #//------------------------------------------------------------------------
  43. LIBNAME=libsjs$(MOZ_BITS)
  44. PDBFILE=$(LIBNAME).pdb
  45.  
  46. #//------------------------------------------------------------------------
  47. #// 
  48. #// Define the files necessary to build the target (ie. OBJS)
  49. #//
  50. #//------------------------------------------------------------------------
  51. !if "$(MOZ_BITS)" == "16"
  52. OBJS=\
  53. .\$(OBJDIR)\STUBSJ.OBJ \
  54. $(NULL)
  55. !else
  56. OBJS =                        \
  57.     .\$(OBJDIR)\stubsj.obj           \
  58.     $(NULL)
  59. !endif
  60.  
  61. #//------------------------------------------------------------------------
  62. #//
  63. #// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
  64. #// (these must be defined before the common makefiles are included)
  65. #//
  66. #//------------------------------------------------------------------------
  67. LIBRARY= .\$(OBJDIR)\$(LIBNAME).lib
  68.  
  69.  
  70. #//------------------------------------------------------------------------
  71. #//
  72. #// Define any local options for the make tools 
  73. #//     (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
  74. #//
  75. #//------------------------------------------------------------------------
  76.  
  77. !if "$(MOZ_BITS)" == "32"
  78. LINCS= $(LINCS) \
  79.         -I$(PUBLIC)/java    \
  80.         $(NULL)
  81. !endif
  82.  
  83. !if "$(MOZ_BITS)" != "16"
  84. INSTALL_DIR=$(PUBLIC)\java
  85. !else
  86. INSTALL_DIR=$(PUBLIC)\win16
  87. !endif
  88.  
  89.  
  90. #//------------------------------------------------------------------------
  91. #//
  92. #// Include the common makefile rules
  93. #//
  94. #//------------------------------------------------------------------------
  95.  
  96. include <$(DEPTH)/config/rules.mak>
  97.  
  98. export:: 
  99.  
  100. install:: $(LIBRARY)
  101.     $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
  102.  
  103. clobber::
  104.  
  105.