*** empty log message ***

This commit is contained in:
Andrey Kiselev 2004-04-15 09:48:25 +00:00
parent 90d7d78882
commit 2b90981925
6 changed files with 103 additions and 58 deletions

View File

@ -27,11 +27,13 @@ EXTRA_DIST = \
COPYRIGHT \ COPYRIGHT \
ChangeLog \ ChangeLog \
HOWTO-RELEASE \ HOWTO-RELEASE \
Makefile.vc \
README \ README \
RELEASE-DATE \ RELEASE-DATE \
TODO \ TODO \
VERSION \ VERSION \
autogen.sh autogen.sh \
nmake.opt
SUBDIRS = port libtiff tools contrib man html SUBDIRS = port libtiff tools contrib man html

View File

@ -200,11 +200,13 @@ EXTRA_DIST = \
COPYRIGHT \ COPYRIGHT \
ChangeLog \ ChangeLog \
HOWTO-RELEASE \ HOWTO-RELEASE \
Makefile.vc \
README \ README \
RELEASE-DATE \ RELEASE-DATE \
TODO \ TODO \
VERSION \ VERSION \
autogen.sh autogen.sh \
nmake.opt
SUBDIRS = port libtiff tools contrib man html SUBDIRS = port libtiff tools contrib man html
all: all-recursive all: all-recursive

35
Makefile.vc Normal file
View File

@ -0,0 +1,35 @@
#
# Simple MS VC++ Makefile
#
# To build:
# C:\libtiff\tools> nmake /f makefile.vc
!INCLUDE ..\nmake.opt
TARGETS = tiffcp.exe tiffinfo.exe tiffdump.exe fax2tiff.exe \
fax2ps.exe gif2tiff.exe pal2rgb.exe ppm2tiff.exe \
rgb2ycbcr.exe thumbnail.exe ras2tiff.exe raw2tiff.exe \
tiff2bw.exe tiff2rgba.exe tiff2pdf.exe tiff2ps.exe \
tiffcmp.exe tiffdither.exe tiffmedian.exe tiffsplit.exe
EXTRA_OBJ = strcasecmp.obj getopt.obj
INCL = -I..\libtiff
LIBS = $(LIBS) ..\libtiff\libtiff.lib
default: $(EXTRA_OBJ) $(TARGETS)
.c.exe:
$(CC) $(CFLAGS) $*.c $(EXTRA_OBJ) $(LIBS)
tiffgt.exe:
$(CC) $(CFLAGS) tiffgt.c $(EXTRA_OBJ) $(LIBS)
getopt.obj: ..\port\getopt.c
$(CC) /c $(CFLAGS) ..\port\getopt.c
strcasecmp.obj: ..\port\strcasecmp.c
$(CC) /c $(CFLAGS) ..\port\strcasecmp.c
clean:
-del *.exe *.obj

View File

@ -5,36 +5,9 @@
# C:\libtiff\libtiff> nmake /f makefile.vc all # C:\libtiff\libtiff> nmake /f makefile.vc all
# #
# !INCLUDE ..\nmake.opt
# Select _CONSOLE to build a library which reports errors to stderr, or
# _WINDOWED to build such that errors are reported via MessageBox().
#
WINMODE = -DTIF_PLATFORM_CONSOLE
#WINMODE = -DTIF_PLATFORM_WINDOWED
# Uncomment and edit following lines to enable JPEG support INCL = -I.
#JPEG_SUPPORT = 1
#JPEGDIR = d:/projects/jpeg-6b
#JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
# 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
CC = cl
INCL = -I.
LIBS =
EXTRAFLAGS =
!IFDEF JPEG_SUPPORT
INCL = $(INCL) -I$(JPEGDIR)
LIBS = $(LIBS) $(JPEG_LIB)
EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
!ENDIF
CFLAGS = /nologo /W3 $(INCL) $(WINMODE) $(EXTRAFLAGS)
OBJ = \ OBJ = \
tif_aux.obj \ tif_aux.obj \
@ -77,24 +50,22 @@ OBJ = \
VERSION = ..\VERSION VERSION = ..\VERSION
ALPHA = ..\dist\tiff.alpha ALPHA = ..\dist\tiff.alpha
default: libtiff.lib
all: libtiff.lib libtiff.dll all: libtiff.lib libtiff.dll
libtiff.lib: tiffvers.h $(OBJ) libtiff.lib: tiffvers.h $(OBJ)
lib /out:libtiff.lib $(OBJ) lib /nologo /out:libtiff.lib $(OBJ)
libtiff.dll: $(OBJ) libtiff.dll: $(OBJ)
link /dll /def:libtiff.def /out:libtiff.dll /implib:libtiff_i.lib \ link /nologo /dll /def:libtiff.def /out:libtiff.dll \
$(OBJ) $(LIBS) /implib:libtiff_i.lib $(OBJ) $(LIBS)
tiffvers.h: $(VERSION) mkversion.c tiffvers.h: $(VERSION) mkversion.c
$(CC) mkversion.c $(CC) $(CFLAGS) mkversion.c
if exist tiffvers.h del tiffvers.h if exist tiffvers.h del tiffvers.h
.\mkversion.exe -v $(VERSION) tiffvers.h .\mkversion.exe -v $(VERSION) tiffvers.h
clean: clean:
del *.obj *.lib libtiff.dll -del *.obj *.lib *.dll *.exe
tif_version.obj: tiffvers.h tif_version.obj: tiffvers.h

51
nmake.opt Normal file
View File

@ -0,0 +1,51 @@
# Compile time parameters for MS Visual C++ compiler.
# You may edit this file to specify building options.
#
# Select _CONSOLE to build a library which reports errors to stderr, or
# _WINDOWED to build such that errors are reported via MessageBox().
#
WINMODE = -DTIF_PLATFORM_CONSOLE
#WINMODE = -DTIF_PLATFORM_WINDOWED
#
# Uncomment and edit following lines to enable JPEG support.
#
#JPEG_SUPPORT = 1
#JPEGDIR = d:/projects/jpeg-6b
#JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
#
# Uncomment following lines to enable Old JPEG support
# (patched IJG JPEG library required, read the contrib\ojpeg\README first).
#
#OJPEG_SUPPORT = 1
#
# 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
#
# There is nothing to edit below this line normally.
#
MAKE = nmake /nologo
CC = cl /nologo
CFLAGS = /W3 $(INCL) $(WINMODE) $(EXTRAFLAGS)
EXTRAFLAGS =
LIBS =
!IFDEF JPEG_SUPPORT
LIBS = $(LIBS) $(JPEG_LIB)
EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
!IFDEF OJPEG_SUPPORT
EXTRAFLAGS = $(EXTRAFLAGS) -DOJPEG_SUPPORT
!ENDIF
!ENDIF

View File

@ -3,17 +3,8 @@
# #
# To build: # To build:
# C:\libtiff\tools> nmake /f makefile.vc # C:\libtiff\tools> nmake /f makefile.vc
#
# Uncomment and edit following lines to enable JPEG support
#JPEG_SUPPORT = 1
#JPEGDIR = d:/projects/jpeg-6b
#JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
# Uncomment and edit following lines to enable ZIP support !INCLUDE ..\nmake.opt
# (required for Deflate compression)
#ZIP_SUPPORT = 1
#ZLIBDIR = d:/projects/zlib-1.2.1
#ZLIB_LIB = $(ZLIBDIR)/zlib.lib
TARGETS = tiffcp.exe tiffinfo.exe tiffdump.exe fax2tiff.exe \ TARGETS = tiffcp.exe tiffinfo.exe tiffdump.exe fax2tiff.exe \
fax2ps.exe gif2tiff.exe pal2rgb.exe ppm2tiff.exe \ fax2ps.exe gif2tiff.exe pal2rgb.exe ppm2tiff.exe \
@ -23,15 +14,8 @@ TARGETS = tiffcp.exe tiffinfo.exe tiffdump.exe fax2tiff.exe \
EXTRA_OBJ = strcasecmp.obj getopt.obj EXTRA_OBJ = strcasecmp.obj getopt.obj
LIBS = ..\libtiff\libtiff.lib INCL = -I..\libtiff
EXTRAFLAGS = LIBS = $(LIBS) ..\libtiff\libtiff.lib
!IFDEF JPEG_SUPPORT
LIBS = $(LIBS) $(JPEG_LIB)
EXTRAFLAGS = $(EXTRAFLAGS) -DJPEG_SUPPORT
!ENDIF
CFLAGS = /nologo -I..\libtiff /D_WINDOWS $(EXTRAFLAGS)
default: $(EXTRA_OBJ) $(TARGETS) default: $(EXTRA_OBJ) $(TARGETS)
@ -48,4 +32,4 @@ strcasecmp.obj: ..\port\strcasecmp.c
$(CC) /c $(CFLAGS) ..\port\strcasecmp.c $(CC) /c $(CFLAGS) ..\port\strcasecmp.c
clean: clean:
del *.obj *.exe -del *.exe *.obj