]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/makefile.vc
Added ITEM_EXPANDED and ITEM_COLLAPSED
[wxWidgets.git] / src / tiff / makefile.vc
CommitLineData
00cb87b4
VZ
1#
2# Simple MS VC++ Makefile
3#
4# To build:
5# C:\libtiff\libtiff> nmake /f makefile.vc all
6#
7
8#
9# Select _CONSOLE to build a library which reports errors to stderr, or
10# _WINDOWED to build such that errors are reported via MessageBox().
11#
12WINMODE = -DTIF_PLATFORM_CONSOLE
13#WINMODE = -DTIF_PLATFORM_WINDOWED
14
15# Uncomment and edit following lines to enable JPEG support
16#JPEG_SUPPORT = 1
17#JPEGDIR = d:/projects/jpeg-6b
18
19CC = cl
20INCL = -I.
21LIBS =
22EXTRAFLAGS =
23
24!IFDEF JPEG_SUPPORT
25INCL = $(INCL) -I$(JPEGDIR)
26EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
27!ENDIF
28
29CFLAGS = /nologo /W3 $(INCL) $(WINMODE) $(EXTRAFLAGS)
30
31OBJ = \
32 tif_aux.obj \
33 tif_close.obj \
34 tif_codec.obj \
35 tif_color.obj \
36 tif_compress.obj \
37 tif_dir.obj \
38 tif_dirinfo.obj \
39 tif_dirread.obj \
40 tif_dirwrite.obj \
41 tif_dumpmode.obj \
42 tif_error.obj \
43 tif_extension.obj \
44 tif_fax3.obj \
45 fax3sm_winnt.obj \
46 tif_getimage.obj \
47 tif_jpeg.obj \
48 tif_ojpeg.obj \
49 tif_flush.obj \
50 tif_luv.obj \
51 tif_lzw.obj \
52 tif_next.obj \
53 tif_open.obj \
54 tif_packbits.obj \
55 tif_pixarlog.obj \
56 tif_predict.obj \
57 tif_print.obj \
58 tif_read.obj \
59 tif_swab.obj \
60 tif_strip.obj \
61 tif_thunder.obj \
62 tif_tile.obj \
63 tif_win32.obj \
64 tif_version.obj \
65 tif_warning.obj \
66 tif_write.obj \
67 tif_zip.obj
68
69VERSION = ..\VERSION
70ALPHA = ..\dist\tiff.alpha
71
72default: libtiff.lib
73
74all: libtiff.lib libtiff.dll
75
76libtiff.lib: tiffvers.h $(OBJ)
77 lib /out:libtiff.lib $(OBJ)
78
79libtiff.dll: $(OBJ)
80 link /dll /def:libtiff.def /out:libtiff.dll /implib:libtiff_i.lib \
81 $(OBJ) $(LIBS)
82
83tiffvers.h: $(VERSION) mkversion.c
84 $(CC) mkversion.c
85 if exist tiffvers.h del tiffvers.h
86 .\mkversion.exe -v $(VERSION) tiffvers.h
87
88clean:
89 del *.obj *.lib libtiff.dll
90
91tif_version.obj: tiffvers.h
5ea6dbbf 92
5ea6dbbf 93