1# $Id: Makefile.vc,v 1.23 2015-08-19 02:31:04 bfriesen 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
30!INCLUDE ..\nmake.opt
31
32INCL	= -I. $(JPEG_INCLUDE) $(ZLIB_INCLUDE) $(JBIG_INCLUDE)
33
34!IFDEF USE_WIN_CRT_LIB
35OBJ_SYSDEP_MODULE = tif_unix.obj
36!ELSE
37OBJ_SYSDEP_MODULE = tif_win32.obj
38!ENDIF
39
40OBJ	= \
41	tif_aux.obj \
42	tif_close.obj \
43	tif_codec.obj \
44	tif_color.obj \
45	tif_compress.obj \
46	tif_dir.obj \
47	tif_dirinfo.obj \
48	tif_dirread.obj \
49	tif_dirwrite.obj \
50	tif_dumpmode.obj \
51	tif_error.obj \
52	tif_extension.obj \
53	tif_fax3.obj \
54	tif_fax3sm.obj \
55	tif_getimage.obj \
56	tif_jbig.obj \
57	tif_jpeg.obj \
58	tif_jpeg_12.obj \
59	tif_ojpeg.obj \
60	tif_flush.obj \
61	tif_luv.obj \
62	tif_lzw.obj \
63	tif_next.obj \
64	tif_open.obj \
65	tif_packbits.obj \
66	tif_pixarlog.obj \
67	tif_predict.obj \
68	tif_print.obj \
69	tif_read.obj \
70	tif_stream.obj \
71	tif_swab.obj \
72	tif_strip.obj \
73	tif_thunder.obj \
74	tif_tile.obj \
75	tif_version.obj \
76	tif_warning.obj \
77	tif_write.obj \
78	tif_zip.obj \
79	$(OBJ_SYSDEP_MODULE)
80
81all:	libtiff.lib $(DLLNAME)
82
83tif_config.h:	tif_config.vc.h
84	copy tif_config.vc.h tif_config.h
85
86tiffconf.h:	tiffconf.vc.h
87	copy tiffconf.vc.h tiffconf.h
88
89libtiff.lib:	tif_config.h tiffconf.h $(OBJ)
90	$(AR) /out:libtiff.lib ..\port\libport.lib $(OBJ) $(LIBS)
91
92$(DLLNAME):	tif_config.h tiffconf.h libtiff.def $(OBJ)
93	$(LD) /debug /dll /def:libtiff.def /out:$(DLLNAME) \
94	/implib:libtiff_i.lib ..\port\libport.lib $(OBJ) $(LIBS)
95
96clean:
97	-del tif_config.h tiffconf.h
98	-del *.obj
99	-del *.lib
100	-del *.dll
101	-del *.dll.manifest
102	-del *.pdb
103