Makefile.vc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # $Id: Makefile.vc,v 1.22 2009-06-23 18:25:43 fwarmerdam Exp $
  2. #
  3. # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
  4. #
  5. # Permission to use, copy, modify, distribute, and sell this software and
  6. # its documentation for any purpose is hereby granted without fee, provided
  7. # that (i) the above copyright notices and this permission notice appear in
  8. # all copies of the software and related documentation, and (ii) the names of
  9. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  10. # publicity relating to the software without the specific, prior written
  11. # permission of Sam Leffler and Silicon Graphics.
  12. #
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  22. # OF THIS SOFTWARE.
  23. #
  24. # Makefile for MS Visual C and Watcom C compilers.
  25. #
  26. # To build:
  27. # C:\libtiff\libtiff> nmake /f makefile.vc all
  28. #
  29. !INCLUDE ..\nmake.opt
  30. INCL = -I. $(JPEG_INCLUDE) $(ZLIB_INCLUDE) $(JBIG_INCLUDE)
  31. !IFDEF USE_WIN_CRT_LIB
  32. OBJ_SYSDEP_MODULE = tif_unix.obj
  33. !ELSE
  34. OBJ_SYSDEP_MODULE = tif_win32.obj
  35. !ENDIF
  36. OBJ = \
  37. tif_aux.obj \
  38. tif_close.obj \
  39. tif_codec.obj \
  40. tif_color.obj \
  41. tif_compress.obj \
  42. tif_dir.obj \
  43. tif_dirinfo.obj \
  44. tif_dirread.obj \
  45. tif_dirwrite.obj \
  46. tif_dumpmode.obj \
  47. tif_error.obj \
  48. tif_extension.obj \
  49. tif_fax3.obj \
  50. tif_fax3sm.obj \
  51. tif_getimage.obj \
  52. tif_jbig.obj \
  53. tif_jpeg.obj \
  54. tif_jpeg_12.obj \
  55. tif_ojpeg.obj \
  56. tif_flush.obj \
  57. tif_luv.obj \
  58. tif_lzw.obj \
  59. tif_next.obj \
  60. tif_open.obj \
  61. tif_packbits.obj \
  62. tif_pixarlog.obj \
  63. tif_predict.obj \
  64. tif_print.obj \
  65. tif_read.obj \
  66. tif_stream.obj \
  67. tif_swab.obj \
  68. tif_strip.obj \
  69. tif_thunder.obj \
  70. tif_tile.obj \
  71. tif_version.obj \
  72. tif_warning.obj \
  73. tif_write.obj \
  74. tif_zip.obj \
  75. $(OBJ_SYSDEP_MODULE)
  76. all: libtiff.lib $(DLLNAME)
  77. tif_config.h: tif_config.vc.h
  78. copy tif_config.vc.h tif_config.h
  79. tiffconf.h: tiffconf.vc.h
  80. copy tiffconf.vc.h tiffconf.h
  81. libtiff.lib: tif_config.h tiffconf.h $(OBJ)
  82. $(AR) /out:libtiff.lib $(OBJ) $(LIBS)
  83. $(DLLNAME): tif_config.h tiffconf.h libtiff.def $(OBJ)
  84. $(LD) /debug /dll /def:libtiff.def /out:$(DLLNAME) \
  85. /implib:libtiff_i.lib $(OBJ) $(LIBS)
  86. clean:
  87. -del tif_config.h tiffconf.h
  88. -del *.obj
  89. -del *.lib
  90. -del *.dll
  91. -del *.dll.manifest
  92. -del *.pdb