1999-08-16 23:07:50 -04:00
|
|
|
#
|
|
|
|
# Simple MS VC++ Makefile
|
|
|
|
#
|
|
|
|
# To build:
|
|
|
|
# C:\libtiff\tools> nmake /f makefile.vc
|
|
|
|
#
|
2003-12-07 08:20:41 -05:00
|
|
|
# Uncomment and edit following lines to enable JPEG support
|
|
|
|
#JPEG_SUPPORT = 1
|
|
|
|
#JPEGDIR = d:/projects/jpeg-6b
|
|
|
|
#JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
|
|
|
|
|
2004-03-26 09:55:31 -05:00
|
|
|
# Uncomment and edit following lines to enable ZIP support
|
|
|
|
# (required for Deflate compression)
|
|
|
|
#ZIP_SUPPORT = 1
|
|
|
|
#ZLIBDIR = d:/projects/zlib-1.2.1
|
|
|
|
#ZLIB_LIB = $(ZLIBDIR)/zlib.lib
|
|
|
|
|
1999-08-16 23:07:50 -04:00
|
|
|
TARGETS = tiffcp.exe tiffinfo.exe tiffdump.exe fax2tiff.exe \
|
|
|
|
fax2ps.exe gif2tiff.exe pal2rgb.exe ppm2tiff.exe \
|
2002-08-10 11:25:54 -04:00
|
|
|
rgb2ycbcr.exe thumbnail.exe ras2tiff.exe raw2tiff.exe \
|
2003-11-26 04:50:27 -05:00
|
|
|
tiff2bw.exe tiff2rgba.exe tiff2pdf.exe tiff2ps.exe \
|
|
|
|
tiffcmp.exe tiffdither.exe tiffmedian.exe tiffsplit.exe
|
1999-08-16 23:07:50 -04:00
|
|
|
|
2003-12-07 08:20:41 -05:00
|
|
|
EXTRA_OBJ = strcasecmp.obj getopt.obj
|
|
|
|
|
|
|
|
LIBS = ..\libtiff\libtiff.lib
|
|
|
|
EXTRAFLAGS =
|
1999-08-16 23:07:50 -04:00
|
|
|
|
2003-12-07 08:20:41 -05:00
|
|
|
!IFDEF JPEG_SUPPORT
|
|
|
|
LIBS = $(LIBS) $(JPEG_LIB)
|
|
|
|
EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
|
|
|
|
!ENDIF
|
1999-08-16 23:07:50 -04:00
|
|
|
|
2003-12-07 08:20:41 -05:00
|
|
|
CFLAGS = /nologo -I..\libtiff /D_WINDOWS $(EXTRAFLAGS)
|
1999-08-16 23:07:50 -04:00
|
|
|
|
|
|
|
default: $(EXTRA_OBJ) $(TARGETS)
|
|
|
|
|
2003-12-07 08:20:41 -05:00
|
|
|
.c.exe:
|
1999-08-16 23:07:50 -04:00
|
|
|
$(CC) $(CFLAGS) $*.c $(EXTRA_OBJ) $(LIBS)
|
|
|
|
|
2003-12-07 08:20:41 -05:00
|
|
|
tiffgt.exe:
|
|
|
|
$(CC) $(CFLAGS) tiffgt.c $(EXTRA_OBJ) $(LIBS)
|
|
|
|
|
1999-08-16 23:07:50 -04:00
|
|
|
getopt.obj: ..\port\getopt.c
|
|
|
|
$(CC) /c $(CFLAGS) ..\port\getopt.c
|
|
|
|
|
|
|
|
strcasecmp.obj: ..\port\strcasecmp.c
|
|
|
|
$(CC) /c $(CFLAGS) ..\port\strcasecmp.c
|
2000-01-04 22:13:58 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
del *.obj *.exe
|