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