home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / zlib / src / makefile.win < prev    next >
Encoding:
Makefile  |  1998-04-08  |  3.6 KB  |  116 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.  
  21. NODEPEND=1
  22. IGNORE_MANIFEST = 1
  23.  
  24. #//------------------------------------------------------------------------
  25. #//
  26. # New build system where zip dll is build indepenant of java stubs.
  27. #//
  28. #//------------------------------------------------------------------------
  29. MODULE = zlib
  30. EXPORTS =                 \
  31.     zlib.h                \
  32.     zconf.h                \
  33.     $(NULL)
  34.  
  35.  
  36. #//------------------------------------------------------------------------
  37. #//
  38. #// Specify the depth of the current directory relative to the
  39. #// root of NS
  40. #//
  41. #//------------------------------------------------------------------------
  42. DEPTH= ..\..\..\
  43.  
  44. MAKE_OBJ_TYPE=DLL
  45. #//------------------------------------------------------------------------
  46. #//
  47. #// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
  48. #//
  49. #//------------------------------------------------------------------------
  50. DLLNAME=$(ZIPDLL)
  51. PDBFILE=$(MOD_ZIP).pdb
  52. MAPFILE=$(MOD_ZIP).map
  53. !if "$(MOZ_BITS)" == "16"
  54. DEFFILE=zip16.def
  55. !endif
  56. #RESFILE=zip.res
  57.  
  58. #//------------------------------------------------------------------------
  59. #// 
  60. #// Define the files necessary to build the target (ie. OBJS)
  61. #//
  62. #//------------------------------------------------------------------------
  63. OBJS=                                   \
  64.           .\$(OBJDIR)\adler32.obj      \
  65.           .\$(OBJDIR)\compress.obj     \
  66.           .\$(OBJDIR)\crc32.obj        \
  67.           .\$(OBJDIR)\deflate.obj      \
  68.           .\$(OBJDIR)\gzio.obj         \
  69.           .\$(OBJDIR)\infblock.obj     \
  70.           .\$(OBJDIR)\infcodes.obj     \
  71.           .\$(OBJDIR)\inffast.obj      \
  72.           .\$(OBJDIR)\inflate.obj      \
  73.           .\$(OBJDIR)\inftrees.obj     \
  74.           .\$(OBJDIR)\infutil.obj      \
  75.           .\$(OBJDIR)\trees.obj        \
  76.           .\$(OBJDIR)\uncompr.obj      \
  77.           .\$(OBJDIR)\zutil.obj        \
  78.           $(NULL)
  79.  
  80. #//------------------------------------------------------------------------
  81. #//
  82. #// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
  83. #// (these must be defined before the common makefiles are included)
  84. #//
  85. #//------------------------------------------------------------------------
  86.  
  87. DLL=.\$(OBJDIR)\$(DLLNAME)
  88. MAPFILE= $(MOD_ZIP).map
  89.  
  90.  
  91. #//------------------------------------------------------------------------
  92. #//
  93. #// Define any local options for the make tools 
  94. #//     (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
  95. #//
  96. #//------------------------------------------------------------------------
  97. LLIBS=$(LLIBS)  $(LIBNSPR) 
  98. LINCS=$(LINCS) -I. -I_gen
  99. # clobber and clobber_all will remove the following garbage:
  100. GARBAGE    = $(GARBAGE) _gen
  101.  
  102. #//------------------------------------------------------------------------
  103. #//
  104. #// Include the common makefile rules
  105. #//
  106. #//------------------------------------------------------------------------
  107. !ifdef MOZ_JAVA
  108. include <$(DEPTH)/sun-java/config/rules.mak>
  109. !else
  110. include <$(DEPTH)/config/rules.mak>
  111. !endif
  112.  
  113. export:: $(DLL)
  114.     $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME) $(DIST)\bin
  115.     $(MAKE_INSTALL) .\$(OBJDIR)\$(MOD_ZIP).lib $(DIST)\lib
  116.