roentgen b75cab
# $Id: Makefile.vc,v 1.22 2009-06-23 18:25:43 fwarmerdam Exp $
roentgen b75cab
#
roentgen b75cab
# Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu></dron@ak4719.spb.edu>
roentgen b75cab
#
roentgen b75cab
# Permission to use, copy, modify, distribute, and sell this software and 
roentgen b75cab
# its documentation for any purpose is hereby granted without fee, provided
roentgen b75cab
# that (i) the above copyright notices and this permission notice appear in
roentgen b75cab
# all copies of the software and related documentation, and (ii) the names of
roentgen b75cab
# Sam Leffler and Silicon Graphics may not be used in any advertising or
roentgen b75cab
# publicity relating to the software without the specific, prior written
roentgen b75cab
# permission of Sam Leffler and Silicon Graphics.
roentgen b75cab
# 
roentgen b75cab
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
roentgen b75cab
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
roentgen b75cab
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
roentgen b75cab
# 
roentgen b75cab
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
roentgen b75cab
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
roentgen b75cab
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
roentgen b75cab
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
roentgen b75cab
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
roentgen b75cab
# OF THIS SOFTWARE.
roentgen b75cab
#
roentgen b75cab
# Makefile for MS Visual C and Watcom C compilers.
roentgen b75cab
#
roentgen b75cab
# To build:
roentgen b75cab
# C:\libtiff\libtiff> nmake /f makefile.vc all
roentgen b75cab
#
roentgen b75cab
roentgen b75cab
!INCLUDE ..\nmake.opt
roentgen b75cab
roentgen b75cab
INCL	= -I. $(JPEG_INCLUDE) $(ZLIB_INCLUDE) $(JBIG_INCLUDE)
roentgen b75cab
roentgen b75cab
!IFDEF USE_WIN_CRT_LIB
roentgen b75cab
OBJ_SYSDEP_MODULE = tif_unix.obj
roentgen b75cab
!ELSE
roentgen b75cab
OBJ_SYSDEP_MODULE = tif_win32.obj
roentgen b75cab
!ENDIF
roentgen b75cab
roentgen b75cab
OBJ	= \
roentgen b75cab
	tif_aux.obj \
roentgen b75cab
	tif_close.obj \
roentgen b75cab
	tif_codec.obj \
roentgen b75cab
	tif_color.obj \
roentgen b75cab
	tif_compress.obj \
roentgen b75cab
	tif_dir.obj \
roentgen b75cab
	tif_dirinfo.obj \
roentgen b75cab
	tif_dirread.obj \
roentgen b75cab
	tif_dirwrite.obj \
roentgen b75cab
	tif_dumpmode.obj \
roentgen b75cab
	tif_error.obj \
roentgen b75cab
	tif_extension.obj \
roentgen b75cab
	tif_fax3.obj \
roentgen b75cab
	tif_fax3sm.obj \
roentgen b75cab
	tif_getimage.obj \
roentgen b75cab
	tif_jbig.obj \
roentgen b75cab
	tif_jpeg.obj \
roentgen b75cab
	tif_jpeg_12.obj \
roentgen b75cab
	tif_ojpeg.obj \
roentgen b75cab
	tif_flush.obj \
roentgen b75cab
	tif_luv.obj \
roentgen b75cab
	tif_lzw.obj \
roentgen b75cab
	tif_next.obj \
roentgen b75cab
	tif_open.obj \
roentgen b75cab
	tif_packbits.obj \
roentgen b75cab
	tif_pixarlog.obj \
roentgen b75cab
	tif_predict.obj \
roentgen b75cab
	tif_print.obj \
roentgen b75cab
	tif_read.obj \
roentgen b75cab
	tif_stream.obj \
roentgen b75cab
	tif_swab.obj \
roentgen b75cab
	tif_strip.obj \
roentgen b75cab
	tif_thunder.obj \
roentgen b75cab
	tif_tile.obj \
roentgen b75cab
	tif_version.obj \
roentgen b75cab
	tif_warning.obj \
roentgen b75cab
	tif_write.obj \
roentgen b75cab
	tif_zip.obj \
roentgen b75cab
	$(OBJ_SYSDEP_MODULE)
roentgen b75cab
roentgen b75cab
all:	libtiff.lib $(DLLNAME)
roentgen b75cab
roentgen b75cab
tif_config.h:	tif_config.vc.h
roentgen b75cab
	copy tif_config.vc.h tif_config.h
roentgen b75cab
roentgen b75cab
tiffconf.h:	tiffconf.vc.h
roentgen b75cab
	copy tiffconf.vc.h tiffconf.h
roentgen b75cab
roentgen b75cab
libtiff.lib:	tif_config.h tiffconf.h $(OBJ)
roentgen b75cab
	$(AR) /out:libtiff.lib $(OBJ) $(LIBS)
roentgen b75cab
roentgen b75cab
$(DLLNAME):	tif_config.h tiffconf.h libtiff.def $(OBJ)
roentgen b75cab
	$(LD) /debug /dll /def:libtiff.def /out:$(DLLNAME) \
roentgen b75cab
	/implib:libtiff_i.lib $(OBJ) $(LIBS)
roentgen b75cab
	
roentgen b75cab
clean:
roentgen b75cab
	-del tif_config.h tiffconf.h
roentgen b75cab
	-del *.obj
roentgen b75cab
	-del *.lib
roentgen b75cab
	-del *.dll
roentgen b75cab
	-del *.dll.manifest
roentgen b75cab
	-del *.pdb