Received: by whizzer.wpd.sgi.com (921026.SGI.NOSTRIP/911001.SGI)
	 id AA07190; Fri, 24 Sep 93 14:55:13 GMT
Received: from sgi.sgi.com by whizzer.wpd.sgi.com via SMTP (921026.SGI.NOSTRIP/911001.SGI)
	for /usr/people/sam/majordomo/wrapper resend -l tiff -h sgi.sgi.com -f tiff-owner -s -m "-oi -odq -om" tiff-list id AA07183; Fri, 24 Sep 93 07:55:11 -0700
Received: from bernina.ethz.ch by sgi.sgi.com via SMTP (920330.SGI/910110.SGI)
	for tiff-relay@whizzer.wpd.sgi.com id AA27162; Fri, 24 Sep 93 08:01:49 -0700
Received: from lagonda by bernina.ethz.ch with SMTP inbound id <10575-0@bernina.ethz.ch>; Fri, 24 Sep 1993 17:00:43 +0200
Message-Id: <9309241459.AA00680@lagonda>
Received: from [129.132.109.58] (wsl41) by lagonda.ethz.ch id AA00680; Fri, 24 Sep 93 16:59:51 +0200
X-Sender: boesch@lagonda.ethz.ch
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Fri, 24 Sep 1993 17:05:05 +0100
To: TIFF@sgi.sgi.com
From: boesch@wsl.ethz.ch (Ruedi Boesch)
Subject: libtiff and MPW
Sender: tiff-owner@sgi.sgi.com

Nigel Rea writes
>handle the tricky files that MPW C chokes on. I just use it to compile=
=20
>the lzw stuff, and let MPW C compile the rest.
>
it is possible to compile Makefile.mpw with MPW C 3.3 (including
mkg3states.c and tif_fax3.c). Some modifications are necessary (I=
 could
post my modified Makefile.mpw, if anybody is intersted). Here the=
 important
modifications:

1.=20
add "-model far" to the compiler-options

2. add this in Makefile.mpw:

g3states.h =9F mkg3states.c t4.h
        Link -model far -w -c 'MPS ' -t MPST =8F
                mkg3states.c.o  =8F
                {CLibraries}StdCLib.o =8F
                {Libraries}Interface.o =8F
                {Libraries}RunTime.o =8F
                -o createmkg3states.MPW
        createmkg3states.MPW > g3states.h


I had also to increase the MPW-Shell memory partition to 14 MByte
(yes,14000), otherwise tif_fax3.c runs out of global storage during=
 the
compilation.

Ruedi

_______________________________________________________________
Ruedi Boesch, Swiss federal institute for
forest,snow, and landscape research (WSL)
8903 Birmensdorf, SWITZERLAND
phone: +41 1 739 24 98   fax: +41 1 739 25 55
internet:  boesch@wsl.ethz.ch




