1
Date: Fri, 18 Apr 1997 09:25:09 EDT
2
To: "'sam@cthulhu.engr.sgi.com'" <sam@cthulhu.engr.sgi.com>
3
cc: "'tiff@sgi.engr.sgi.com'" <tiff@sgi.engr.sgi.com>
5
From: xingong chang <xingong@feith1.FEITH.COM>
6
Subject: Contribution: libtiff for Windows-nt console applications
8
Return-Path: xingong@feith1.FEITH.COM
9
Delivery-Date: Fri, 18 Apr 1997 06:37:38 -0700
10
Return-Path: xingong@feith1.FEITH.COM
14
I built the libtiff under WINNT 4.0 as a 32-bit library for pure
15
console applications. I made the makefile.nt based on Philippe
16
Tenenhaus' makefile.w95 file. Since I want my stuff to be a pure
17
console application running on WinNT, Dave Dyer's makefile for WINNT is
18
not good for me since it is for Windows applications.
20
I used the tif_msdos.c file instead of the tif_win32.c in the $(OBJS)
21
list because tif_win32.c is not a pure console program, it includes
22
some function calls such as MessageBox etc which requires windows
23
application library ($winslib as defined in <ntwin32.mak>).
25
unlike Philippe Tenenhaus' makefile.w95 file, this makefile.nt does
26
support fax3 stuff. And to make the mkg3states.exe,the getopt.obj is
27
needed. "getopt" package is ATT public domain source for getopt(3).
28
Also you need to inlcude the g3states.h in tif_fax.c fileand modify the
29
tif_fax3.h to delete the external declaration of FFFaxMainTable,
30
TIFFFaxWhileTable and TIFFFaxBlackTable
33
libtiff version: TIFFLIB_VERSION 19960307
35
Hardware you are using: i386
37
Operating system you are using: Windows NT 4.0
39
C compiler : Microsoft Visual C++ 4.1
41
NMAKE : Microsoft nmake 1.61
44
Here is the makefile.nt I used:
45
---------------------------------------------------------
47
# makefile.nt for the tiff library
48
# Tag Image File Format Library
50
# Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
51
# Copyright (c) 1991, 1992 Silicon Graphics, Inc.
53
# Permission to use, copy, modify, distribute, and sell this software and
54
# its documentation for any purpose is hereby granted without fee, provided
55
# that (i) the above copyright notices and this permission notice appear in
56
# all copies of the software and related documentation, and (ii) the names of
57
# Sam Leffler and Silicon Graphics may not be used in any advertising or
58
# publicity relating to the software without the specific, prior written
59
# permission of Sam Leffler and Silicon Graphics.
61
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
62
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
63
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
65
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
66
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
67
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
68
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
69
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
72
# This Makefile is for use with microsoft nmake version 1.61
75
!include <ntwin32.mak>
77
DEFS = -DBSDTYPES -DO_RDONLY=S_IREAD -DO_RDWR=S_IWRITE
141
#To make the mkg3states.exe,the getopt.obj is needed. getopt package is
142
# ATT public domain source for getopt(3).
143
EXTRA_OBJS = getopt.obj
149
lib -out:libtiff.lib $(OBJS)
152
$(cc) $(DEFS) $(cdebug) $(cflags) $(cvarsmt) $*.c
155
#To include fax3 support, we did this modification
156
#add to the build script : tif_fax3.c and tif_fax3.obj
157
#define CCITT_SUPPORT in the file tifconf.h
158
#inlcude the g3states.h in tif_fax.c file
159
#modify the tif_fax3.h to delete the TIFFFaxMainTable,TIFFFaxWhileTable
160
# TIFFFaxBlackTable etc external declaration
161
#mkg3states.exe without any command line options will produce the g3states.h
163
$(OBJS): tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
164
tif_fax3.obj: tif_fax3.c g3states.h t4.h tif_fax3.h
166
g3states.h: mkg3states.obj t4.h
167
$(link) $(ldebug) $(conslflags) -out:mkg3states.exe mkg3states.obj \