]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/makefile.vc
remove debug code
[wxWidgets.git] / src / tiff / makefile.vc
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 #
12 WINMODE = -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
19 CC = cl
20 INCL = -I.
21 LIBS =
22 EXTRAFLAGS =
23
24 !IFDEF JPEG_SUPPORT
25 INCL = $(INCL) -I$(JPEGDIR)
26 EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
27 !ENDIF
28
29 CFLAGS = /nologo /W3 $(INCL) $(WINMODE) $(EXTRAFLAGS)
30
31 OBJ = \
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
69 VERSION = ..\VERSION
70 ALPHA = ..\dist\tiff.alpha
71
72 default: libtiff.lib
73
74 all: libtiff.lib libtiff.dll
75
76 libtiff.lib: tiffvers.h $(OBJ)
77 lib /out:libtiff.lib $(OBJ)
78
79 libtiff.dll: $(OBJ)
80 link /dll /def:libtiff.def /out:libtiff.dll /implib:libtiff_i.lib \
81 $(OBJ) $(LIBS)
82
83 tiffvers.h: $(VERSION) mkversion.c
84 $(CC) mkversion.c
85 if exist tiffvers.h del tiffvers.h
86 .\mkversion.exe -v $(VERSION) tiffvers.h
87
88 clean:
89 del *.obj *.lib libtiff.dll
90
91 tif_version.obj: tiffvers.h
92
93