2 # Simple MS VC++ Makefile
5 # C:\libtiff\libtiff> nmake /f makefile.vc all
9 # Select _CONSOLE to build a library which reports errors to stderr, or
10 # _WINDOWED to build such that errors are reported via MessageBox().
12 WINMODE = -DTIF_PLATFORM_CONSOLE
13 #WINMODE = -DTIF_PLATFORM_WINDOWED
15 # Uncomment and edit following lines to enable JPEG support
17 #JPEGDIR = d:/projects/jpeg-6b
25 INCL = $(INCL) -I$(JPEGDIR)
26 EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
29 CFLAGS = /nologo /W3 $(INCL) $(WINMODE) $(EXTRAFLAGS)
70 ALPHA = ..\dist\tiff.alpha
74 all: libtiff.lib libtiff.dll
76 libtiff.lib: tiffvers.h $(OBJ)
77 lib /out:libtiff.lib $(OBJ)
80 link /dll /def:libtiff.def /out:libtiff.dll /implib:libtiff_i.lib \
83 tiffvers.h: $(VERSION) mkversion.c
85 if exist tiffvers.h del tiffvers.h
86 .\mkversion.exe -v $(VERSION) tiffvers.h
89 del *.obj *.lib libtiff.dll
91 tif_version.obj: tiffvers.h