1 # $Id: Makefile.vc,v 1.22 2009-06-23 18:25:43 fwarmerdam Exp $
3 # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
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.
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.
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
24 # Makefile for MS Visual C and Watcom C compilers.
27 # C:\libtiff\libtiff> nmake /f makefile.vc all
32 INCL = -I. $(JPEG_INCLUDE) $(ZLIB_INCLUDE) $(JBIG_INCLUDE)
34 !IFDEF USE_WIN_CRT_LIB
35 OBJ_SYSDEP_MODULE = tif_unix.obj
37 OBJ_SYSDEP_MODULE = tif_win32.obj
81 all: libtiff.lib $(DLLNAME)
83 tif_config.h: tif_config.vc.h
84 copy tif_config.vc.h tif_config.h
86 tiffconf.h: tiffconf.vc.h
87 copy tiffconf.vc.h tiffconf.h
89 libtiff.lib: tif_config.h tiffconf.h $(OBJ)
90 $(AR) /out:libtiff.lib $(OBJ) $(LIBS)
92 $(DLLNAME): tif_config.h tiffconf.h libtiff.def $(OBJ)
93 $(LD) /debug /dll /def:libtiff.def /out:$(DLLNAME) \
94 /implib:libtiff_i.lib $(OBJ) $(LIBS)
97 -del tif_config.h tiffconf.h