Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/libtiff@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
Copyright (c) 1988-1997 Sam Leffler
|
||||||
|
Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, distribute, and sell this software and
|
||||||
|
its documentation for any purpose is hereby granted without fee, provided
|
||||||
|
that (i) the above copyright notices and this permission notice appear in
|
||||||
|
all copies of the software and related documentation, and (ii) the names of
|
||||||
|
Sam Leffler and Silicon Graphics may not be used in any advertising or
|
||||||
|
publicity relating to the software without the specific, prior written
|
||||||
|
permission of Sam Leffler and Silicon Graphics.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||||
|
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
||||||
|
ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||||
|
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
||||||
|
LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||||||
|
OF THIS SOFTWARE.
|
||||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+556
@@ -0,0 +1,556 @@
|
|||||||
|
#! smake
|
||||||
|
# $Header: /home/cvsroot/libtiff/Makefile.in,v 1.1.1.1 2000/06/24 19:10:16 tshead Exp $
|
||||||
|
#
|
||||||
|
# @WARNING@
|
||||||
|
#
|
||||||
|
# Tag Image File Format Library
|
||||||
|
#
|
||||||
|
# Copyright (c) 1988-1997 Sam Leffler
|
||||||
|
# Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, distribute, and sell this software and
|
||||||
|
# its documentation for any purpose is hereby granted without fee, provided
|
||||||
|
# that (i) the above copyright notices and this permission notice appear in
|
||||||
|
# all copies of the software and related documentation, and (ii) the names of
|
||||||
|
# Sam Leffler and Silicon Graphics may not be used in any advertising or
|
||||||
|
# publicity relating to the software without the specific, prior written
|
||||||
|
# permission of Sam Leffler and Silicon Graphics.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||||
|
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#
|
||||||
|
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||||
|
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
||||||
|
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||||||
|
# OF THIS SOFTWARE.
|
||||||
|
#
|
||||||
|
|
||||||
|
SRCDIR = @SRCDIR@
|
||||||
|
|
||||||
|
#
|
||||||
|
# VERSION: @VERSION@
|
||||||
|
# DATE: @DATE@
|
||||||
|
# TARGET: @TARGET@
|
||||||
|
# CCOMPILER: @CCOMPILER@
|
||||||
|
#
|
||||||
|
@SETMAKE@
|
||||||
|
SHELL = @SCRIPT_SH@
|
||||||
|
NULL =
|
||||||
|
ECHO = echo
|
||||||
|
GENDIST = ${TOOLROOT}/usr/sbin/gendist
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
|
||||||
|
all default:
|
||||||
|
@if [ "@PORT@" = yes ]; then \
|
||||||
|
${ECHO} "= "port; cd port; ${MAKE}; \
|
||||||
|
else \
|
||||||
|
true; \
|
||||||
|
fi
|
||||||
|
@${ECHO} "= "libtiff; cd libtiff; ${MAKE}
|
||||||
|
@${ECHO} "= "tools; cd tools; ${MAKE}
|
||||||
|
@${ECHO} "= "man; cd man; ${MAKE}
|
||||||
|
|
||||||
|
install:
|
||||||
|
@${ECHO} "= "libtiff; cd libtiff; ${MAKE} install
|
||||||
|
@${ECHO} "= "tools; cd tools; ${MAKE} install
|
||||||
|
@${ECHO} "= "man; cd man; ${MAKE} install
|
||||||
|
@if [ "@HTML@" = yes ]; then \
|
||||||
|
${ECHO} "= "html; cd html; ${MAKE} install; \
|
||||||
|
else \
|
||||||
|
true; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@if [ "@PORT@" = yes ]; then \
|
||||||
|
${ECHO} "= "port; cd port; ${MAKE} clean; \
|
||||||
|
else \
|
||||||
|
true; \
|
||||||
|
fi
|
||||||
|
@${ECHO} "= "libtiff; cd libtiff; ${MAKE} clean
|
||||||
|
@${ECHO} "= "tools; cd tools; ${MAKE} clean
|
||||||
|
@${ECHO} "= "man; cd man; ${MAKE} clean
|
||||||
|
# -cd contrib/dbs; ${MAKE} clean
|
||||||
|
# -cd contrib/dbs/xtiff; ${MAKE} clean
|
||||||
|
|
||||||
|
clobber distclean: clean
|
||||||
|
rm -f Makefile libtiff/port.h config.log
|
||||||
|
rm -f libtiff/Makefile
|
||||||
|
rm -f tools/Makefile
|
||||||
|
rm -f man/Makefile
|
||||||
|
rm -f port/Makefile port/install.sh
|
||||||
|
rm -f html/Makefile
|
||||||
|
|
||||||
|
#
|
||||||
|
# The folllowing rule creates a binary distribution for IRIX.
|
||||||
|
#
|
||||||
|
installLink::
|
||||||
|
if [ @DIR_LIB@ != /usr/lib ]; then \
|
||||||
|
${INSTALL} -idb tiff.sw.tools -F /usr/lib \
|
||||||
|
-lns @DIR_LIB@/libtiff.@DSOSUF@ -O libtiff.@DSOSUF@; \
|
||||||
|
else \
|
||||||
|
true; \
|
||||||
|
fi
|
||||||
|
product::
|
||||||
|
test -d dist || mkdir dist
|
||||||
|
rm -f dist/rawidb
|
||||||
|
SRC=`pwd` RAWIDB=`pwd`/dist/rawidb ${MAKE} install installLink
|
||||||
|
rm -f dist/idb
|
||||||
|
sort -u +4 dist/rawidb > dist/idb
|
||||||
|
${GENDIST} -v -dist dist -idb dist/idb \
|
||||||
|
-sbase `pwd` -spec ${SRCDIR}/dist/tiff.spec
|
||||||
|
|
||||||
|
#
|
||||||
|
# These rules are used to create the source distribution images
|
||||||
|
#
|
||||||
|
|
||||||
|
HOST = sgi
|
||||||
|
COMPRESS= gzip
|
||||||
|
ZIPSUF = gz
|
||||||
|
|
||||||
|
TIFFFILES=\
|
||||||
|
configure \
|
||||||
|
config.guess \
|
||||||
|
config.sub \
|
||||||
|
config.site \
|
||||||
|
Makefile.in \
|
||||||
|
README \
|
||||||
|
VERSION \
|
||||||
|
COPYRIGHT \
|
||||||
|
TODO \
|
||||||
|
test_pics.sh \
|
||||||
|
dist/tiff.spec \
|
||||||
|
dist/newalpha \
|
||||||
|
dist/newversion \
|
||||||
|
libtiff/Makefile.in \
|
||||||
|
libtiff/Makefile.lcc \
|
||||||
|
libtiff/makefile.vc \
|
||||||
|
libtiff/libtiff.def \
|
||||||
|
libtiff/t4.h \
|
||||||
|
libtiff/tiff.h \
|
||||||
|
libtiff/tiffcomp.h \
|
||||||
|
libtiff/tiffconf.h \
|
||||||
|
libtiff/tiffio.h \
|
||||||
|
libtiff/tiffiop.h \
|
||||||
|
libtiff/uvcode.h \
|
||||||
|
libtiff/mkg3states.c \
|
||||||
|
libtiff/mkspans.c \
|
||||||
|
libtiff/mkversion.c \
|
||||||
|
libtiff/tif_acorn.c \
|
||||||
|
libtiff/tif_apple.c \
|
||||||
|
libtiff/tif_atari.c \
|
||||||
|
libtiff/tif_aux.c \
|
||||||
|
libtiff/tif_close.c \
|
||||||
|
libtiff/tif_codec.c \
|
||||||
|
libtiff/tif_compress.c \
|
||||||
|
libtiff/tif_dir.h \
|
||||||
|
libtiff/tif_dir.c \
|
||||||
|
libtiff/tif_dirinfo.c \
|
||||||
|
libtiff/tif_dirread.c \
|
||||||
|
libtiff/tif_dirwrite.c \
|
||||||
|
libtiff/tif_dumpmode.c \
|
||||||
|
libtiff/tif_error.c \
|
||||||
|
libtiff/tif_fax3.c \
|
||||||
|
libtiff/fax3sm_winnt.c \
|
||||||
|
libtiff/tif_fax3.h \
|
||||||
|
libtiff/tif_flush.c \
|
||||||
|
libtiff/tif_getimage.c \
|
||||||
|
libtiff/tif_jpeg.c \
|
||||||
|
libtiff/tif_luv.c \
|
||||||
|
libtiff/tif_lzw.c \
|
||||||
|
libtiff/tif_msdos.c \
|
||||||
|
libtiff/tif_next.c \
|
||||||
|
libtiff/tif_open.c \
|
||||||
|
libtiff/tif_packbits.c \
|
||||||
|
libtiff/tif_pixarlog.c \
|
||||||
|
libtiff/tif_predict.h \
|
||||||
|
libtiff/tif_predict.c \
|
||||||
|
libtiff/tif_print.c \
|
||||||
|
libtiff/tif_read.c \
|
||||||
|
libtiff/tif_strip.c \
|
||||||
|
libtiff/tif_swab.c \
|
||||||
|
libtiff/tif_thunder.c \
|
||||||
|
libtiff/tif_tile.c \
|
||||||
|
libtiff/tif_unix.c \
|
||||||
|
libtiff/tif_version.c \
|
||||||
|
libtiff/tif_vms.c \
|
||||||
|
libtiff/tif_warning.c \
|
||||||
|
libtiff/tif_win3.c \
|
||||||
|
libtiff/tif_win32.c \
|
||||||
|
libtiff/tif_write.c \
|
||||||
|
libtiff/tif_zip.c \
|
||||||
|
port/Makefile.in \
|
||||||
|
port/getopt.c \
|
||||||
|
port/install.sh.in \
|
||||||
|
port/irix/so_locations \
|
||||||
|
port/strcasecmp.c \
|
||||||
|
port/strtoul.c \
|
||||||
|
tools/Makefile.in \
|
||||||
|
tools/Makefile.vc \
|
||||||
|
tools/Makefile.lcc \
|
||||||
|
tools/fax2tiff.c \
|
||||||
|
tools/fax2ps.c \
|
||||||
|
tools/gif2tiff.c \
|
||||||
|
tools/pal2rgb.c \
|
||||||
|
tools/ppm2tiff.c \
|
||||||
|
tools/ras2tiff.c \
|
||||||
|
tools/rasterfile.h \
|
||||||
|
tools/rgb2ycbcr.c \
|
||||||
|
tools/sgi2tiff.c \
|
||||||
|
tools/sgigt.c \
|
||||||
|
tools/sgisv.c \
|
||||||
|
tools/thumbnail.c \
|
||||||
|
tools/tiff2bw.c \
|
||||||
|
tools/tiff2rgba.c \
|
||||||
|
tools/tiff2ps.c \
|
||||||
|
tools/tiffcmp.c \
|
||||||
|
tools/tiffcp.c \
|
||||||
|
tools/tiffdither.c \
|
||||||
|
tools/tiffdump.c \
|
||||||
|
tools/tiffinfo.c \
|
||||||
|
tools/tiffmedian.c \
|
||||||
|
tools/tiffsplit.c \
|
||||||
|
tools/ycbcr.c \
|
||||||
|
man/Makefile.in \
|
||||||
|
man/fax2tiff.1 \
|
||||||
|
man/fax2ps.1 \
|
||||||
|
man/gif2tiff.1 \
|
||||||
|
man/pal2rgb.1 \
|
||||||
|
man/ppm2tiff.1 \
|
||||||
|
man/ras2tiff.1 \
|
||||||
|
man/rgb2ycbcr.1 \
|
||||||
|
man/sgi2tiff.1 \
|
||||||
|
man/thumbnail.1 \
|
||||||
|
man/tiff2bw.1 \
|
||||||
|
man/tiff2ps.1 \
|
||||||
|
man/tiffcmp.1 \
|
||||||
|
man/tiffcp.1 \
|
||||||
|
man/tiffdither.1 \
|
||||||
|
man/tiffdump.1 \
|
||||||
|
man/tiffgt.1 \
|
||||||
|
man/tiffinfo.1 \
|
||||||
|
man/tiffmedian.1 \
|
||||||
|
man/tiffsplit.1 \
|
||||||
|
man/tiffsv.1 \
|
||||||
|
man/TIFFClose.3t \
|
||||||
|
man/TIFFError.3t \
|
||||||
|
man/TIFFFlush.3t \
|
||||||
|
man/TIFFGetField.3t \
|
||||||
|
man/TIFFOpen.3t \
|
||||||
|
man/TIFFPrintDirectory.3t \
|
||||||
|
man/TIFFReadDirectory.3t \
|
||||||
|
man/TIFFReadEncodedStrip.3t \
|
||||||
|
man/TIFFReadEncodedTile.3t \
|
||||||
|
man/TIFFReadRGBAImage.3t \
|
||||||
|
man/TIFFReadRGBAStrip.3t \
|
||||||
|
man/TIFFReadRGBATile.3t \
|
||||||
|
man/TIFFReadRawStrip.3t \
|
||||||
|
man/TIFFReadRawTile.3t \
|
||||||
|
man/TIFFReadScanline.3t \
|
||||||
|
man/TIFFReadTile.3t \
|
||||||
|
man/TIFFRGBAImage.3t \
|
||||||
|
man/TIFFSetDirectory.3t \
|
||||||
|
man/TIFFSetField.3t \
|
||||||
|
man/TIFFWarning.3t \
|
||||||
|
man/TIFFWriteDirectory.3t \
|
||||||
|
man/TIFFWriteEncodedStrip.3t \
|
||||||
|
man/TIFFWriteEncodedTile.3t \
|
||||||
|
man/TIFFWriteTile.3t \
|
||||||
|
man/TIFFWriteRawStrip.3t \
|
||||||
|
man/TIFFWriteRawTile.3t \
|
||||||
|
man/TIFFWriteScanline.3t \
|
||||||
|
man/libtiff.3t \
|
||||||
|
man/TIFFbuffer.3t \
|
||||||
|
man/TIFFcodec.3t \
|
||||||
|
man/TIFFmemory.3t \
|
||||||
|
man/TIFFquery.3t \
|
||||||
|
man/TIFFsize.3t \
|
||||||
|
man/TIFFstrip.3t \
|
||||||
|
man/TIFFswab.3t \
|
||||||
|
man/TIFFtile.3t \
|
||||||
|
html/images \
|
||||||
|
html/images/back.gif \
|
||||||
|
html/images/bali.jpg \
|
||||||
|
html/images/cat.gif \
|
||||||
|
html/images/cover.jpg \
|
||||||
|
html/images/cramps.gif \
|
||||||
|
html/images/dave.gif \
|
||||||
|
html/images/info.gif \
|
||||||
|
html/images/jello.jpg \
|
||||||
|
html/images/jim.gif \
|
||||||
|
html/images/note.gif \
|
||||||
|
html/images/oxford.gif \
|
||||||
|
html/images/quad.jpg \
|
||||||
|
html/images/ring.gif \
|
||||||
|
html/images/smallliz.jpg \
|
||||||
|
html/images/strike.gif \
|
||||||
|
html/images/warning.gif \
|
||||||
|
html/Makefile.in \
|
||||||
|
html/bugs.html \
|
||||||
|
html/build.html \
|
||||||
|
html/contrib.html \
|
||||||
|
html/document.html \
|
||||||
|
html/images.html \
|
||||||
|
html/index.html \
|
||||||
|
html/internals.html \
|
||||||
|
html/intro.html \
|
||||||
|
html/libtiff.html \
|
||||||
|
html/misc.html \
|
||||||
|
html/support.html \
|
||||||
|
html/tools.html \
|
||||||
|
html/v3.4beta007.html \
|
||||||
|
html/v3.4beta016.html \
|
||||||
|
html/v3.4beta018.html \
|
||||||
|
html/v3.4beta024.html \
|
||||||
|
html/v3.4beta028.html \
|
||||||
|
html/v3.4beta029.html \
|
||||||
|
html/v3.4beta031.html \
|
||||||
|
html/v3.4beta032.html \
|
||||||
|
html/v3.4beta033.html \
|
||||||
|
html/v3.4beta034.html \
|
||||||
|
html/v3.4beta035.html \
|
||||||
|
html/v3.4beta036.html \
|
||||||
|
html/v3.5.1.html \
|
||||||
|
html/v3.5.2.html \
|
||||||
|
html/v3.5.3.html \
|
||||||
|
html/man \
|
||||||
|
html/man/TIFFClose.3t.html \
|
||||||
|
html/man/TIFFError.3t.html \
|
||||||
|
html/man/TIFFFlush.3t.html \
|
||||||
|
html/man/TIFFGetField.3t.html \
|
||||||
|
html/man/TIFFOpen.3t.html \
|
||||||
|
html/man/TIFFPrintDirectory.3t.html \
|
||||||
|
html/man/TIFFRGBAImage.3t.html \
|
||||||
|
html/man/TIFFReadDirectory.3t.html \
|
||||||
|
html/man/TIFFReadEncodedStrip.3t.html \
|
||||||
|
html/man/TIFFReadEncodedTile.3t.html \
|
||||||
|
html/man/TIFFReadRGBAImage.3t.html \
|
||||||
|
html/man/TIFFReadRGBAStrip.3t.html \
|
||||||
|
html/man/TIFFReadRGBATile.3t.html \
|
||||||
|
html/man/TIFFReadRawStrip.3t.html \
|
||||||
|
html/man/TIFFReadRawTile.3t.html \
|
||||||
|
html/man/TIFFReadScanline.3t.html \
|
||||||
|
html/man/TIFFReadTile.3t.html \
|
||||||
|
html/man/TIFFSetDirectory.3t.html \
|
||||||
|
html/man/TIFFSetField.3t.html \
|
||||||
|
html/man/TIFFWarning.3t.html \
|
||||||
|
html/man/TIFFWriteDirectory.3t.html \
|
||||||
|
html/man/TIFFWriteEncodedStrip.3t.html \
|
||||||
|
html/man/TIFFWriteEncodedTile.3t.html \
|
||||||
|
html/man/TIFFWriteRawStrip.3t.html \
|
||||||
|
html/man/TIFFWriteRawTile.3t.html \
|
||||||
|
html/man/TIFFWriteScanline.3t.html \
|
||||||
|
html/man/TIFFbuffer.3t.html \
|
||||||
|
html/man/TIFFcodec.3t.html \
|
||||||
|
html/man/TIFFmemory.3t.html \
|
||||||
|
html/man/TIFFquery.3t.html \
|
||||||
|
html/man/TIFFsize.3t.html \
|
||||||
|
html/man/TIFFstrip.3t.html \
|
||||||
|
html/man/TIFFswab.3t.html \
|
||||||
|
html/man/TIFFtile.3t.html \
|
||||||
|
html/man/fax2ps.1.html \
|
||||||
|
html/man/fax2tiff.1.html \
|
||||||
|
html/man/gif2tiff.1.html \
|
||||||
|
html/man/libtiff.3t.html \
|
||||||
|
html/man/pal2rgb.1.html \
|
||||||
|
html/man/ppm2tiff.1.html \
|
||||||
|
html/man/ras2tiff.1.html \
|
||||||
|
html/man/rgb2ycbcr.1.html \
|
||||||
|
html/man/sgi2tiff.1.html \
|
||||||
|
html/man/thumbnail.1.html \
|
||||||
|
html/man/tiff2bw.1.html \
|
||||||
|
html/man/tiff2ps.1.html \
|
||||||
|
html/man/tiffcmp.1.html \
|
||||||
|
html/man/tiffcp.1.html \
|
||||||
|
html/man/tiffdither.1.html \
|
||||||
|
html/man/tiffdump.1.html \
|
||||||
|
html/man/tiffgt.1.html \
|
||||||
|
html/man/tiffinfo.1.html \
|
||||||
|
html/man/tiffmedian.1.html \
|
||||||
|
html/man/tiffsplit.1.html \
|
||||||
|
html/man/tiffsv.1.html \
|
||||||
|
html/man/index.html \
|
||||||
|
html/man/TIFFWriteTile.3t.html \
|
||||||
|
${NULL}
|
||||||
|
OTHERFILES=\
|
||||||
|
${NULL}
|
||||||
|
CONTRIBFILES=\
|
||||||
|
contrib/dbs/README \
|
||||||
|
contrib/dbs/Imakefile \
|
||||||
|
contrib/dbs/tiff-bi.c \
|
||||||
|
contrib/dbs/tiff-grayscale.c \
|
||||||
|
contrib/dbs/tiff-palette.c \
|
||||||
|
contrib/dbs/tiff-rgb.c \
|
||||||
|
contrib/dbs/xtiff/README \
|
||||||
|
contrib/dbs/xtiff/Imakefile \
|
||||||
|
contrib/dbs/xtiff/patchlevel.h \
|
||||||
|
contrib/dbs/xtiff/xtiff.c \
|
||||||
|
contrib/dbs/xtiff/xtifficon.h \
|
||||||
|
contrib/ras/README \
|
||||||
|
contrib/ras/ras2tif.c \
|
||||||
|
contrib/ras/tif2ras.c \
|
||||||
|
contrib/vms/libtiff/makevms.com \
|
||||||
|
contrib/vms/libtiff/tiff.opt \
|
||||||
|
contrib/vms/libtiff/tiffshraxp.opt \
|
||||||
|
contrib/vms/libtiff/tiffshrvax.opt \
|
||||||
|
contrib/vms/libtiff/tiffvec.mar \
|
||||||
|
contrib/vms/tools/makevms.com \
|
||||||
|
contrib/tags/README \
|
||||||
|
contrib/tags/Makefile.gcc \
|
||||||
|
contrib/tags/Makefile.mpw \
|
||||||
|
contrib/tags/listtif.c \
|
||||||
|
contrib/tags/maketif.c \
|
||||||
|
contrib/tags/xtif_dir.c \
|
||||||
|
contrib/tags/xtiffio.h \
|
||||||
|
contrib/tags/xtiffiop.h \
|
||||||
|
contrib/mac-mpw/README \
|
||||||
|
contrib/mac-mpw/BUILD.mpw \
|
||||||
|
contrib/mac-mpw/libtiff.make \
|
||||||
|
contrib/mac-mpw/mactrans.c \
|
||||||
|
contrib/mac-mpw/port.make \
|
||||||
|
contrib/mac-mpw/tools.make \
|
||||||
|
contrib/mac-mpw/top.make \
|
||||||
|
contrib/acorn/ReadMe \
|
||||||
|
contrib/acorn/Makefile \
|
||||||
|
contrib/acorn/SetVars \
|
||||||
|
contrib/acorn/cleanlib \
|
||||||
|
contrib/acorn/convert \
|
||||||
|
contrib/acorn/install \
|
||||||
|
contrib/win32/README \
|
||||||
|
contrib/win32/dllshell.c \
|
||||||
|
contrib/win32/libtiff.def \
|
||||||
|
contrib/win95/README \
|
||||||
|
contrib/win95/Makefile.w95 \
|
||||||
|
contrib/win95/tiff2dib.c \
|
||||||
|
contrib/winnt/README \
|
||||||
|
contrib/winnt/README.console \
|
||||||
|
contrib/winnt/fax3sm.c \
|
||||||
|
contrib/winnt/libtiff.def \
|
||||||
|
contrib/winnt/libtiff.mak \
|
||||||
|
contrib/winnt/libtiff.vcp \
|
||||||
|
contrib/winnt/version.h \
|
||||||
|
contrib/mac-cw/README \
|
||||||
|
contrib/mac-cw/Makefile.script \
|
||||||
|
contrib/mac-cw/mac_main.c \
|
||||||
|
contrib/mac-cw/mac_main.h \
|
||||||
|
contrib/mac-cw/metrowerks.note \
|
||||||
|
contrib/mac-cw/mkg3_main.c \
|
||||||
|
contrib/mac-cw/version.h \
|
||||||
|
contrib/dosdjgpp/README \
|
||||||
|
contrib/dosdjgpp/Makefile.lib \
|
||||||
|
contrib/dosdjgpp/Makefile.tools \
|
||||||
|
contrib/dosdjgpp/Makefile.top \
|
||||||
|
contrib/dosdjgpp/conf.bat \
|
||||||
|
contrib/dosdjgpp/port.h \
|
||||||
|
contrib/mfs/README \
|
||||||
|
contrib/mfs/mfs_file.c \
|
||||||
|
contrib/pds/README \
|
||||||
|
contrib/pds/tif_imageiter.c \
|
||||||
|
contrib/pds/tif_imageiter.h \
|
||||||
|
contrib/pds/tif_pdsdirread.c \
|
||||||
|
contrib/pds/tif_pdsdirwrite.c \
|
||||||
|
contrib/addtiffo/README \
|
||||||
|
contrib/addtiffo/Makefile \
|
||||||
|
contrib/addtiffo/Makefile.vc \
|
||||||
|
contrib/addtiffo/addtiffo.c \
|
||||||
|
contrib/addtiffo/tif_overview.cpp \
|
||||||
|
contrib/addtiffo/rawblockedimage.cpp \
|
||||||
|
contrib/addtiffo/rawblockedimage.h \
|
||||||
|
contrib/iptcutil/Makefile \
|
||||||
|
contrib/iptcutil/iptcutil.c \
|
||||||
|
contrib/iptcutil/test.iptc \
|
||||||
|
contrib/iptcutil/text.txt \
|
||||||
|
${NULL}
|
||||||
|
|
||||||
|
DISTFILES=\
|
||||||
|
${TIFFFILES} \
|
||||||
|
dist/tiff.alpha \
|
||||||
|
dist/tiff.version \
|
||||||
|
${OTHERFILES} \
|
||||||
|
${CONTRIBFILES} \
|
||||||
|
${NULL}
|
||||||
|
|
||||||
|
CONFIG=\
|
||||||
|
-with-CC=cc \
|
||||||
|
-with-GCOPTS=" " \
|
||||||
|
-with-JPEG=yes \
|
||||||
|
-with-DIR_JPEG=../src/jpeg-5a \
|
||||||
|
-with-ZIP=yes \
|
||||||
|
-with-DIR_LIBGZ=../src/zlib \
|
||||||
|
${NULL}
|
||||||
|
|
||||||
|
rcsclean:
|
||||||
|
rcsclean ${TIFFFILES} && co ${TIFFFILES}
|
||||||
|
|
||||||
|
release:
|
||||||
|
(cd ${SRCDIR}/dist; sh newversion)
|
||||||
|
${MAKE} release.stamp
|
||||||
|
# ${SRCDIR}/configure ${CONFIG}
|
||||||
|
# ${MAKE} product
|
||||||
|
${MAKE} release.tar.zip
|
||||||
|
|
||||||
|
|
||||||
|
# stamp relevant files according to current alpha
|
||||||
|
release.stamp:
|
||||||
|
VERSION=`echo @VERSION@ | tr "." "-"`; \
|
||||||
|
# cvs tag -R Release-$$VERSION ;
|
||||||
|
date "+%m/%d/%Y" > RELEASE-DATE
|
||||||
|
|
||||||
|
#diffs since last release
|
||||||
|
releasediff:
|
||||||
|
-@for i in ${TIFFFILES}; do \
|
||||||
|
cvs diff -D`cat RELEASE-DATE` ${SRCDIR}/$$i; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# create release distribution archive
|
||||||
|
release.tar.zip:
|
||||||
|
VERSION="@VERSION@"; \
|
||||||
|
rm -f ../tiff-$$VERSION $$VERSION $$VERSION-tar; \
|
||||||
|
ln -s ${SRCDIR} tiff-$$VERSION; \
|
||||||
|
(for i in ${DISTFILES}; do \
|
||||||
|
echo $$i; \
|
||||||
|
done) | sed "s;.*;tiff-$$VERSION/&;" >$$VERSION; \
|
||||||
|
tar cvf $$VERSION-tar `cat $$VERSION`; \
|
||||||
|
zip ../tiff-$$VERSION.zip `cat $$VERSION`; \
|
||||||
|
rm -f tiff-$$VERSION-tar.${ZIPSUF}; \
|
||||||
|
cat $$VERSION-tar | ${COMPRESS} >../tiff-$$VERSION.tar.${ZIPSUF}; \
|
||||||
|
rm -f tiff-$$VERSION $$VERSION $$VERSION-tar;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Simple rule to run test suite assuming that pics directory is
|
||||||
|
# just below this one, and that .rpt files are available.
|
||||||
|
#
|
||||||
|
test:
|
||||||
|
test_pics.sh pics/*.tif
|
||||||
|
|
||||||
|
#
|
||||||
|
# Create a package of the test images.
|
||||||
|
#
|
||||||
|
|
||||||
|
PICS=\
|
||||||
|
pics/README \
|
||||||
|
pics/cramps.tif \
|
||||||
|
pics/cramps-tile.tif \
|
||||||
|
pics/fax2d.tif \
|
||||||
|
pics/g3test.tif \
|
||||||
|
pics/jello.tif \
|
||||||
|
pics/jim___cg.tif \
|
||||||
|
pics/jim___dg.tif \
|
||||||
|
pics/jim___gg.tif \
|
||||||
|
pics/jim___ah.tif \
|
||||||
|
pics/strike.tif \
|
||||||
|
pics/oxford.tif \
|
||||||
|
pics/quad-lzw.tif \
|
||||||
|
pics/quad-tile.tif \
|
||||||
|
pics/text.tif \
|
||||||
|
pics/ycbcr-cat.tif \
|
||||||
|
pics/smallliz.tif \
|
||||||
|
pics/zackthecat.tif \
|
||||||
|
pics/fax2d.g3 \
|
||||||
|
pics/g3test.g3 \
|
||||||
|
${NULL}
|
||||||
|
|
||||||
|
pics.tar:
|
||||||
|
tar cvf - ${PICS} | ${COMPRESS} > tiffpics.tar.${ZIPSUF}
|
||||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
+476
@@ -0,0 +1,476 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Attempt to guess a canonical system name.
|
||||||
|
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
#
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Written by Per Bothner <bothner@cygnus.com>.
|
||||||
|
# The master version of this file is at the FSF in /home/gd/gnu/lib.
|
||||||
|
#
|
||||||
|
# This script attempts to guess a canonical system name similar to
|
||||||
|
# config.sub. If it succeeds, it prints the system name on stdout, and
|
||||||
|
# exits with 0. Otherwise, it exits with 1.
|
||||||
|
#
|
||||||
|
# The plan is that this can be called by configure scripts if you
|
||||||
|
# don't specify an explicit system type (host/target name).
|
||||||
|
#
|
||||||
|
# Only a few systems have been added to this list; please add others
|
||||||
|
# (but try to keep the structure clean).
|
||||||
|
#
|
||||||
|
|
||||||
|
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
||||||
|
# (ghazi@noc.rutgers.edu 8/24/94.)
|
||||||
|
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
||||||
|
PATH=$PATH:/.attbin ; export PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
||||||
|
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
||||||
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
||||||
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
||||||
|
|
||||||
|
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
|
||||||
|
|
||||||
|
# Note: order is significant - the case branches are not exclusive.
|
||||||
|
|
||||||
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||||
|
alpha:OSF1:V*:*)
|
||||||
|
# After 1.2, OSF1 uses "V1.3" for uname -r.
|
||||||
|
echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^V//'`
|
||||||
|
exit 0 ;;
|
||||||
|
alpha:OSF1:*:*)
|
||||||
|
# 1.2 uses "1.2" for uname -r.
|
||||||
|
echo alpha-dec-osf${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||||
|
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||||
|
exit 0;;
|
||||||
|
Pyramid*:OSx*:*:*)
|
||||||
|
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
||||||
|
echo pyramid-pyramid-sysv3
|
||||||
|
else
|
||||||
|
echo pyramid-pyramid-bsd
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
sun4*:SunOS:5.*:*)
|
||||||
|
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
|
exit 0 ;;
|
||||||
|
sun4*:SunOS:6*:*)
|
||||||
|
# According to config.sub, this is the proper way to canonicalize
|
||||||
|
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
||||||
|
# it's likely to be more like Solaris than SunOS4.
|
||||||
|
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||||
|
exit 0 ;;
|
||||||
|
sun4*:SunOS:*:*)
|
||||||
|
# Japanese Language versions have a version number like `4.1.3-JL'.
|
||||||
|
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
||||||
|
exit 0 ;;
|
||||||
|
sun3*:SunOS:*:*)
|
||||||
|
echo m68k-sun-sunos${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
RISC*:ULTRIX:*:*)
|
||||||
|
echo mips-dec-ultrix${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
VAX*:ULTRIX*:*:*)
|
||||||
|
echo vax-dec-ultrix${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
mips:*:5*:RISCos)
|
||||||
|
echo mips-mips-riscos${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
m88k:CX/UX:7*:*)
|
||||||
|
echo m88k-harris-cxux7
|
||||||
|
exit 0 ;;
|
||||||
|
m88k:*:4*:R4*)
|
||||||
|
echo m88k-motorola-sysv4
|
||||||
|
exit 0 ;;
|
||||||
|
m88k:*:3*:R3*)
|
||||||
|
echo m88k-motorola-sysv3
|
||||||
|
exit 0 ;;
|
||||||
|
AViiON:dgux:*:*)
|
||||||
|
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
|
||||||
|
-o ${TARGET_BINARY_INTERFACE}x = x ] ; then
|
||||||
|
echo m88k-dg-dgux${UNAME_RELEASE}
|
||||||
|
else
|
||||||
|
echo m88k-dg-dguxbcs${UNAME_RELEASE}
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
||||||
|
echo m88k-dolphin-sysv3
|
||||||
|
exit 0 ;;
|
||||||
|
M88*:*:R3*:*)
|
||||||
|
# Delta 88k system running SVR3
|
||||||
|
echo m88k-motorola-sysv3
|
||||||
|
exit 0 ;;
|
||||||
|
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
||||||
|
echo m88k-tektronix-sysv3
|
||||||
|
exit 0 ;;
|
||||||
|
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
||||||
|
echo m68k-tektronix-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
*:IRIX*:*:*)
|
||||||
|
echo mips-sgi-irix${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
i[34]86:AIX:*:*)
|
||||||
|
echo i386-ibm-aix
|
||||||
|
exit 0 ;;
|
||||||
|
*:AIX:2:3)
|
||||||
|
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
|
sed 's/^ //' << EOF >dummy.c
|
||||||
|
#include <sys/systemcfg.h>
|
||||||
|
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
if (!__power_pc())
|
||||||
|
exit(1);
|
||||||
|
puts("powerpc-ibm-aix3.2.5");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
||||||
|
rm -f dummy.c dummy
|
||||||
|
echo rs6000-ibm-aix3.2.5
|
||||||
|
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
|
echo rs6000-ibm-aix3.2.4
|
||||||
|
else
|
||||||
|
echo rs6000-ibm-aix3.2
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
*:AIX:*:4)
|
||||||
|
if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
|
||||||
|
IBM_ARCH=rs6000
|
||||||
|
else
|
||||||
|
IBM_ARCH=powerpc
|
||||||
|
fi
|
||||||
|
if grep bos410 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
|
IBM_REV=4.1
|
||||||
|
elif grep bos411 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||||
|
IBM_REV=4.1.1
|
||||||
|
else
|
||||||
|
IBM_REV=4.${UNAME_RELEASE}
|
||||||
|
fi
|
||||||
|
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
||||||
|
exit 0 ;;
|
||||||
|
*:AIX:*:*)
|
||||||
|
echo rs6000-ibm-aix
|
||||||
|
exit 0 ;;
|
||||||
|
*:BOSX:*:*)
|
||||||
|
echo rs6000-bull-bosx
|
||||||
|
exit 0 ;;
|
||||||
|
DPX/2?00:B.O.S.:*:*)
|
||||||
|
echo m68k-bull-sysv3
|
||||||
|
exit 0 ;;
|
||||||
|
9000/[34]??:4.3bsd:1.*:*)
|
||||||
|
echo m68k-hp-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
||||||
|
echo m68k-hp-bsd4.4
|
||||||
|
exit 0 ;;
|
||||||
|
9000/[3478]??:HP-UX:*:*)
|
||||||
|
case "${UNAME_MACHINE}" in
|
||||||
|
9000/31? ) HP_ARCH=m68000 ;;
|
||||||
|
9000/[34]?? ) HP_ARCH=m68k ;;
|
||||||
|
9000/7?? | 9000/8?7 ) HP_ARCH=hppa1.1 ;;
|
||||||
|
9000/8?? ) HP_ARCH=hppa1.0 ;;
|
||||||
|
esac
|
||||||
|
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
||||||
|
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
||||||
|
exit 0 ;;
|
||||||
|
3050*:HI-UX:*:*)
|
||||||
|
sed 's/^ //' << EOF >dummy.c
|
||||||
|
#include <unistd.h>
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
long cpu = sysconf (_SC_CPU_VERSION);
|
||||||
|
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
|
||||||
|
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
|
||||||
|
results, however. */
|
||||||
|
if (CPU_IS_PA_RISC (cpu))
|
||||||
|
{
|
||||||
|
switch (cpu)
|
||||||
|
{
|
||||||
|
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
|
||||||
|
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
|
||||||
|
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
|
||||||
|
default: puts ("hppa-hitachi-hiuxwe2"); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (CPU_IS_HP_MC68K (cpu))
|
||||||
|
puts ("m68k-hitachi-hiuxwe2");
|
||||||
|
else puts ("unknown-hitachi-hiuxwe2");
|
||||||
|
exit (0);
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
||||||
|
rm -f dummy.c dummy
|
||||||
|
echo unknown-hitachi-hiuxwe2
|
||||||
|
exit 0 ;;
|
||||||
|
9000/7??:4.3bsd:*:* | 9000/8?7:4.3bsd:*:* )
|
||||||
|
echo hppa1.1-hp-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
9000/8??:4.3bsd:*:*)
|
||||||
|
echo hppa1.0-hp-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
hp7??:OSF1:*:* | hp8?7:OSF1:*:* )
|
||||||
|
echo hppa1.1-hp-osf
|
||||||
|
exit 0 ;;
|
||||||
|
hp8??:OSF1:*:*)
|
||||||
|
echo hppa1.0-hp-osf
|
||||||
|
exit 0 ;;
|
||||||
|
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||||
|
echo c1-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
||||||
|
if getsysinfo -f scalar_acc
|
||||||
|
then echo c32-convex-bsd
|
||||||
|
else echo c2-convex-bsd
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
||||||
|
echo c34-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
||||||
|
echo c38-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
||||||
|
echo c4-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
CRAY*X-MP:UNICOS:*:*)
|
||||||
|
echo xmp-cray-unicos
|
||||||
|
exit 0 ;;
|
||||||
|
CRAY*Y-MP:UNICOS:*:*)
|
||||||
|
echo ymp-cray-unicos
|
||||||
|
exit 0 ;;
|
||||||
|
CRAY-2:UNICOS:*:*)
|
||||||
|
echo cray2-cray-unicos
|
||||||
|
exit 0 ;;
|
||||||
|
hp3[0-9][05]:NetBSD:*:*)
|
||||||
|
echo m68k-hp-netbsd${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
i[345]86:CYGWIN*:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-Cygwin${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
i[34]86:BSD/386:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
*:BSD/OS:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
*:FreeBSD:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||||
|
exit 0 ;;
|
||||||
|
*:NetBSD:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||||
|
exit 0 ;;
|
||||||
|
*:GNU:*:*)
|
||||||
|
echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
||||||
|
exit 0 ;;
|
||||||
|
*:Linux:*:*)
|
||||||
|
echo ${UNAME_MACHINE}-unknown-linux
|
||||||
|
exit 0 ;;
|
||||||
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
||||||
|
# are messed up and put the nodename in both sysname and nodename.
|
||||||
|
i[34]86:DYNIX/ptx:4*:*)
|
||||||
|
echo i386-sequent-sysv4
|
||||||
|
exit 0 ;;
|
||||||
|
i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
|
||||||
|
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
||||||
|
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
|
||||||
|
else
|
||||||
|
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
i[34]86:*:3.2:*)
|
||||||
|
if test -d /etc/conf/cf.d -a -f /usr/options/cb.name; then
|
||||||
|
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
||||||
|
echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
|
||||||
|
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
||||||
|
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
||||||
|
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
||||||
|
echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
|
||||||
|
else
|
||||||
|
echo ${UNAME_MACHINE}-unknown-sysv32
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
Intel:Mach:3*:*)
|
||||||
|
echo i386-unknown-mach3
|
||||||
|
exit 0 ;;
|
||||||
|
i860:*:4.*:*) # i860-SVR4
|
||||||
|
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
||||||
|
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
||||||
|
else # Add other i860-SVR4 vendors below as they are discovered.
|
||||||
|
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
mini*:CTIX:SYS*5:*)
|
||||||
|
# "miniframe"
|
||||||
|
echo m68010-convergent-sysv
|
||||||
|
exit 0 ;;
|
||||||
|
M680[234]0:*:R3V[567]*:*)
|
||||||
|
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
||||||
|
3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0)
|
||||||
|
uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||||
|
&& echo i486-ncr-sysv4.3 && exit 0 ;;
|
||||||
|
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||||
|
uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||||
|
&& echo i486-ncr-sysv4 && exit 0 ;;
|
||||||
|
m680[234]0:LynxOS:2.2*:*)
|
||||||
|
echo m68k-lynx-lynxos${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
mc68030:UNIX_System_V:4.*:*)
|
||||||
|
echo m68k-atari-sysv4
|
||||||
|
exit 0 ;;
|
||||||
|
i[34]86:LynxOS:2.2*:*)
|
||||||
|
echo i386-lynx-lynxos${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
TSUNAMI:LynxOS:2.2*:*)
|
||||||
|
echo sparc-lynx-lynxos${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
rs6000:LynxOS:2.2*:*)
|
||||||
|
echo rs6000-lynx-lynxos${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
RM*:SINIX-*:*:*)
|
||||||
|
echo mips-sni-sysv4
|
||||||
|
exit 0 ;;
|
||||||
|
*:SINIX-*:*:*)
|
||||||
|
if uname -p 2>/dev/null >/dev/null ; then
|
||||||
|
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
||||||
|
echo ${UNAME_MACHINE}-sni-sysv4
|
||||||
|
else
|
||||||
|
echo ns32k-sni-sysv
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#echo '(No uname command or uname output not recognized.)' 1>&2
|
||||||
|
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
||||||
|
|
||||||
|
cat >dummy.c <<EOF
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
#if defined (sony)
|
||||||
|
#if defined (MIPSEB)
|
||||||
|
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
||||||
|
I don't know.... */
|
||||||
|
printf ("mips-sony-bsd\n"); exit (0);
|
||||||
|
#else
|
||||||
|
printf ("m68k-sony-newsos\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
||||||
|
printf ("arm-acorn-riscix"); exit (0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (hp300) && !defined (hpux)
|
||||||
|
printf ("m68k-hp-bsd\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (NeXT)
|
||||||
|
#if !defined (__ARCHITECTURE__)
|
||||||
|
#define __ARCHITECTURE__ "m68k"
|
||||||
|
#endif
|
||||||
|
int version;
|
||||||
|
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
||||||
|
printf ("%s-next-nextstep%s\n", __ARCHITECTURE__, version==2 ? "2" : "3");
|
||||||
|
exit (0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (MULTIMAX) || defined (n16)
|
||||||
|
#if defined (UMAXV)
|
||||||
|
printf ("ns32k-encore-sysv\n"); exit (0);
|
||||||
|
#else
|
||||||
|
#if defined (CMU)
|
||||||
|
printf ("ns32k-encore-mach\n"); exit (0);
|
||||||
|
#else
|
||||||
|
printf ("ns32k-encore-bsd\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (__386BSD__)
|
||||||
|
printf ("i386-unknown-bsd\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (sequent)
|
||||||
|
#if defined (i386)
|
||||||
|
printf ("i386-sequent-dynix\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
#if defined (ns32000)
|
||||||
|
printf ("ns32k-sequent-dynix\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (_SEQUENT_)
|
||||||
|
printf ("i386-sequent-ptx\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (vax)
|
||||||
|
#if !defined (ultrix)
|
||||||
|
printf ("vax-dec-bsd\n"); exit (0);
|
||||||
|
#else
|
||||||
|
printf ("vax-dec-ultrix\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (alliant) && defined (i860)
|
||||||
|
printf ("i860-alliant-bsd\n"); exit (0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
|
||||||
|
rm -f dummy.c dummy
|
||||||
|
|
||||||
|
# Apollos put the system type in the environment.
|
||||||
|
|
||||||
|
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
||||||
|
|
||||||
|
# Convex versions that predate uname can use getsysinfo(1)
|
||||||
|
|
||||||
|
if [ -x /usr/convex/getsysinfo ]
|
||||||
|
then
|
||||||
|
case `getsysinfo -f cpu_type` in
|
||||||
|
c1*)
|
||||||
|
echo c1-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
c2*)
|
||||||
|
if getsysinfo -f scalar_acc
|
||||||
|
then echo c32-convex-bsd
|
||||||
|
else echo c2-convex-bsd
|
||||||
|
fi
|
||||||
|
exit 0 ;;
|
||||||
|
c34*)
|
||||||
|
echo c34-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
c38*)
|
||||||
|
echo c38-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
c4*)
|
||||||
|
echo c4-convex-bsd
|
||||||
|
exit 0 ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
#echo '(Unable to guess system type)' 1>&2
|
||||||
|
|
||||||
|
exit 1
|
||||||
Executable
+160
@@ -0,0 +1,160 @@
|
|||||||
|
# $Header: /home/cvsroot/libtiff/config.site,v 1.1.1.1 2000/06/24 19:10:16 tshead Exp $
|
||||||
|
#
|
||||||
|
# TIFF Software
|
||||||
|
#
|
||||||
|
# Copyright (c) 1990-1997 Sam Leffler
|
||||||
|
# Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, distribute, and sell this software and
|
||||||
|
# its documentation for any purpose is hereby granted without fee, provided
|
||||||
|
# that (i) the above copyright notices and this permission notice appear in
|
||||||
|
# all copies of the software and related documentation, and (ii) the names of
|
||||||
|
# Sam Leffler and Silicon Graphics may not be used in any advertising or
|
||||||
|
# publicity relating to the software without the specific, prior written
|
||||||
|
# permission of Sam Leffler and Silicon Graphics.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||||
|
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#
|
||||||
|
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||||
|
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
||||||
|
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||||||
|
# OF THIS SOFTWARE.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# This file holds site-specific configuration parameters.
|
||||||
|
#
|
||||||
|
# Nothing is defined in here by default, the definitions
|
||||||
|
# commented out below serve as documentation for what you
|
||||||
|
# can set in this file or a config.local file.
|
||||||
|
#
|
||||||
|
# Note that you do not need to set anything here unless you
|
||||||
|
# want to override the auto-configuration behaviour and/or
|
||||||
|
# interactive prompting done by the configure script.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Package controls.
|
||||||
|
#
|
||||||
|
#DSO="auto" # auto|IRIX|IRIX52 enable DSO support for system
|
||||||
|
#JPEG="no" # yes|no configure JPEG support (see below)
|
||||||
|
#ZIP="no" # yes|no configure Deflate support (see below)
|
||||||
|
#LIBGL="auto" # yes|no|auto configure IRIS GL-based tools
|
||||||
|
#LIBIMAGE="auto" # yes|no|auto configure SGI RGB image tools
|
||||||
|
#HTML="no" # yes|no install HTML documentation
|
||||||
|
|
||||||
|
#
|
||||||
|
# Directory parameters.
|
||||||
|
#
|
||||||
|
#DIR_BIN="/usr/local/bin" # directory for tools
|
||||||
|
#DIR_LIB="/usr/local/lib" # directory for libraries
|
||||||
|
#DIR_INC="/usr/local/include" # directory for include files
|
||||||
|
#DIR_MAN="/usr/local/man" # directory for manual pages
|
||||||
|
#DIR_HTML="/var/httpd/htdocs/tiff" # directory for HTML documentation
|
||||||
|
|
||||||
|
#
|
||||||
|
# Configuring supporting libraries.
|
||||||
|
#
|
||||||
|
# The TIFF software makes use of two ancillary packages: the IJG
|
||||||
|
# distribution to support the JPEG codec and the zlib distribution
|
||||||
|
# to support the Deflate codec. To setup use of these packages you
|
||||||
|
# need to specify where each package's include files are located and
|
||||||
|
# where the pre-built library (static archive or DSO) is located.
|
||||||
|
# These may be different or the same (as when the package is compiled
|
||||||
|
# and referenced directly from the place where the software was
|
||||||
|
# loaded and compiled).
|
||||||
|
#
|
||||||
|
# DIRS_LIBINC is a space-separated list of directories to use for
|
||||||
|
# locating include files in these packages. Note that it should not
|
||||||
|
# include -I options as might be passed to the C preprocessor; these
|
||||||
|
# are automatically added by the configure script when the Makefiles
|
||||||
|
# are generated.
|
||||||
|
#
|
||||||
|
# DIR_<package>LIB is the pathname of the directory where <package>'s
|
||||||
|
# pre-built library may be found; this is used when building a TIFF
|
||||||
|
# DSO (on systems where support is present) and when building the
|
||||||
|
# programs in the tools directory. By default the configure script
|
||||||
|
# will load the associated library using
|
||||||
|
#
|
||||||
|
# -L${DIR_<package>LIB} -l<package>
|
||||||
|
#
|
||||||
|
# e.g. -L${DIR_JPEGLIB} -ljpeg. If this is wrong for your system
|
||||||
|
# (e.g. your compiler/loader does not support the -L option), then
|
||||||
|
# the LIB<package> parameter can be set explicitly to specify the
|
||||||
|
# library to use.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# JPEG-specific parameters; used when JPEG support is enabled (see above).
|
||||||
|
#
|
||||||
|
# JPEG support requires release 5 or later of the IJG code,
|
||||||
|
# which you can find on the Internet at ftp.uu.net:/graphics/jpeg/.
|
||||||
|
#
|
||||||
|
#DIRS_LIBINC="$DIRS_LIBINC ../src/jpeg-6b" # directory for jpeg include files
|
||||||
|
#DIR_JPEGLIB=../src/jpeg-6b # directory for libjpeg
|
||||||
|
|
||||||
|
#
|
||||||
|
# Deflate-specific parameters; used when Deflate support is enabled (see above).
|
||||||
|
#
|
||||||
|
# NB: Deflate support requires version 0.92 or later of the zlib
|
||||||
|
# library written by Jean-loup Gailly and Mark Adler. Starting
|
||||||
|
# with about 0.95 the library is called libz.a (previously it was
|
||||||
|
# libgz.a). The library was last found at
|
||||||
|
#
|
||||||
|
# ftp://ftp.uu.net/graphics/png/code/zlib-0.93.tar.gz
|
||||||
|
#
|
||||||
|
# Look for it also at ftp://ftp.uu.net/pub/archiving/zip/zlib.
|
||||||
|
#
|
||||||
|
#DIRS_LIBINC="$DIRS_LIBINC ../zlib" # directory for zlib include files
|
||||||
|
#DIR_GZLIB="../zlib" # directory for libz
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous parameters.
|
||||||
|
#
|
||||||
|
#FILLORDER="MS2LSB" # bit order of cpu (MSB2LSB/LSB2MSB)
|
||||||
|
#MANSCHEME="sysv-source-cat-strip" # manual page installation scheme
|
||||||
|
|
||||||
|
#
|
||||||
|
# Parameters used when building the software.
|
||||||
|
#
|
||||||
|
# Note that configure has several ENVOPTS built into it that are
|
||||||
|
# set according to the target. This is done to help naive folks.
|
||||||
|
#
|
||||||
|
# Beware of changing the INSTALL definition; you *must* have an
|
||||||
|
# install script that emulates the Silicon Graphics install program!
|
||||||
|
#
|
||||||
|
#AR="/bin/ar" # pathname of suitable ar program
|
||||||
|
#AROPTS="rc" # options to ar for creating archive
|
||||||
|
#CC="gcc" # name/pathname of C compiler
|
||||||
|
#ENVOPTS="-Aa" # options for getting ANSI C
|
||||||
|
#GCOPTS="-g" # options to pass C compiler
|
||||||
|
#LIBPORT='${PORT}/libport.a' # library with emulation code
|
||||||
|
#MACHDEPLIBS="" # extra libraries for linking
|
||||||
|
#PORTFUNCS="" # non-standard functions to emulate
|
||||||
|
#RANLIB=":" # pathname of suitable ranlib program
|
||||||
|
#DSOSUF="so" # DSO filename suffix
|
||||||
|
#LIBCOPTS="-K PIC" # compiler options for building library
|
||||||
|
|
||||||
|
#
|
||||||
|
# Makefile construction parameters.
|
||||||
|
#
|
||||||
|
# These should not normally be set; configure will
|
||||||
|
# deduce the appropriate syntax to use for includes.
|
||||||
|
#
|
||||||
|
#SETMAKE='MAKE = ${MAKE}' # define if make does not setup $MAKE
|
||||||
|
|
||||||
|
#
|
||||||
|
# General system stuff used by the distribution.
|
||||||
|
#
|
||||||
|
#CHMOD="/etc/chmod" # pathname of suitable chmod program
|
||||||
|
#INSTALL='${SHELL} ${PORT}/install.sh' # SGI install program/emulator
|
||||||
|
#LN="/bin/ln" # pathname of suitable ln program
|
||||||
|
#LN_S="-s" # option to ${LN} to create symlink
|
||||||
|
#MV_F="-f" # option to ${MV} to force operation
|
||||||
|
#SED="/bin/sed" # pathname of suitable sed program
|
||||||
|
#SCRIPT_SH="/bin/sh" # pathname of suitable shell
|
||||||
|
#STRIP="/bin/strip" # strip program used by install.sh
|
||||||
+793
@@ -0,0 +1,793 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Configuration validation subroutine script, version 1.1.
|
||||||
|
# Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||||
|
# This file is (in principle) common to ALL GNU software.
|
||||||
|
# The presence of a machine in this file suggests that SOME GNU software
|
||||||
|
# can handle that machine. It does not imply ALL GNU software can.
|
||||||
|
#
|
||||||
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
# As a special exception to the GNU General Public License, if you
|
||||||
|
# distribute this file as part of a program that contains a
|
||||||
|
# configuration script generated by Autoconf, you may include it under
|
||||||
|
# the same distribution terms that you use for the rest of that program.
|
||||||
|
|
||||||
|
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||||
|
# Supply the specified configuration type as an argument.
|
||||||
|
# If it is invalid, we print an error message on stderr and exit with code 1.
|
||||||
|
# Otherwise, we print the canonical config type on stdout and succeed.
|
||||||
|
|
||||||
|
# This file is supposed to be the same for all GNU packages
|
||||||
|
# and recognize all the CPU types, system types and aliases
|
||||||
|
# that are meaningful with *any* GNU software.
|
||||||
|
# Each package is responsible for reporting which valid configurations
|
||||||
|
# it does not support. The user should be able to distinguish
|
||||||
|
# a failure to support a valid configuration from a meaningless
|
||||||
|
# configuration.
|
||||||
|
|
||||||
|
# The goal of this file is to map all the various variations of a given
|
||||||
|
# machine specification into a single specification in the form:
|
||||||
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
||||||
|
# It is wrong to echo any other type of specification.
|
||||||
|
|
||||||
|
# First pass through any local machine types.
|
||||||
|
case $1 in
|
||||||
|
*local*)
|
||||||
|
echo $1
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Separate what the user gave into CPU-COMPANY and OS (if any).
|
||||||
|
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
||||||
|
if [ $basic_machine != $1 ]
|
||||||
|
then os=`echo $1 | sed 's/.*-/-/'`
|
||||||
|
else os=; fi
|
||||||
|
|
||||||
|
### Let's recognize common machines as not being operating systems so
|
||||||
|
### that things like config.sub decstation-3100 work. We also
|
||||||
|
### recognize some manufacturers as not being operating systems, so we
|
||||||
|
### can provide default operating systems below.
|
||||||
|
case $os in
|
||||||
|
-sun*os*)
|
||||||
|
# Prevent following clause from handling this invalid input.
|
||||||
|
;;
|
||||||
|
-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
|
||||||
|
-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
|
||||||
|
-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
|
||||||
|
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
||||||
|
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
||||||
|
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
|
||||||
|
os=
|
||||||
|
basic_machine=$1
|
||||||
|
;;
|
||||||
|
-hiux*)
|
||||||
|
os=-hiuxwe2
|
||||||
|
;;
|
||||||
|
-sco4)
|
||||||
|
os=-sco3.2v4
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
|
||||||
|
;;
|
||||||
|
-sco3.2.[4-9]*)
|
||||||
|
os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
|
||||||
|
;;
|
||||||
|
-sco3.2v[4-9]*)
|
||||||
|
# Don't forget version if it is 3.2v4 or newer.
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
|
||||||
|
;;
|
||||||
|
-sco*)
|
||||||
|
os=-sco3.2v2
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
|
||||||
|
;;
|
||||||
|
-isc)
|
||||||
|
os=-isc2.2
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
|
||||||
|
;;
|
||||||
|
-clix*)
|
||||||
|
basic_machine=clipper-intergraph
|
||||||
|
;;
|
||||||
|
-isc*)
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
|
||||||
|
;;
|
||||||
|
-lynx)
|
||||||
|
os=-lynxos
|
||||||
|
;;
|
||||||
|
-ptx*)
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
|
||||||
|
;;
|
||||||
|
-windowsnt*)
|
||||||
|
os=`echo $os | sed -e 's/windowsnt/winnt/'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Decode aliases for certain CPU-COMPANY combinations.
|
||||||
|
case $basic_machine in
|
||||||
|
# Recognize the basic CPU types without company name.
|
||||||
|
# Some are omitted here because they have special meanings below.
|
||||||
|
tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
|
||||||
|
| tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
|
||||||
|
| alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
|
||||||
|
| powerpc | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
|
||||||
|
| pdp11 | mips64el | mips64orion | mips64orionel )
|
||||||
|
basic_machine=$basic_machine-unknown
|
||||||
|
;;
|
||||||
|
# Object if more than one company name word.
|
||||||
|
*-*-*)
|
||||||
|
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
# Recognize the basic CPU types with company name.
|
||||||
|
vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
|
||||||
|
| sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
|
||||||
|
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
|
||||||
|
| none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
|
||||||
|
| hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
|
||||||
|
| pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
|
||||||
|
| pdp11-* | sh-* | powerpc-* | sparc64-* | mips64-* | mipsel-* \
|
||||||
|
| mips64el-* | mips64orion-* | mips64orionel-* )
|
||||||
|
;;
|
||||||
|
# Recognize the various machine names and aliases which stand
|
||||||
|
# for a CPU type and a company and sometimes even an OS.
|
||||||
|
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
|
||||||
|
basic_machine=m68000-att
|
||||||
|
;;
|
||||||
|
3b*)
|
||||||
|
basic_machine=we32k-att
|
||||||
|
;;
|
||||||
|
alliant | fx80)
|
||||||
|
basic_machine=fx80-alliant
|
||||||
|
;;
|
||||||
|
altos | altos3068)
|
||||||
|
basic_machine=m68k-altos
|
||||||
|
;;
|
||||||
|
am29k)
|
||||||
|
basic_machine=a29k-none
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
amdahl)
|
||||||
|
basic_machine=580-amdahl
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
amiga | amiga-*)
|
||||||
|
basic_machine=m68k-cbm
|
||||||
|
;;
|
||||||
|
amigados)
|
||||||
|
basic_machine=m68k-cbm
|
||||||
|
os=-amigados
|
||||||
|
;;
|
||||||
|
amigaunix | amix)
|
||||||
|
basic_machine=m68k-cbm
|
||||||
|
os=-sysv4
|
||||||
|
;;
|
||||||
|
apollo68)
|
||||||
|
basic_machine=m68k-apollo
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
balance)
|
||||||
|
basic_machine=ns32k-sequent
|
||||||
|
os=-dynix
|
||||||
|
;;
|
||||||
|
convex-c1)
|
||||||
|
basic_machine=c1-convex
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
convex-c2)
|
||||||
|
basic_machine=c2-convex
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
convex-c32)
|
||||||
|
basic_machine=c32-convex
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
convex-c34)
|
||||||
|
basic_machine=c34-convex
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
convex-c38)
|
||||||
|
basic_machine=c38-convex
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
cray | ymp)
|
||||||
|
basic_machine=ymp-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
|
cray2)
|
||||||
|
basic_machine=cray2-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
|
crds | unos)
|
||||||
|
basic_machine=m68k-crds
|
||||||
|
;;
|
||||||
|
da30 | da30-*)
|
||||||
|
basic_machine=m68k-da30
|
||||||
|
;;
|
||||||
|
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
||||||
|
basic_machine=mips-dec
|
||||||
|
;;
|
||||||
|
delta | 3300 | motorola-3300 | motorola-delta \
|
||||||
|
| 3300-motorola | delta-motorola)
|
||||||
|
basic_machine=m68k-motorola
|
||||||
|
;;
|
||||||
|
delta88)
|
||||||
|
basic_machine=m88k-motorola
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
dpx20 | dpx20-*)
|
||||||
|
basic_machine=rs6000-bull
|
||||||
|
os=-bosx
|
||||||
|
;;
|
||||||
|
dpx2* | dpx2*-bull)
|
||||||
|
basic_machine=m68k-bull
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
ebmon29k)
|
||||||
|
basic_machine=a29k-amd
|
||||||
|
os=-ebmon
|
||||||
|
;;
|
||||||
|
elxsi)
|
||||||
|
basic_machine=elxsi-elxsi
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
encore | umax | mmax)
|
||||||
|
basic_machine=ns32k-encore
|
||||||
|
;;
|
||||||
|
fx2800)
|
||||||
|
basic_machine=i860-alliant
|
||||||
|
;;
|
||||||
|
genix)
|
||||||
|
basic_machine=ns32k-ns
|
||||||
|
;;
|
||||||
|
gmicro)
|
||||||
|
basic_machine=tron-gmicro
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
h3050r* | hiux*)
|
||||||
|
basic_machine=hppa1.1-hitachi
|
||||||
|
os=-hiuxwe2
|
||||||
|
;;
|
||||||
|
h8300hms)
|
||||||
|
basic_machine=h8300-hitachi
|
||||||
|
os=-hms
|
||||||
|
;;
|
||||||
|
harris)
|
||||||
|
basic_machine=m88k-harris
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
hp300-*)
|
||||||
|
basic_machine=m68k-hp
|
||||||
|
;;
|
||||||
|
hp300bsd)
|
||||||
|
basic_machine=m68k-hp
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
hp300hpux)
|
||||||
|
basic_machine=m68k-hp
|
||||||
|
os=-hpux
|
||||||
|
;;
|
||||||
|
hp9k2[0-9][0-9] | hp9k31[0-9])
|
||||||
|
basic_machine=m68000-hp
|
||||||
|
;;
|
||||||
|
hp9k3[2-9][0-9])
|
||||||
|
basic_machine=m68k-hp
|
||||||
|
;;
|
||||||
|
hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
|
||||||
|
basic_machine=hppa1.1-hp
|
||||||
|
;;
|
||||||
|
hp9k8[0-9][0-9] | hp8[0-9][0-9])
|
||||||
|
basic_machine=hppa1.0-hp
|
||||||
|
;;
|
||||||
|
i370-ibm* | ibm*)
|
||||||
|
basic_machine=i370-ibm
|
||||||
|
os=-mvs
|
||||||
|
;;
|
||||||
|
# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
||||||
|
i[345]86v32)
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
|
||||||
|
os=-sysv32
|
||||||
|
;;
|
||||||
|
i[345]86v4*)
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
|
||||||
|
os=-sysv4
|
||||||
|
;;
|
||||||
|
i[345]86v)
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
i[345]86sol2)
|
||||||
|
basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
|
||||||
|
os=-solaris2
|
||||||
|
;;
|
||||||
|
iris | iris4d)
|
||||||
|
basic_machine=mips-sgi
|
||||||
|
case $os in
|
||||||
|
-irix*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
os=-irix4
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
isi68 | isi)
|
||||||
|
basic_machine=m68k-isi
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
m88k-omron*)
|
||||||
|
basic_machine=m88k-omron
|
||||||
|
;;
|
||||||
|
magnum | m3230)
|
||||||
|
basic_machine=mips-mips
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
merlin)
|
||||||
|
basic_machine=ns32k-utek
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
miniframe)
|
||||||
|
basic_machine=m68000-convergent
|
||||||
|
;;
|
||||||
|
mips3*-*)
|
||||||
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
|
||||||
|
;;
|
||||||
|
mips3*)
|
||||||
|
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
|
||||||
|
;;
|
||||||
|
ncr3000)
|
||||||
|
basic_machine=i486-ncr
|
||||||
|
os=-sysv4
|
||||||
|
;;
|
||||||
|
news | news700 | news800 | news900)
|
||||||
|
basic_machine=m68k-sony
|
||||||
|
os=-newsos
|
||||||
|
;;
|
||||||
|
news1000)
|
||||||
|
basic_machine=m68030-sony
|
||||||
|
os=-newsos
|
||||||
|
;;
|
||||||
|
news-3600 | risc-news)
|
||||||
|
basic_machine=mips-sony
|
||||||
|
os=-newsos
|
||||||
|
;;
|
||||||
|
next | m*-next )
|
||||||
|
basic_machine=m68k-next
|
||||||
|
case $os in
|
||||||
|
-nextstep* )
|
||||||
|
;;
|
||||||
|
-ns2*)
|
||||||
|
os=-nextstep2
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
os=-nextstep3
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
nh3000)
|
||||||
|
basic_machine=m68k-harris
|
||||||
|
os=-cxux
|
||||||
|
;;
|
||||||
|
nh[45]000)
|
||||||
|
basic_machine=m88k-harris
|
||||||
|
os=-cxux
|
||||||
|
;;
|
||||||
|
nindy960)
|
||||||
|
basic_machine=i960-intel
|
||||||
|
os=-nindy
|
||||||
|
;;
|
||||||
|
np1)
|
||||||
|
basic_machine=np1-gould
|
||||||
|
;;
|
||||||
|
pa-hitachi)
|
||||||
|
basic_machine=hppa1.1-hitachi
|
||||||
|
os=-hiuxwe2
|
||||||
|
;;
|
||||||
|
paragon)
|
||||||
|
basic_machine=i860-intel
|
||||||
|
os=-osf
|
||||||
|
;;
|
||||||
|
pbd)
|
||||||
|
basic_machine=sparc-tti
|
||||||
|
;;
|
||||||
|
pbb)
|
||||||
|
basic_machine=m68k-tti
|
||||||
|
;;
|
||||||
|
pc532 | pc532-*)
|
||||||
|
basic_machine=ns32k-pc532
|
||||||
|
;;
|
||||||
|
pentium-*)
|
||||||
|
# We will change tis to say i586 once there has been
|
||||||
|
# time for various packages to start to recognize that.
|
||||||
|
basic_machine=i486-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||||
|
;;
|
||||||
|
pn)
|
||||||
|
basic_machine=pn-gould
|
||||||
|
;;
|
||||||
|
ps2)
|
||||||
|
basic_machine=i386-ibm
|
||||||
|
;;
|
||||||
|
rtpc | rtpc-*)
|
||||||
|
basic_machine=romp-ibm
|
||||||
|
;;
|
||||||
|
sequent)
|
||||||
|
basic_machine=i386-sequent
|
||||||
|
;;
|
||||||
|
sh)
|
||||||
|
basic_machine=sh-hitachi
|
||||||
|
os=-hms
|
||||||
|
;;
|
||||||
|
sps7)
|
||||||
|
basic_machine=m68k-bull
|
||||||
|
os=-sysv2
|
||||||
|
;;
|
||||||
|
spur)
|
||||||
|
basic_machine=spur-unknown
|
||||||
|
;;
|
||||||
|
sun2)
|
||||||
|
basic_machine=m68000-sun
|
||||||
|
;;
|
||||||
|
sun2os3)
|
||||||
|
basic_machine=m68000-sun
|
||||||
|
os=-sunos3
|
||||||
|
;;
|
||||||
|
sun2os4)
|
||||||
|
basic_machine=m68000-sun
|
||||||
|
os=-sunos4
|
||||||
|
;;
|
||||||
|
sun3os3)
|
||||||
|
basic_machine=m68k-sun
|
||||||
|
os=-sunos3
|
||||||
|
;;
|
||||||
|
sun3os4)
|
||||||
|
basic_machine=m68k-sun
|
||||||
|
os=-sunos4
|
||||||
|
;;
|
||||||
|
sun4os3)
|
||||||
|
basic_machine=sparc-sun
|
||||||
|
os=-sunos3
|
||||||
|
;;
|
||||||
|
sun4os4)
|
||||||
|
basic_machine=sparc-sun
|
||||||
|
os=-sunos4
|
||||||
|
;;
|
||||||
|
sun3 | sun3-*)
|
||||||
|
basic_machine=m68k-sun
|
||||||
|
;;
|
||||||
|
sun4)
|
||||||
|
basic_machine=sparc-sun
|
||||||
|
;;
|
||||||
|
sun386 | sun386i | roadrunner)
|
||||||
|
basic_machine=i386-sun
|
||||||
|
;;
|
||||||
|
symmetry)
|
||||||
|
basic_machine=i386-sequent
|
||||||
|
os=-dynix
|
||||||
|
;;
|
||||||
|
tower | tower-32)
|
||||||
|
basic_machine=m68k-ncr
|
||||||
|
;;
|
||||||
|
ultra3)
|
||||||
|
basic_machine=a29k-nyu
|
||||||
|
os=-sym1
|
||||||
|
;;
|
||||||
|
vaxv)
|
||||||
|
basic_machine=vax-dec
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
vms)
|
||||||
|
basic_machine=vax-dec
|
||||||
|
os=-vms
|
||||||
|
;;
|
||||||
|
vxworks960)
|
||||||
|
basic_machine=i960-wrs
|
||||||
|
os=-vxworks
|
||||||
|
;;
|
||||||
|
vxworks68)
|
||||||
|
basic_machine=m68k-wrs
|
||||||
|
os=-vxworks
|
||||||
|
;;
|
||||||
|
xmp)
|
||||||
|
basic_machine=xmp-cray
|
||||||
|
os=-unicos
|
||||||
|
;;
|
||||||
|
xps | xps100)
|
||||||
|
basic_machine=xps100-honeywell
|
||||||
|
;;
|
||||||
|
none)
|
||||||
|
basic_machine=none-none
|
||||||
|
os=-none
|
||||||
|
;;
|
||||||
|
|
||||||
|
# Here we handle the default manufacturer of certain CPU types. It is in
|
||||||
|
# some cases the only manufacturer, in others, it is the most popular.
|
||||||
|
mips)
|
||||||
|
basic_machine=mips-mips
|
||||||
|
;;
|
||||||
|
romp)
|
||||||
|
basic_machine=romp-ibm
|
||||||
|
;;
|
||||||
|
rs6000)
|
||||||
|
basic_machine=rs6000-ibm
|
||||||
|
;;
|
||||||
|
vax)
|
||||||
|
basic_machine=vax-dec
|
||||||
|
;;
|
||||||
|
pdp11)
|
||||||
|
basic_machine=pdp11-dec
|
||||||
|
;;
|
||||||
|
we32k)
|
||||||
|
basic_machine=we32k-att
|
||||||
|
;;
|
||||||
|
sparc)
|
||||||
|
basic_machine=sparc-sun
|
||||||
|
;;
|
||||||
|
cydra)
|
||||||
|
basic_machine=cydra-cydrome
|
||||||
|
;;
|
||||||
|
orion)
|
||||||
|
basic_machine=orion-highlevel
|
||||||
|
;;
|
||||||
|
orion105)
|
||||||
|
basic_machine=clipper-highlevel
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Here we canonicalize certain aliases for manufacturers.
|
||||||
|
case $basic_machine in
|
||||||
|
*-digital*)
|
||||||
|
basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
|
||||||
|
;;
|
||||||
|
*-commodore*)
|
||||||
|
basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Decode manufacturer-specific aliases for certain operating systems.
|
||||||
|
|
||||||
|
if [ x"$os" != x"" ]
|
||||||
|
then
|
||||||
|
case $os in
|
||||||
|
# -solaris* is a basic system type, with this one exception.
|
||||||
|
-solaris1 | -solaris1.*)
|
||||||
|
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
||||||
|
;;
|
||||||
|
-solaris)
|
||||||
|
os=-solaris2
|
||||||
|
;;
|
||||||
|
-gnu/linux*)
|
||||||
|
os=`echo $os | sed -e 's|gnu/linux|linux|'`
|
||||||
|
;;
|
||||||
|
# First accept the basic system types.
|
||||||
|
# The portable systems comes first.
|
||||||
|
# Each alternative must end in a *, to match a version number.
|
||||||
|
# -sysv* is not here because it comes later, after sysvr4.
|
||||||
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||||
|
| -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
|
||||||
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
||||||
|
| -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
|
||||||
|
| -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
|
||||||
|
| -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||||
|
| -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
|
||||||
|
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
|
||||||
|
| -ptx* | -coff* | -winnt*)
|
||||||
|
;;
|
||||||
|
-sunos5*)
|
||||||
|
os=`echo $os | sed -e 's|sunos5|solaris2|'`
|
||||||
|
;;
|
||||||
|
-sunos6*)
|
||||||
|
os=`echo $os | sed -e 's|sunos6|solaris3|'`
|
||||||
|
;;
|
||||||
|
-osfrose*)
|
||||||
|
os=-osfrose
|
||||||
|
;;
|
||||||
|
-osf*)
|
||||||
|
os=-osf
|
||||||
|
;;
|
||||||
|
-utek*)
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
-dynix*)
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
-acis*)
|
||||||
|
os=-aos
|
||||||
|
;;
|
||||||
|
-ctix* | -uts*)
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
-triton*)
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
-oss*)
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
-svr4)
|
||||||
|
os=-sysv4
|
||||||
|
;;
|
||||||
|
-svr3)
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
-sysvr4)
|
||||||
|
os=-sysv4
|
||||||
|
;;
|
||||||
|
# This must come after -sysvr4.
|
||||||
|
-sysv*)
|
||||||
|
;;
|
||||||
|
-xenix)
|
||||||
|
os=-xenix
|
||||||
|
;;
|
||||||
|
-none)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Get rid of the `-' at the beginning of $os.
|
||||||
|
os=`echo $os | sed 's/[^-]*-//'`
|
||||||
|
echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
|
||||||
|
# Here we handle the default operating systems that come with various machines.
|
||||||
|
# The value should be what the vendor currently ships out the door with their
|
||||||
|
# machine or put another way, the most popular os provided with the machine.
|
||||||
|
|
||||||
|
# Note that if you're going to try to match "-MANUFACTURER" here (say,
|
||||||
|
# "-sun"), then you have to tell the case statement up towards the top
|
||||||
|
# that MANUFACTURER isn't an operating system. Otherwise, code above
|
||||||
|
# will signal an error saying that MANUFACTURER isn't an operating
|
||||||
|
# system, and we'll never get to this point.
|
||||||
|
|
||||||
|
case $basic_machine in
|
||||||
|
*-acorn)
|
||||||
|
os=-riscix1.2
|
||||||
|
;;
|
||||||
|
pdp11-*)
|
||||||
|
os=-none
|
||||||
|
;;
|
||||||
|
*-dec | vax-*)
|
||||||
|
os=-ultrix4.2
|
||||||
|
;;
|
||||||
|
i386-sun)
|
||||||
|
os=-sunos4.0.2
|
||||||
|
;;
|
||||||
|
m68000-sun)
|
||||||
|
os=-sunos3
|
||||||
|
# This also exists in the configure program, but was not the
|
||||||
|
# default.
|
||||||
|
# os=-sunos4
|
||||||
|
;;
|
||||||
|
*-tti) # must be before sparc entry or we get the wrong os.
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
sparc-* | *-sun)
|
||||||
|
os=-sunos4.1.1
|
||||||
|
;;
|
||||||
|
*-ibm)
|
||||||
|
os=-aix
|
||||||
|
;;
|
||||||
|
*-hp)
|
||||||
|
os=-hpux
|
||||||
|
;;
|
||||||
|
*-hitachi)
|
||||||
|
os=-hiux
|
||||||
|
;;
|
||||||
|
i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
*-cbm)
|
||||||
|
os=-amigados
|
||||||
|
;;
|
||||||
|
*-dg)
|
||||||
|
os=-dgux
|
||||||
|
;;
|
||||||
|
*-dolphin)
|
||||||
|
os=-sysv3
|
||||||
|
;;
|
||||||
|
m68k-ccur)
|
||||||
|
os=-rtu
|
||||||
|
;;
|
||||||
|
m88k-omron*)
|
||||||
|
os=-luna
|
||||||
|
;;
|
||||||
|
*-sequent)
|
||||||
|
os=-ptx
|
||||||
|
;;
|
||||||
|
*-crds)
|
||||||
|
os=-unos
|
||||||
|
;;
|
||||||
|
*-ns)
|
||||||
|
os=-genix
|
||||||
|
;;
|
||||||
|
i370-*)
|
||||||
|
os=-mvs
|
||||||
|
;;
|
||||||
|
*-next)
|
||||||
|
os=-nextstep3
|
||||||
|
;;
|
||||||
|
*-gould)
|
||||||
|
os=-sysv
|
||||||
|
;;
|
||||||
|
*-highlevel)
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
*-encore)
|
||||||
|
os=-bsd
|
||||||
|
;;
|
||||||
|
*-sgi)
|
||||||
|
os=-irix
|
||||||
|
;;
|
||||||
|
*-masscomp)
|
||||||
|
os=-rtu
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
os=-none
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Here we handle the case where we know the os, and the CPU type, but not the
|
||||||
|
# manufacturer. We pick the logical manufacturer.
|
||||||
|
vendor=unknown
|
||||||
|
case $basic_machine in
|
||||||
|
*-unknown)
|
||||||
|
case $os in
|
||||||
|
-riscix*)
|
||||||
|
vendor=acorn
|
||||||
|
;;
|
||||||
|
-sunos*)
|
||||||
|
vendor=sun
|
||||||
|
;;
|
||||||
|
-lynxos*)
|
||||||
|
vendor=lynx
|
||||||
|
;;
|
||||||
|
-aix*)
|
||||||
|
vendor=ibm
|
||||||
|
;;
|
||||||
|
-hpux*)
|
||||||
|
vendor=hp
|
||||||
|
;;
|
||||||
|
-hiux*)
|
||||||
|
vendor=hitachi
|
||||||
|
;;
|
||||||
|
-unos*)
|
||||||
|
vendor=crds
|
||||||
|
;;
|
||||||
|
-dgux*)
|
||||||
|
vendor=dg
|
||||||
|
;;
|
||||||
|
-luna*)
|
||||||
|
vendor=omron
|
||||||
|
;;
|
||||||
|
-genix*)
|
||||||
|
vendor=ns
|
||||||
|
;;
|
||||||
|
-mvs*)
|
||||||
|
vendor=ibm
|
||||||
|
;;
|
||||||
|
-ptx*)
|
||||||
|
vendor=sequent
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo $basic_machine$os
|
||||||
File diff suppressed because it is too large
Load Diff
Executable
+165
@@ -0,0 +1,165 @@
|
|||||||
|
# Project: LibTIFF
|
||||||
|
|
||||||
|
|
||||||
|
# Toolflags:
|
||||||
|
CCflags = -c -zo -ffah -depend !Depend -IC:
|
||||||
|
C++flags = -c -depend !Depend -IC: -throwback
|
||||||
|
Linkflags = -aif -c++ -o $@
|
||||||
|
DrLinkflags = -nounused -aif -c++ -o $@
|
||||||
|
ObjAsmflags = -throwback -NoCache -depend !Depend
|
||||||
|
CMHGflags =
|
||||||
|
LibFileflags = -c -o $@
|
||||||
|
Squeezeflags = -o $@
|
||||||
|
|
||||||
|
|
||||||
|
# Final targets:
|
||||||
|
@.o.LIBTIFF: \
|
||||||
|
@.o.tif_acorn \
|
||||||
|
@.o.tif_aux \
|
||||||
|
@.o.tif_close \
|
||||||
|
@.o.tif_codec \
|
||||||
|
@.o.tif_compress \
|
||||||
|
@.o.tif_dir \
|
||||||
|
@.o.tif_dirinfo \
|
||||||
|
@.o.tif_dirread \
|
||||||
|
@.o.tif_dirwrite \
|
||||||
|
@.o.tif_dumpmode \
|
||||||
|
@.o.tif_error \
|
||||||
|
@.o.tif_fax3 \
|
||||||
|
@.o.tif_flush \
|
||||||
|
@.o.tif_getimage \
|
||||||
|
@.o.tif_jpeg \
|
||||||
|
@.o.tif_lzw \
|
||||||
|
@.o.tif_next \
|
||||||
|
@.o.tif_open \
|
||||||
|
@.o.tif_packbits \
|
||||||
|
@.o.tif_predict \
|
||||||
|
@.o.tif_print \
|
||||||
|
@.o.tif_read \
|
||||||
|
@.o.tif_strip \
|
||||||
|
@.o.tif_swab \
|
||||||
|
@.o.tif_thunder \
|
||||||
|
@.o.tif_tile \
|
||||||
|
@.o.tif_version \
|
||||||
|
@.o.tif_warning \
|
||||||
|
@.o.tif_write \
|
||||||
|
@.o.tif_zip \
|
||||||
|
@.o.tif_fax3sm \
|
||||||
|
@.h.version
|
||||||
|
LibFile $(LibFileflags) \
|
||||||
|
@.o.tif_acorn \
|
||||||
|
@.o.tif_aux \
|
||||||
|
@.o.tif_close \
|
||||||
|
@.o.tif_codec \
|
||||||
|
@.o.tif_compress \
|
||||||
|
@.o.tif_dir \
|
||||||
|
@.o.tif_dirinfo \
|
||||||
|
@.o.tif_dirread \
|
||||||
|
@.o.tif_dirwrite \
|
||||||
|
@.o.tif_dumpmode \
|
||||||
|
@.o.tif_error \
|
||||||
|
@.o.tif_fax3 \
|
||||||
|
@.o.tif_flush \
|
||||||
|
@.o.tif_getimage \
|
||||||
|
@.o.tif_jpeg \
|
||||||
|
@.o.tif_lzw \
|
||||||
|
@.o.tif_next \
|
||||||
|
@.o.tif_open \
|
||||||
|
@.o.tif_packbits \
|
||||||
|
@.o.tif_predict \
|
||||||
|
@.o.tif_print \
|
||||||
|
@.o.tif_read \
|
||||||
|
@.o.tif_strip \
|
||||||
|
@.o.tif_swab \
|
||||||
|
@.o.tif_thunder \
|
||||||
|
@.o.tif_tile \
|
||||||
|
@.o.tif_version \
|
||||||
|
@.o.tif_warning \
|
||||||
|
@.o.tif_write \
|
||||||
|
@.o.tif_zip \
|
||||||
|
@.o.tif_fax3sm
|
||||||
|
|
||||||
|
|
||||||
|
# User-editable dependencies:
|
||||||
|
@.mkversion: @.o.mkversion C:o.Stubs
|
||||||
|
Link $(linkflags) @.o.mkversion C:o.Stubs
|
||||||
|
@.h.version: @.VERSION @.mkversion
|
||||||
|
<Prefix$Dir>.mkversion -v @.VERSION -a @.tiff/alpha @.h.version
|
||||||
|
@.mkg3states: @.o.mkg3states @.o.getopt C:o.Stubs
|
||||||
|
link $(linkflags) @.o.mkg3states C:o.Stubs @.o.getopt
|
||||||
|
@.c.tif_fax3sm: @.mkg3states
|
||||||
|
<Prefix$Dir>.mkg3states -c const @.c.tif_fax3sm
|
||||||
|
|
||||||
|
# Static dependencies:
|
||||||
|
@.o.tif_acorn: @.c.tif_acorn
|
||||||
|
cc $(ccflags) -o @.o.tif_acorn @.c.tif_acorn
|
||||||
|
@.o.tif_aux: @.c.tif_aux
|
||||||
|
cc $(ccflags) -o @.o.tif_aux @.c.tif_aux
|
||||||
|
@.o.tif_close: @.c.tif_close
|
||||||
|
cc $(ccflags) -o @.o.tif_close @.c.tif_close
|
||||||
|
@.o.tif_codec: @.c.tif_codec
|
||||||
|
cc $(ccflags) -o @.o.tif_codec @.c.tif_codec
|
||||||
|
@.o.tif_compress: @.c.tif_compress
|
||||||
|
cc $(ccflags) -o @.o.tif_compress @.c.tif_compress
|
||||||
|
@.o.tif_dir: @.c.tif_dir
|
||||||
|
cc $(ccflags) -o @.o.tif_dir @.c.tif_dir
|
||||||
|
@.o.tif_dirinfo: @.c.tif_dirinfo
|
||||||
|
cc $(ccflags) -o @.o.tif_dirinfo @.c.tif_dirinfo
|
||||||
|
@.o.tif_dirread: @.c.tif_dirread
|
||||||
|
cc $(ccflags) -o @.o.tif_dirread @.c.tif_dirread
|
||||||
|
@.o.tif_dirwrite: @.c.tif_dirwrite
|
||||||
|
cc $(ccflags) -o @.o.tif_dirwrite @.c.tif_dirwrite
|
||||||
|
@.o.tif_dumpmode: @.c.tif_dumpmode
|
||||||
|
cc $(ccflags) -o @.o.tif_dumpmode @.c.tif_dumpmode
|
||||||
|
@.o.tif_error: @.c.tif_error
|
||||||
|
cc $(ccflags) -o @.o.tif_error @.c.tif_error
|
||||||
|
@.o.tif_fax3: @.c.tif_fax3
|
||||||
|
cc $(ccflags) -o @.o.tif_fax3 @.c.tif_fax3
|
||||||
|
@.o.tif_flush: @.c.tif_flush
|
||||||
|
cc $(ccflags) -o @.o.tif_flush @.c.tif_flush
|
||||||
|
@.o.tif_getimage: @.c.tif_getimage
|
||||||
|
cc $(ccflags) -o @.o.tif_getimage @.c.tif_getimage
|
||||||
|
@.o.tif_jpeg: @.c.tif_jpeg
|
||||||
|
cc $(ccflags) -o @.o.tif_jpeg @.c.tif_jpeg
|
||||||
|
@.o.tif_lzw: @.c.tif_lzw
|
||||||
|
cc $(ccflags) -o @.o.tif_lzw @.c.tif_lzw
|
||||||
|
@.o.tif_next: @.c.tif_next
|
||||||
|
cc $(ccflags) -o @.o.tif_next @.c.tif_next
|
||||||
|
@.o.tif_open: @.c.tif_open
|
||||||
|
cc $(ccflags) -o @.o.tif_open @.c.tif_open
|
||||||
|
@.o.tif_packbits: @.c.tif_packbits
|
||||||
|
cc $(ccflags) -o @.o.tif_packbits @.c.tif_packbits
|
||||||
|
@.o.tif_predict: @.c.tif_predict
|
||||||
|
cc $(ccflags) -o @.o.tif_predict @.c.tif_predict
|
||||||
|
@.o.tif_print: @.c.tif_print
|
||||||
|
cc $(ccflags) -o @.o.tif_print @.c.tif_print
|
||||||
|
@.o.tif_read: @.c.tif_read
|
||||||
|
cc $(ccflags) -o @.o.tif_read @.c.tif_read
|
||||||
|
@.o.tif_strip: @.c.tif_strip
|
||||||
|
cc $(ccflags) -o @.o.tif_strip @.c.tif_strip
|
||||||
|
@.o.tif_swab: @.c.tif_swab
|
||||||
|
cc $(ccflags) -o @.o.tif_swab @.c.tif_swab
|
||||||
|
@.o.tif_thunder: @.c.tif_thunder
|
||||||
|
cc $(ccflags) -o @.o.tif_thunder @.c.tif_thunder
|
||||||
|
@.o.tif_tile: @.c.tif_tile
|
||||||
|
cc $(ccflags) -o @.o.tif_tile @.c.tif_tile
|
||||||
|
@.o.tif_version: @.c.tif_version
|
||||||
|
cc $(ccflags) -o @.o.tif_version @.c.tif_version
|
||||||
|
@.o.tif_warning: @.c.tif_warning
|
||||||
|
cc $(ccflags) -o @.o.tif_warning @.c.tif_warning
|
||||||
|
@.o.tif_write: @.c.tif_write
|
||||||
|
cc $(ccflags) -o @.o.tif_write @.c.tif_write
|
||||||
|
@.o.tif_zip: @.c.tif_zip
|
||||||
|
cc $(ccflags) -o @.o.tif_zip @.c.tif_zip
|
||||||
|
@.o.mkg3states: @.c.mkg3states
|
||||||
|
cc $(ccflags) -o @.o.mkg3states @.c.mkg3states
|
||||||
|
@.o.getopt: @.c.getopt
|
||||||
|
cc $(ccflags) -o @.o.getopt @.c.getopt
|
||||||
|
@.o.mkspans: @.c.mkspans
|
||||||
|
cc $(ccflags) -o @.o.mkspans @.c.mkspans
|
||||||
|
@.o.tif_fax3sm: @.c.tif_fax3sm
|
||||||
|
cc $(ccflags) -o @.o.tif_fax3sm @.c.tif_fax3sm
|
||||||
|
@.o.mkversion: @.c.mkversion
|
||||||
|
cc $(ccflags) -o @.o.mkversion @.c.mkversion
|
||||||
|
|
||||||
|
# Dynamic dependencies:
|
||||||
Executable
+79
@@ -0,0 +1,79 @@
|
|||||||
|
Building the Software on an Acorn RISC OS system
|
||||||
|
|
||||||
|
The directory contrib/acorn contains support for compiling the library under
|
||||||
|
Acorn C/C++ under Acorn's RISC OS 3.10 or above. Subsequent pathnames will
|
||||||
|
use the Acorn format: The full-stop or period character is a pathname
|
||||||
|
delimeter, and the slash character is not interpreted; the reverse position
|
||||||
|
from Unix. Thus "libtiff/tif_acorn.c" becomes "libtiff.tif_acorn/c".
|
||||||
|
|
||||||
|
This support was contributed by Peter Greenham.
|
||||||
|
(peterg@angmulti.demon.co.uk).
|
||||||
|
|
||||||
|
Installing LibTIFF:
|
||||||
|
|
||||||
|
LIBTIFF uses several files which have names longer than the normal RISC OS
|
||||||
|
maximum of ten characters. This complicates matters. Maybe one day Acorn will
|
||||||
|
address the problem and implement long filenames properly. Until then this
|
||||||
|
gets messy, especially as I'm trying to do this with obeyfiles and not have
|
||||||
|
to include binaries in this distribution.
|
||||||
|
|
||||||
|
First of all, ensure you have Truncate configured on (type *Configure
|
||||||
|
Truncate On) Although it is, of course, preferable to have long filenames,
|
||||||
|
LIBTIFF can be installed with short filenames, and it will compile and link
|
||||||
|
without problems. However, getting it there is more problematic.
|
||||||
|
contrib.acorn.install is an installation obeyfile which will create a normal
|
||||||
|
Acorn-style library from the source (ie: with c, h and o folders etc.), but
|
||||||
|
needs the distribution library to have been unpacked into a location which is
|
||||||
|
capable of supporting long filenames, even if only temporarily.
|
||||||
|
|
||||||
|
My recommendation, until Acorn address this problem properly, is to use Jason
|
||||||
|
Tribbeck's LongFilenames , or any other working system that gives you long
|
||||||
|
filenames, like a nearby NFS server for instance.
|
||||||
|
|
||||||
|
If you are using Longfilenames, even if only temporarily to install LIBTIFF,
|
||||||
|
unpack the TAR into a RAMDisc which has been longfilenamed (ie: *addlongfs
|
||||||
|
ram) and then install from there to the hard disk. Unfortunately
|
||||||
|
Longfilenames seems a bit unhappy about copying a bunch of long-named files
|
||||||
|
across the same filing system, but is happy going between systems. You'll
|
||||||
|
need to create a ramdisk of about 2Mb.
|
||||||
|
|
||||||
|
Now you can run the installation script I've supplied (in contrib.acorn),
|
||||||
|
which will automate the process of installing LIBTIFF as an Acorn-style
|
||||||
|
library. The syntax is as follows:
|
||||||
|
|
||||||
|
install <source_dir> <dest_dir>
|
||||||
|
|
||||||
|
Install will then create <dest_dir> and put the library in there. For
|
||||||
|
example, having used LongFilenames on the RAMDisk and unpacked the library
|
||||||
|
into there, you can then type:
|
||||||
|
|
||||||
|
Obey RAM::RamDisc0.$.contrib.acorn.install RAM::RamDisc0.$ ADFS::4.$.LIBTIFF
|
||||||
|
|
||||||
|
It doesn't matter if the destination location can cope with long filenames or
|
||||||
|
not. The filenames will be truncated if necessary (*Configure Truncate On if
|
||||||
|
you get errors) and all will be well.
|
||||||
|
|
||||||
|
Compiling LibTIFF:
|
||||||
|
|
||||||
|
Once the LibTIFF folder has been created and the files put inside, making the
|
||||||
|
library should be just a matter of running 'SetVars' to set the appropriate
|
||||||
|
system variables, then running 'Makefile'.
|
||||||
|
|
||||||
|
OSLib
|
||||||
|
|
||||||
|
OSLib is a comprehensive API for RISC OS machines, written by Jonathan
|
||||||
|
Coxhead of Acorn Computers (although OSLib is not an official Acorn product).
|
||||||
|
Using the OSLib SWI veneers produces code which is more compact and more
|
||||||
|
efficient than code written using _kernel_swi or _swi. The Acorn port of
|
||||||
|
LibTIFF can take advantage of this if present. Edit the Makefile and go to
|
||||||
|
the Static dependencies section. The first entry is:
|
||||||
|
|
||||||
|
# Static dependencies:
|
||||||
|
@.o.tif_acorn: @.c.tif_acorn
|
||||||
|
cc $(ccflags) -o @.o.tif_acorn @.c.tif_acorn
|
||||||
|
Change the cc line to:
|
||||||
|
|
||||||
|
cc $(ccflags) -DINCLUDE_OSLIB -o @.o.tif_acorn @.c.tif_acorn
|
||||||
|
|
||||||
|
Remember, however, that OSLib is only recommended for efficiency's sake. It
|
||||||
|
is not required.
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
Set LibTIFF$Dir <Obey$Dir>
|
||||||
|
Set LibTIFF$Path <LibTIFF$Dir>.
|
||||||
|
Set C$Path <C$Path>,LibTIFF:
|
||||||
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
IfThere LibTIFF:o.* THEN Wipe LibTIFF:o.* ~CFR~V
|
||||||
|
IfThere LibTIFF:c.tif_fax3sm THEN Delete LibTIFF:c.tif_fax3sm
|
||||||
|
IfThere LibTIFF:mkg3states THEN Delete LibTIFF:mkg3states
|
||||||
|
IfThere LibTIFF:h.version THEN Delete LibTIFF:h.version
|
||||||
|
IfThere LibTIFF:mkversion THEN Delete LibTIFF:mkversion
|
||||||
Executable
+175
@@ -0,0 +1,175 @@
|
|||||||
|
RISC OS Conversion log
|
||||||
|
======================
|
||||||
|
|
||||||
|
mkversion.c
|
||||||
|
~~~~~~~~~~~
|
||||||
|
The RISC OS command-line does not allow the direct creation of the version.h
|
||||||
|
file in the proper manner. To remedy this in such a way that the version
|
||||||
|
header is made at compiletime, I wrote this small program. It is fully
|
||||||
|
portable, so should work quite happily for any other platform that might need
|
||||||
|
it.
|
||||||
|
|
||||||
|
msg3states.c
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
Needed getopt.c from the port folder, then compiled and worked fine.
|
||||||
|
|
||||||
|
|
||||||
|
tiff.h
|
||||||
|
~~~~~~
|
||||||
|
|
||||||
|
====1====
|
||||||
|
|
||||||
|
The symbol _MIPS_SZLONG, if not defined, causes a compiler error. Fixed by
|
||||||
|
ensuring it does exist. This looks to me like this wouldn't be an
|
||||||
|
Acorn-specific problem. The new code fragment is as follows:
|
||||||
|
|
||||||
|
#ifndef _MIPS_SZLONG
|
||||||
|
#define _MIPS_SZLONG 32
|
||||||
|
#endif
|
||||||
|
#if defined(__alpha) || _MIPS_SZLONG == 64
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
tiffcomp.h
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
====1====
|
||||||
|
|
||||||
|
#if !defined(__MWERKS__) && !defined(THINK_C)
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Acorn also doesn't have this header so:
|
||||||
|
|
||||||
|
#if !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acorn)
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
====2====
|
||||||
|
|
||||||
|
#ifdef VMS
|
||||||
|
#include <file.h>
|
||||||
|
#include <unixio.h>
|
||||||
|
#else
|
||||||
|
#include <fcntl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
This seems to indicate that fcntl.h is included on all systems except
|
||||||
|
VMS. Odd, because I've never heard of it before. Sure it's in the ANSI
|
||||||
|
definition? Anyway, following change:
|
||||||
|
|
||||||
|
#ifdef VMS
|
||||||
|
#include <file.h>
|
||||||
|
#include <unixio.h>
|
||||||
|
#else
|
||||||
|
#ifndef __acorn
|
||||||
|
#include <fcntl.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
This will probably change when I find out what it wants from fcntl.h!
|
||||||
|
|
||||||
|
====3====
|
||||||
|
|
||||||
|
#if defined(__MWERKS__) || defined(THINK_C) || defined(applec)
|
||||||
|
#include <stdlib.h>
|
||||||
|
#define BSDTYPES
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Added RISC OS to above thus:
|
||||||
|
|
||||||
|
#if defined(__MWERKS__) || defined(THINK_C) || defined(applec) || defined(__acorn)
|
||||||
|
#include <stdlib.h>
|
||||||
|
#define BSDTYPES
|
||||||
|
#endif
|
||||||
|
|
||||||
|
====4====
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The library uses the ANSI C/POSIX SEEK_*
|
||||||
|
* definitions that should be defined in unistd.h
|
||||||
|
* (except on VMS where they are in stdio.h and
|
||||||
|
* there is no unistd.h).
|
||||||
|
*/
|
||||||
|
#ifndef SEEK_SET
|
||||||
|
#if !defined(VMS) && !defined (applec) && !defined(THINK_C) && !defined(__MWERKS__)
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
RISC OS is like VMS and Mac in this regard. So changed to:
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The library uses the ANSI C/POSIX SEEK_*
|
||||||
|
* definitions that should be defined in unistd.h
|
||||||
|
* (except on VMS or the Mac or RISC OS, where they are in stdio.h and
|
||||||
|
* there is no unistd.h).
|
||||||
|
*/
|
||||||
|
#ifndef SEEK_SET
|
||||||
|
#if !defined(VMS) && !defined (applec) && !defined(THINK_C) && !defined(__MWERKS__) && !defined(__acorn)
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
====5====
|
||||||
|
|
||||||
|
NB: HAVE_IEEEFP is defined in tiffconf.h, not tiffcomp.h as mentioned
|
||||||
|
in libtiff.README. (Note written on original port from 3.4beta004)
|
||||||
|
|
||||||
|
Acorn C/C++ claims to accord with IEEE 754, so no change (yet) to
|
||||||
|
tiffconf.h.
|
||||||
|
|
||||||
|
====6====
|
||||||
|
|
||||||
|
Unsure about whether this compiler supports inline functions. Will
|
||||||
|
leave it on for the time being and see if it works! (Likely if
|
||||||
|
everything else does.)
|
||||||
|
|
||||||
|
... Seems to be OK ...
|
||||||
|
|
||||||
|
====7====
|
||||||
|
|
||||||
|
Added to the end:
|
||||||
|
|
||||||
|
/*
|
||||||
|
* osfcn.h is part of C++Lib on Acorn C/C++, and as such can't be used
|
||||||
|
* on C alone. For that reason, the relevant functions have been
|
||||||
|
* implemented by myself in tif_acorn.c, and the elements from the header
|
||||||
|
* included here.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef __acorn
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <osfcn.h>
|
||||||
|
#else
|
||||||
|
#include "kernel.h"
|
||||||
|
#define O_RDONLY 0
|
||||||
|
#define O_WRONLY 1
|
||||||
|
#define O_RDWR 2
|
||||||
|
#define O_APPEND 8
|
||||||
|
#define O_CREAT 0x200
|
||||||
|
#define O_TRUNC 0x400
|
||||||
|
typedef long off_t;
|
||||||
|
extern int open(const char *name, int flags, int mode);
|
||||||
|
extern int close(int fd);
|
||||||
|
extern int write(int fd, const char *buf, int nbytes);
|
||||||
|
extern int read(int fd, char *buf, int nbytes);
|
||||||
|
extern off_t lseek(int fd, off_t offset, int whence);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
|
|
||||||
|
tif_acorn.c
|
||||||
|
~~~~~~~~~~~
|
||||||
|
|
||||||
|
Created file tif_acorn.c, copied initially from tif_unix.c
|
||||||
|
|
||||||
|
Documented internally where necessary.
|
||||||
|
|
||||||
|
Note that I have implemented the low-level file-handling functions normally
|
||||||
|
found in osfcn.h in here, and put the header info at the bottom of
|
||||||
|
tiffcomp.h. This is further documented from a RISC OS perspective inside the
|
||||||
|
file.
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
Executable
+128
@@ -0,0 +1,128 @@
|
|||||||
|
If "%0" = "" Then Error Syntax: install |<source_dir> |<dest_dir>
|
||||||
|
If "%1" = "" Then Error Syntax: install |<source_dir> |<dest_dir>
|
||||||
|
Set LibTiffInstall$Dir %0
|
||||||
|
Set LibTiff$Dir %1
|
||||||
|
Set Alias$CPY Copy <LibTiffInstall$Dir>.%%0 <LibTiff$Dir>.%%1 ~C~DF~NRV
|
||||||
|
CDir <LibTiff$Dir>
|
||||||
|
CDir <LibTiff$Dir>.c
|
||||||
|
CDir <LibTiff$Dir>.h
|
||||||
|
CDir <LibTiff$Dir>.o
|
||||||
|
CPY COPYRIGHT COPYRIGHT
|
||||||
|
CPY README README
|
||||||
|
CPY VERSION VERSION
|
||||||
|
CPY dist.tiff/alpha tiff/alpha
|
||||||
|
CPY contrib.acorn.SetVars SetVars
|
||||||
|
CPY contrib.acorn.Makefile Makefile
|
||||||
|
CPY contrib.acorn.cleanlib cleanlib
|
||||||
|
CPY port.getopt/c c.getopt
|
||||||
|
CPY libtiff.mkg3states/c c.mkg3states
|
||||||
|
CPY libtiff.mkspans/c c.mkspans
|
||||||
|
CPY libtiff.mkversion/c c.mkversion
|
||||||
|
CPY libtiff.tif_acorn/c c.tif_acorn
|
||||||
|
CPY libtiff.tif_aux/c c.tif_aux
|
||||||
|
CPY libtiff.tif_close/c c.tif_close
|
||||||
|
CPY libtiff.tif_codec/c c.tif_codec
|
||||||
|
CPY libtiff.tif_compress/c c.tif_compre
|
||||||
|
CPY libtiff.tif_dir/c c.tif_dir
|
||||||
|
CPY libtiff.tif_dirinfo/c c.tif_dirinf
|
||||||
|
CPY libtiff.tif_dirread/c c.tif_dirrea
|
||||||
|
CPY libtiff.tif_dirwrite/c c.tif_dirwri
|
||||||
|
CPY libtiff.tif_dumpmode/c c.tif_dumpmo
|
||||||
|
CPY libtiff.tif_error/c c.tif_error
|
||||||
|
CPY libtiff.tif_fax3/c c.tif_fax3
|
||||||
|
CPY libtiff.tif_flush/c c.tif_flush
|
||||||
|
CPY libtiff.tif_getimage/c c.tif_getima
|
||||||
|
CPY libtiff.tif_jpeg/c c.tif_jpeg
|
||||||
|
CPY libtiff.tif_lzw/c c.tif_lzw
|
||||||
|
CPY libtiff.tif_next/c c.tif_next
|
||||||
|
CPY libtiff.tif_open/c c.tif_open
|
||||||
|
CPY libtiff.tif_packbits/c c.tif_packbi
|
||||||
|
CPY libtiff.tif_predict/c c.tif_predic
|
||||||
|
CPY libtiff.tif_print/c c.tif_print
|
||||||
|
CPY libtiff.tif_read/c c.tif_read
|
||||||
|
CPY libtiff.tif_strip/c c.tif_strip
|
||||||
|
CPY libtiff.tif_swab/c c.tif_swab
|
||||||
|
CPY libtiff.tif_thunder/c c.tif_thunde
|
||||||
|
CPY libtiff.tif_tile/c c.tif_tile
|
||||||
|
CPY libtiff.tif_version/c c.tif_versio
|
||||||
|
CPY libtiff.tif_warning/c c.tif_warnin
|
||||||
|
CPY libtiff.tif_write/c c.tif_write
|
||||||
|
CPY libtiff.tif_zip/c c.tif_zip
|
||||||
|
CPY libtiff.t4/h h.t4
|
||||||
|
CPY libtiff.tiff/h h.tiff
|
||||||
|
CPY libtiff.tiffcomp/h h.tiffcomp
|
||||||
|
CPY libtiff.tiffconf/h h.tiffconf
|
||||||
|
CPY libtiff.tiffio/h h.tiffio
|
||||||
|
CPY libtiff.tiffiop/h h.tiffiop
|
||||||
|
CPY libtiff.tif_dir/h h.tif_dir
|
||||||
|
CPY libtiff.tif_fax3/h h.tif_fax3
|
||||||
|
CPY libtiff.tif_predict/h h.tif_predic
|
||||||
|
SetType <LibTiff$Dir>.COPYRIGHT Text
|
||||||
|
SetType <LibTiff$Dir>.README Text
|
||||||
|
SetType <LibTiff$Dir>.VERSION Text
|
||||||
|
SetType <LibTiff$Dir>.tiff/alpha Text
|
||||||
|
SetType <LibTiff$Dir>.SetVars Obey
|
||||||
|
SetType <LibTiff$Dir>.Makefile fe1
|
||||||
|
SetType <LibTiff$Dir>.cleanlib Obey
|
||||||
|
SetType <LibTiff$Dir>.c.getopt Text
|
||||||
|
SetType <LibTiff$Dir>.c.mkg3states Text
|
||||||
|
SetType <LibTiff$Dir>.c.mkspans Text
|
||||||
|
SetType <LibTiff$Dir>.c.mkversion Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_acorn Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_aux Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_close Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_codec Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_compre Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_dir Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_dirinf Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_dirrea Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_dirwri Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_dumpmo Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_error Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_fax3 Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_flush Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_getima Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_jpeg Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_lzw Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_next Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_open Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_packbi Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_predic Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_print Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_read Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_strip Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_swab Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_thunde Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_tile Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_versio Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_warnin Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_write Text
|
||||||
|
SetType <LibTiff$Dir>.c.tif_zip Text
|
||||||
|
SetType <LibTiff$Dir>.h.t4 Text
|
||||||
|
SetType <LibTiff$Dir>.h.tiff Text
|
||||||
|
SetType <LibTiff$Dir>.h.tiffcomp Text
|
||||||
|
SetType <LibTiff$Dir>.h.tiffconf Text
|
||||||
|
SetType <LibTiff$Dir>.h.tiffio Text
|
||||||
|
SetType <LibTiff$Dir>.h.tiffiop Text
|
||||||
|
SetType <LibTiff$Dir>.h.tif_dir Text
|
||||||
|
SetType <LibTiff$Dir>.h.tif_fax3 Text
|
||||||
|
SetType <LibTiff$Dir>.h.tif_predic Text
|
||||||
|
Unset Alias$CPY
|
||||||
|
Unset LibTiffInstall$Dir
|
||||||
|
| Now attempt to restore longfilename status. If it causes an error, OK.
|
||||||
|
Set Alias$RN Rename <LibTiff$Dir>.%%0 <LibTiff$Dir>.%%1
|
||||||
|
Unset LibTiff$Dir
|
||||||
|
RN c.tif_compre c.tif_compress
|
||||||
|
RN c.tif_dirinf c.tif_dirinfo
|
||||||
|
RN c.tif_dirrea c.tif_dirread
|
||||||
|
RN c.tif_dirwri c.tif_dirwrite
|
||||||
|
RN c.tif_dumpmo c.tif_dumpmode
|
||||||
|
RN c.tif_getima c.tif_getimage
|
||||||
|
RN c.tif_packbi c.tif_packbits
|
||||||
|
RN c.tif_predic c.tif_predict
|
||||||
|
RN c.tif_thunde c.tif_thunder
|
||||||
|
RN c.tif_versio c.tif_version
|
||||||
|
RN c.tif_warnin c.tif_warning
|
||||||
|
RN h.tif_predic h.tif_predict
|
||||||
|
Unset Alias$RN
|
||||||
|
Echo All done!
|
||||||
Executable
+26
@@ -0,0 +1,26 @@
|
|||||||
|
#
|
||||||
|
# If libtiff.a is installed in /usr/lib or /usr/local/lib just point
|
||||||
|
# LIBTIFF_DIR there. It doesn't need a full libtiff tree.
|
||||||
|
#
|
||||||
|
LIBTIFF_DIR = ../../libtiff
|
||||||
|
#
|
||||||
|
CC = gcc
|
||||||
|
CFLAGS = -O -I$(LIBTIFF_DIR)
|
||||||
|
LIBS = $(LIBTIFF_DIR)/libtiff.a -lm
|
||||||
|
|
||||||
|
addtiffo: addtiffo.o tif_overview.o tif_ovrcache.o
|
||||||
|
$(CXX) $(CFLAGS) addtiffo.o tif_overview.o tif_ovrcache.o \
|
||||||
|
$(LIBS) -o addtiffo
|
||||||
|
|
||||||
|
|
||||||
|
addtiffo.o: addtiffo.c
|
||||||
|
$(CC) -c $(CFLAGS) addtiffo.c
|
||||||
|
|
||||||
|
tif_overview.o: tif_overview.c
|
||||||
|
$(CC) -c $(CFLAGS) tif_overview.c
|
||||||
|
|
||||||
|
tif_ovrcache.o: tif_ovrcache.c
|
||||||
|
$(CC) -c $(CFLAGS) tif_ovrcache.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm *.o addtiffo
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#
|
||||||
|
# If libtiff.a is installed in /usr/lib or /usr/local/lib just point
|
||||||
|
# LIBTIFF_DIR there. It doesn't need a full libtiff tree.
|
||||||
|
#
|
||||||
|
LIBTIFF_DIR = ..\..\libtiff
|
||||||
|
#
|
||||||
|
CC = cl.exe
|
||||||
|
CPPC = cl.exe
|
||||||
|
CFLAGS = -O -I$(LIBTIFF_DIR)
|
||||||
|
LIBS = $(LIBTIFF_DIR)\libtiff.lib
|
||||||
|
|
||||||
|
addtiffo: addtiffo.obj tif_overview.obj tif_ovrcache.obj
|
||||||
|
$(CC) $(CFLAGS) addtiffo.obj tif_overview.obj tif_ovrcache.obj \
|
||||||
|
$(LIBS) /Feaddtiffo.exe
|
||||||
|
|
||||||
|
|
||||||
|
addtiffo.obj: addtiffo.c
|
||||||
|
$(CC) -c $(CFLAGS) addtiffo.c
|
||||||
|
|
||||||
|
tif_overview.obj: tif_overview.c
|
||||||
|
$(CPPC) -c $(CFLAGS) tif_overview.c
|
||||||
|
|
||||||
|
tif_ovrcache.obj: tif_ovrcache.c
|
||||||
|
$(CPPC) -c $(CFLAGS) tif_ovrcache.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
del *.obj addtiffo.exe
|
||||||
Executable
+131
@@ -0,0 +1,131 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
* $Id: addtiffo.c,v 1.1.1.1 2000/06/24 19:10:17 tshead Exp $
|
||||||
|
*
|
||||||
|
* Project: GeoTIFF Overview Builder
|
||||||
|
* Purpose: Mainline for building overviews in a TIFF file.
|
||||||
|
* Author: Frank Warmerdam, warmerda@home.com
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
* Copyright (c) 1999, Frank Warmerdam
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included
|
||||||
|
* in all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
******************************************************************************
|
||||||
|
*
|
||||||
|
* $Log: addtiffo.c,v $
|
||||||
|
* Revision 1.1.1.1 2000/06/24 19:10:17 tshead
|
||||||
|
* * Initial import of libtiff-3.5.5
|
||||||
|
*
|
||||||
|
* Revision 1.2 2000/01/28 15:36:38 warmerda
|
||||||
|
* pass TIFF handle instead of filename to overview builder
|
||||||
|
*
|
||||||
|
* Revision 1.1 1999/08/17 01:47:59 warmerda
|
||||||
|
* New
|
||||||
|
*
|
||||||
|
* Revision 1.1 1999/03/12 17:46:32 warmerda
|
||||||
|
* New
|
||||||
|
*
|
||||||
|
* Revision 1.2 1999/02/11 22:27:12 warmerda
|
||||||
|
* Added multi-sample support
|
||||||
|
*
|
||||||
|
* Revision 1.1 1999/02/11 18:12:30 warmerda
|
||||||
|
* New
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "tiffio.h"
|
||||||
|
|
||||||
|
void TIFFBuildOverviews( TIFF *, int, int *, int );
|
||||||
|
|
||||||
|
/************************************************************************/
|
||||||
|
/* main() */
|
||||||
|
/************************************************************************/
|
||||||
|
|
||||||
|
int main( int argc, char ** argv )
|
||||||
|
|
||||||
|
{
|
||||||
|
int anOverviews[100];
|
||||||
|
int nOverviewCount = 0;
|
||||||
|
int bUseSubIFD = 0;
|
||||||
|
TIFF *hTIFF;
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/* Usage: */
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
if( argc < 2 )
|
||||||
|
{
|
||||||
|
printf( "Usage: addtiffo tiff_filename [resolution_reductions]\n" );
|
||||||
|
printf( "\n" );
|
||||||
|
printf( "Example:\n" );
|
||||||
|
printf( " %% addtifo abc.tif 2 4 8 16\n" );
|
||||||
|
exit( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
if( strcmp(argv[1],"-subifd") == 0 )
|
||||||
|
{
|
||||||
|
bUseSubIFD = 1;
|
||||||
|
argv++;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/* Collect the user requested reduction factors. */
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
while( nOverviewCount < argc - 2 && nOverviewCount < 100 )
|
||||||
|
{
|
||||||
|
anOverviews[nOverviewCount] = atoi(argv[nOverviewCount+2]);
|
||||||
|
nOverviewCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/* Default to four overview levels. It would be nicer if it */
|
||||||
|
/* defaulted based on the size of the source image. */
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
if( nOverviewCount == 0 )
|
||||||
|
{
|
||||||
|
nOverviewCount = 4;
|
||||||
|
|
||||||
|
anOverviews[0] = 2;
|
||||||
|
anOverviews[1] = 4;
|
||||||
|
anOverviews[2] = 8;
|
||||||
|
anOverviews[3] = 16;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/* Build the overview. */
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
hTIFF = TIFFOpen( argv[1], "r+" );
|
||||||
|
if( hTIFF == NULL )
|
||||||
|
{
|
||||||
|
fprintf( stderr, "TIFFOpen(%s) failed.\n", argv[1] );
|
||||||
|
exit( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
TIFFBuildOverviews( hTIFF, nOverviewCount, anOverviews, bUseSubIFD );
|
||||||
|
|
||||||
|
TIFFClose( hTIFF );
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/* Optionally test for memory leaks. */
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
#ifdef DBMALLOC
|
||||||
|
malloc_dump(1);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
exit( 0 );
|
||||||
|
}
|
||||||
Executable
+145
@@ -0,0 +1,145 @@
|
|||||||
|
addtiffo 1.0
|
||||||
|
============
|
||||||
|
|
||||||
|
The addtiffo utility is used to add overview pyramids to an existing
|
||||||
|
TIFF or GeoTIFF file. Some applications can take advantage of these
|
||||||
|
overviews to accelerate overview display performance of large rasters.
|
||||||
|
|
||||||
|
This release of addtiffo is primarily intended for compatibility testing
|
||||||
|
with applications, and to see if there is interest in a cleaner release
|
||||||
|
of the capability ... perhaps incorporation into the libtiff tools
|
||||||
|
distribution.
|
||||||
|
|
||||||
|
Please feel free to contact me with questions, or problems.
|
||||||
|
|
||||||
|
warmerda@home.com
|
||||||
|
http://members.home.com/warmerda
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
Usage: addtiffo [-subifd] tiff_filename [resolution_reductions]
|
||||||
|
|
||||||
|
Example:
|
||||||
|
% addtiffo abc.tif 2 4 8 16
|
||||||
|
|
||||||
|
The numeric arguments are the list of reduction factors to
|
||||||
|
generate. In this example a 1/2, 1/4 1/8 and 1/16
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Limitations
|
||||||
|
-----------
|
||||||
|
|
||||||
|
See tif_overview.cpp for up to date details.
|
||||||
|
|
||||||
|
o RawBlockedImage will create temporary files in the current directory
|
||||||
|
to cache the overviews so it doesn't have to hold them all in memory.
|
||||||
|
If the application crashes these will not be deleted (*.rbi).
|
||||||
|
|
||||||
|
o Currently only images with bits_per_sample of a multiple of eight
|
||||||
|
will work.
|
||||||
|
|
||||||
|
o The downsampler currently just takes the top left pixel from the
|
||||||
|
source rectangle. Eventually sampling options of averaging, mode, and
|
||||||
|
``center pixel'' should be offered.
|
||||||
|
|
||||||
|
o The code will attempt to use the same kind of compression,
|
||||||
|
photometric interpretation, and organization as the source image, but
|
||||||
|
it doesn't copy geotiff tags to the reduced resolution images.
|
||||||
|
|
||||||
|
o Reduced resolution overviews for multi-sample files will currently
|
||||||
|
always be generated as PLANARCONFIG_SEPARATE. This could be fixed
|
||||||
|
reasonable easily if needed to improve compatibility with other
|
||||||
|
packages. Many don't properly support PLANARCONFIG_SEPARATE.
|
||||||
|
|
||||||
|
o Overviews are always written as appended IFDs, rather than using the
|
||||||
|
``tree of tree's'' approach using the SUBIFD tag. I wanted to implement
|
||||||
|
both, but it isn't currently easy to add a SUBIFD tag to an existing
|
||||||
|
main tiff IFD with libtiff. I hope to try this again later.
|
||||||
|
|
||||||
|
|
||||||
|
TIFF File Tags
|
||||||
|
--------------
|
||||||
|
|
||||||
|
The results of running addtiffo on a 1024x1024 tiled greyscale file
|
||||||
|
with the arguments ``2 4 8 16'' is to add four additional TIFF directories
|
||||||
|
appended on the file with the SUBFILETYPE flag to 0x1 indicating the extra
|
||||||
|
items are reduced resolution images.
|
||||||
|
|
||||||
|
The tiffinfo output of such a file might look like this:
|
||||||
|
|
||||||
|
TIFF Directory at offset 0x118008
|
||||||
|
Image Width: 1024 Image Length: 1024
|
||||||
|
Tile Width: 256 Tile Length: 112
|
||||||
|
Bits/Sample: 8
|
||||||
|
Compression Scheme: none
|
||||||
|
Photometric Interpretation: min-is-black
|
||||||
|
Samples/Pixel: 1
|
||||||
|
Planar Configuration: single image plane
|
||||||
|
TIFF Directory at offset 0x15e1d2
|
||||||
|
Subfile Type: reduced-resolution image (1 = 0x1)
|
||||||
|
Image Width: 512 Image Length: 512
|
||||||
|
Tile Width: 256 Tile Length: 112
|
||||||
|
Bits/Sample: 8
|
||||||
|
Compression Scheme: none
|
||||||
|
Photometric Interpretation: min-is-black
|
||||||
|
Samples/Pixel: 1
|
||||||
|
Planar Configuration: separate image planes
|
||||||
|
TIFF Directory at offset 0x1732b8
|
||||||
|
Subfile Type: reduced-resolution image (1 = 0x1)
|
||||||
|
Image Width: 256 Image Length: 256
|
||||||
|
Tile Width: 256 Tile Length: 112
|
||||||
|
Bits/Sample: 8
|
||||||
|
Compression Scheme: none
|
||||||
|
Photometric Interpretation: min-is-black
|
||||||
|
Samples/Pixel: 1
|
||||||
|
Planar Configuration: separate image planes
|
||||||
|
TIFF Directory at offset 0x17a366
|
||||||
|
Subfile Type: reduced-resolution image (1 = 0x1)
|
||||||
|
Image Width: 128 Image Length: 128
|
||||||
|
Tile Width: 128 Tile Length: 112
|
||||||
|
Bits/Sample: 8
|
||||||
|
Compression Scheme: none
|
||||||
|
Photometric Interpretation: min-is-black
|
||||||
|
Samples/Pixel: 1
|
||||||
|
Planar Configuration: separate image planes
|
||||||
|
TIFF Directory at offset 0x17b40c
|
||||||
|
Subfile Type: reduced-resolution image (1 = 0x1)
|
||||||
|
Image Width: 64 Image Length: 64
|
||||||
|
Tile Width: 64 Tile Length: 64
|
||||||
|
Bits/Sample: 8
|
||||||
|
Compression Scheme: none
|
||||||
|
Photometric Interpretation: min-is-black
|
||||||
|
Samples/Pixel: 1
|
||||||
|
Planar Configuration: separate image planes
|
||||||
|
|
||||||
|
|
||||||
|
Building
|
||||||
|
--------
|
||||||
|
|
||||||
|
You will need a C, and C++ compiler. You will need to have libtiff already
|
||||||
|
built and installed. The provided Makefile should work on most Unix systems.
|
||||||
|
A similar file will be needed for Windows, but is not provided.
|
||||||
|
|
||||||
|
The CFLAGS and LIBS macros in the Makefile will have to be updated to
|
||||||
|
point to the correct location of the libtiff include files, and library.
|
||||||
|
|
||||||
|
|
||||||
|
Credits
|
||||||
|
-------
|
||||||
|
|
||||||
|
o Intergraph Corporation for partially funding the work.
|
||||||
|
|
||||||
|
o Global Geomatics for partially funding reorganization of the overview
|
||||||
|
building ability as a separate utility.
|
||||||
|
|
||||||
|
o Orrin Long, and Ed Grissom of Intergraph for explaining what needed to
|
||||||
|
be done.
|
||||||
|
|
||||||
|
o Max Martinez of Erdas for his discussion of external overviews.
|
||||||
|
|
||||||
|
o Frank Warmerdam for writing the bulk of the code.
|
||||||
|
|
||||||
|
o Sam Leffler since this only exists because of his libtiff.
|
||||||
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#
|
||||||
|
# Imakefile -- to generate a Makefile, do xmkmf
|
||||||
|
#
|
||||||
|
TIFF = ../../libtiff
|
||||||
|
EXTRA_LIBRARIES = $(TIFF)/libtiff.a
|
||||||
|
EXTRA_INCLUDES = -I$(TIFF)
|
||||||
|
|
||||||
|
AllTarget(bi gray pal rgb)
|
||||||
|
NormalProgramTarget(bi,tiff-bi.o,,,)
|
||||||
|
NormalProgramTarget(gray,tiff-grayscale.o,,,-lm)
|
||||||
|
NormalProgramTarget(pal,tiff-palette.o,,,)
|
||||||
|
NormalProgramTarget(rgb,tiff-rgb.o,,,-lm)
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
Wed May 9 09:11:35 PDT 1990
|
||||||
|
|
||||||
|
This directory contains programs from Dan Sears
|
||||||
|
(dbs@decwrl.dec.com). Contact him directly if
|
||||||
|
you have questions/problems.
|
||||||
|
|
||||||
|
Sam
|
||||||
Executable
+85
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
* tiff-bi.c -- create a Class B (bilevel) TIFF file
|
||||||
|
*
|
||||||
|
* Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
|
||||||
|
*
|
||||||
|
* All Rights Reserved
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and distribute this software and its
|
||||||
|
* documentation for any purpose and without fee is hereby granted,
|
||||||
|
* provided that the above copyright notice appear in all copies and that
|
||||||
|
* both that copyright notice and this permission notice appear in
|
||||||
|
* supporting documentation, and that the name of Digital not be
|
||||||
|
* used in advertising or publicity pertaining to distribution of the
|
||||||
|
* software without specific, written prior permission.
|
||||||
|
*
|
||||||
|
* DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||||
|
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||||
|
* DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
|
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <tiffio.h>
|
||||||
|
|
||||||
|
#define WIDTH 512
|
||||||
|
#define HEIGHT WIDTH
|
||||||
|
|
||||||
|
typedef unsigned char u_char;
|
||||||
|
|
||||||
|
void
|
||||||
|
main(argc, argv)
|
||||||
|
int argc;
|
||||||
|
char ** argv;
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
u_char * scan_line;
|
||||||
|
TIFF * tif;
|
||||||
|
|
||||||
|
if (argc != 2) {
|
||||||
|
fprintf(stderr, "Usage: %s tiff-image\n", argv[0]);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((tif = TIFFOpen(argv[1], "w")) == NULL) {
|
||||||
|
fprintf(stderr, "can't open %s as a TIFF file\n", argv[1]);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
|
||||||
|
TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
|
||||||
|
TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
|
||||||
|
TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
|
||||||
|
|
||||||
|
scan_line = (u_char *) malloc(WIDTH / 8);
|
||||||
|
|
||||||
|
for (i = 0; i < (WIDTH / 8) / 2; i++)
|
||||||
|
scan_line[i] = 0;
|
||||||
|
|
||||||
|
for (i = (WIDTH / 8) / 2; i < (WIDTH / 8); i++)
|
||||||
|
scan_line[i] = 255;
|
||||||
|
|
||||||
|
for (i = 0; i < HEIGHT / 2; i++)
|
||||||
|
TIFFWriteScanline(tif, scan_line, i, 0);
|
||||||
|
|
||||||
|
for (i = 0; i < (WIDTH / 8) / 2; i++)
|
||||||
|
scan_line[i] = 255;
|
||||||
|
|
||||||
|
for (i = (WIDTH / 8) / 2; i < (WIDTH / 8); i++)
|
||||||
|
scan_line[i] = 0;
|
||||||
|
|
||||||
|
for (i = HEIGHT / 2; i < HEIGHT; i++)
|
||||||
|
TIFFWriteScanline(tif, scan_line, i, 0);
|
||||||
|
|
||||||
|
free(scan_line);
|
||||||
|
TIFFClose(tif);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
Executable
+141
@@ -0,0 +1,141 @@
|
|||||||
|
/*
|
||||||
|
* tiff-grayscale.c -- create a Class G (grayscale) TIFF file
|
||||||
|
* with a gray response curve in linear optical density
|
||||||
|
*
|
||||||
|
* Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
|
||||||
|
*
|
||||||
|
* All Rights Reserved
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and distribute this software and its
|
||||||
|
* documentation for any purpose and without fee is hereby granted,
|
||||||
|
* provided that the above copyright notice appear in all copies and that
|
||||||
|
* both that copyright notice and this permission notice appear in
|
||||||
|
* supporting documentation, and that the name of Digital not be
|
||||||
|
* used in advertising or publicity pertaining to distribution of the
|
||||||
|
* software without specific, written prior permission.
|
||||||
|
*
|
||||||
|
* DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||||
|
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||||
|
* DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
|
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <tiffio.h>
|
||||||
|
|
||||||
|
#define WIDTH 512
|
||||||
|
#define HEIGHT WIDTH
|
||||||
|
|
||||||
|
typedef unsigned char u_char;
|
||||||
|
typedef unsigned short u_short;
|
||||||
|
typedef unsigned long u_long;
|
||||||
|
|
||||||
|
char * programName;
|
||||||
|
void Usage();
|
||||||
|
|
||||||
|
void
|
||||||
|
main(argc, argv)
|
||||||
|
int argc;
|
||||||
|
char ** argv;
|
||||||
|
{
|
||||||
|
int bits_per_pixel, cmsize, i, j, k,
|
||||||
|
gray_index, chunk_size, nchunks;
|
||||||
|
u_char * scan_line;
|
||||||
|
u_short * gray;
|
||||||
|
u_long refblackwhite[2*1];
|
||||||
|
TIFF * tif;
|
||||||
|
|
||||||
|
programName = argv[0];
|
||||||
|
|
||||||
|
if (argc != 4)
|
||||||
|
Usage();
|
||||||
|
|
||||||
|
if (!strcmp(argv[1], "-depth"))
|
||||||
|
bits_per_pixel = atoi(argv[2]);
|
||||||
|
else
|
||||||
|
Usage();
|
||||||
|
|
||||||
|
switch (bits_per_pixel) {
|
||||||
|
case 8:
|
||||||
|
nchunks = 16;
|
||||||
|
chunk_size = 32;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
nchunks = 4;
|
||||||
|
chunk_size = 128;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
nchunks = 2;
|
||||||
|
chunk_size = 256;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Usage();
|
||||||
|
}
|
||||||
|
|
||||||
|
cmsize = nchunks * nchunks;
|
||||||
|
gray = (u_short *) malloc(cmsize * sizeof(u_short));
|
||||||
|
|
||||||
|
gray[0] = 3000;
|
||||||
|
for (i = 1; i < cmsize; i++)
|
||||||
|
gray[i] = (u_short) (-log10((double) i / (cmsize - 1)) * 1000);
|
||||||
|
|
||||||
|
refblackwhite[0] = 0;
|
||||||
|
refblackwhite[0] = (1L<<bits_per_pixel) - 1;
|
||||||
|
|
||||||
|
if ((tif = TIFFOpen(argv[3], "w")) == NULL) {
|
||||||
|
fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
|
||||||
|
TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
|
||||||
|
TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
|
||||||
|
TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
|
||||||
|
TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refblackwhite);
|
||||||
|
TIFFSetField(tif, TIFFTAG_TRANSFERFUNCTION, gray);
|
||||||
|
TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
|
||||||
|
|
||||||
|
scan_line = (u_char *) malloc(WIDTH / (8 / bits_per_pixel));
|
||||||
|
|
||||||
|
for (i = 0; i < HEIGHT; i++) {
|
||||||
|
for (j = 0, k = 0; j < WIDTH;) {
|
||||||
|
gray_index = (j / chunk_size) + ((i / chunk_size) * nchunks);
|
||||||
|
|
||||||
|
switch (bits_per_pixel) {
|
||||||
|
case 8:
|
||||||
|
scan_line[k++] = gray_index;
|
||||||
|
j++;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
scan_line[k++] = (gray_index << 4) + gray_index;
|
||||||
|
j += 2;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
scan_line[k++] = (gray_index << 6) + (gray_index << 4)
|
||||||
|
+ (gray_index << 2) + gray_index;
|
||||||
|
j += 4;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TIFFWriteScanline(tif, scan_line, i, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
free(scan_line);
|
||||||
|
TIFFClose(tif);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Usage()
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Usage: %s -depth (8 | 4 | 2) tiff-image\n", programName);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
Executable
+277
@@ -0,0 +1,277 @@
|
|||||||
|
/*
|
||||||
|
* tiff-palette.c -- create a Class P (palette) TIFF file
|
||||||
|
*
|
||||||
|
* Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
|
||||||
|
*
|
||||||
|
* All Rights Reserved
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and distribute this software and its
|
||||||
|
* documentation for any purpose and without fee is hereby granted,
|
||||||
|
* provided that the above copyright notice appear in all copies and that
|
||||||
|
* both that copyright notice and this permission notice appear in
|
||||||
|
* supporting documentation, and that the name of Digital not be
|
||||||
|
* used in advertising or publicity pertaining to distribution of the
|
||||||
|
* software without specific, written prior permission.
|
||||||
|
*
|
||||||
|
* DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||||
|
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||||
|
* DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
|
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <tiffio.h>
|
||||||
|
|
||||||
|
#define WIDTH 512
|
||||||
|
#define HEIGHT WIDTH
|
||||||
|
#define SCALE(x) ((x) * 257L)
|
||||||
|
|
||||||
|
typedef unsigned char u_char;
|
||||||
|
typedef unsigned short u_short;
|
||||||
|
|
||||||
|
char * programName;
|
||||||
|
void Usage();
|
||||||
|
|
||||||
|
void
|
||||||
|
main(argc, argv)
|
||||||
|
int argc;
|
||||||
|
char ** argv;
|
||||||
|
{
|
||||||
|
int bits_per_pixel, cmsize, i, j, k,
|
||||||
|
cmap_index, chunk_size, nchunks;
|
||||||
|
u_char * scan_line;
|
||||||
|
u_short *red, *green, *blue;
|
||||||
|
TIFF * tif;
|
||||||
|
|
||||||
|
programName = argv[0];
|
||||||
|
|
||||||
|
if (argc != 4)
|
||||||
|
Usage();
|
||||||
|
|
||||||
|
if (!strcmp(argv[1], "-depth"))
|
||||||
|
bits_per_pixel = atoi(argv[2]);
|
||||||
|
else
|
||||||
|
Usage();
|
||||||
|
|
||||||
|
switch (bits_per_pixel) {
|
||||||
|
case 8:
|
||||||
|
nchunks = 16;
|
||||||
|
chunk_size = 32;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
nchunks = 4;
|
||||||
|
chunk_size = 128;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
nchunks = 2;
|
||||||
|
chunk_size = 256;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
nchunks = 2;
|
||||||
|
chunk_size = 256;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Usage();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bits_per_pixel != 1) {
|
||||||
|
cmsize = nchunks * nchunks;
|
||||||
|
} else {
|
||||||
|
cmsize = 2;
|
||||||
|
}
|
||||||
|
red = (u_short *) malloc(cmsize * sizeof(u_short));
|
||||||
|
green = (u_short *) malloc(cmsize * sizeof(u_short));
|
||||||
|
blue = (u_short *) malloc(cmsize * sizeof(u_short));
|
||||||
|
|
||||||
|
switch (bits_per_pixel) {
|
||||||
|
case 8:
|
||||||
|
for (i = 0; i < cmsize; i++) {
|
||||||
|
if (i < 32)
|
||||||
|
red[i] = 0;
|
||||||
|
else if (i < 64)
|
||||||
|
red[i] = SCALE(36);
|
||||||
|
else if (i < 96)
|
||||||
|
red[i] = SCALE(73);
|
||||||
|
else if (i < 128)
|
||||||
|
red[i] = SCALE(109);
|
||||||
|
else if (i < 160)
|
||||||
|
red[i] = SCALE(146);
|
||||||
|
else if (i < 192)
|
||||||
|
red[i] = SCALE(182);
|
||||||
|
else if (i < 224)
|
||||||
|
red[i] = SCALE(219);
|
||||||
|
else if (i < 256)
|
||||||
|
red[i] = SCALE(255);
|
||||||
|
|
||||||
|
if ((i % 32) < 4)
|
||||||
|
green[i] = 0;
|
||||||
|
else if (i < 8)
|
||||||
|
green[i] = SCALE(36);
|
||||||
|
else if ((i % 32) < 12)
|
||||||
|
green[i] = SCALE(73);
|
||||||
|
else if ((i % 32) < 16)
|
||||||
|
green[i] = SCALE(109);
|
||||||
|
else if ((i % 32) < 20)
|
||||||
|
green[i] = SCALE(146);
|
||||||
|
else if ((i % 32) < 24)
|
||||||
|
green[i] = SCALE(182);
|
||||||
|
else if ((i % 32) < 28)
|
||||||
|
green[i] = SCALE(219);
|
||||||
|
else if ((i % 32) < 32)
|
||||||
|
green[i] = SCALE(255);
|
||||||
|
|
||||||
|
if ((i % 4) == 0)
|
||||||
|
blue[i] = SCALE(0);
|
||||||
|
else if ((i % 4) == 1)
|
||||||
|
blue[i] = SCALE(85);
|
||||||
|
else if ((i % 4) == 2)
|
||||||
|
blue[i] = SCALE(170);
|
||||||
|
else if ((i % 4) == 3)
|
||||||
|
blue[i] = SCALE(255);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
red[0] = SCALE(255);
|
||||||
|
green[0] = 0;
|
||||||
|
blue[0] = 0;
|
||||||
|
|
||||||
|
red[1] = 0;
|
||||||
|
green[1] = SCALE(255);
|
||||||
|
blue[1] = 0;
|
||||||
|
|
||||||
|
red[2] = 0;
|
||||||
|
green[2] = 0;
|
||||||
|
blue[2] = SCALE(255);
|
||||||
|
|
||||||
|
red[3] = SCALE(255);
|
||||||
|
green[3] = SCALE(255);
|
||||||
|
blue[3] = SCALE(255);
|
||||||
|
|
||||||
|
red[4] = 0;
|
||||||
|
green[4] = SCALE(255);
|
||||||
|
blue[4] = SCALE(255);
|
||||||
|
|
||||||
|
red[5] = SCALE(255);
|
||||||
|
green[5] = 0;
|
||||||
|
blue[5] = SCALE(255);
|
||||||
|
|
||||||
|
red[6] = SCALE(255);
|
||||||
|
green[6] = SCALE(255);
|
||||||
|
blue[6] = 0;
|
||||||
|
|
||||||
|
red[7] = 0;
|
||||||
|
green[7] = 0;
|
||||||
|
blue[7] = 0;
|
||||||
|
|
||||||
|
red[8] = SCALE(176);
|
||||||
|
green[8] = SCALE(224);
|
||||||
|
blue[8] = SCALE(230);
|
||||||
|
red[9] = SCALE(100);
|
||||||
|
green[9] = SCALE(149);
|
||||||
|
blue[9] = SCALE(237);
|
||||||
|
red[10] = SCALE(46);
|
||||||
|
green[10] = SCALE(139);
|
||||||
|
blue[10] = SCALE(87);
|
||||||
|
red[11] = SCALE(160);
|
||||||
|
green[11] = SCALE(82);
|
||||||
|
blue[11] = SCALE(45);
|
||||||
|
red[12] = SCALE(238);
|
||||||
|
green[12] = SCALE(130);
|
||||||
|
blue[12] = SCALE(238);
|
||||||
|
red[13] = SCALE(176);
|
||||||
|
green[13] = SCALE(48);
|
||||||
|
blue[13] = SCALE(96);
|
||||||
|
red[14] = SCALE(50);
|
||||||
|
green[14] = SCALE(205);
|
||||||
|
blue[14] = SCALE(50);
|
||||||
|
red[15] = SCALE(240);
|
||||||
|
green[15] = SCALE(152);
|
||||||
|
blue[15] = SCALE(35);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
red[0] = SCALE(255);
|
||||||
|
green[0] = 0;
|
||||||
|
blue[0] = 0;
|
||||||
|
|
||||||
|
red[1] = 0;
|
||||||
|
green[1] = SCALE(255);
|
||||||
|
blue[1] = 0;
|
||||||
|
|
||||||
|
red[2] = 0;
|
||||||
|
green[2] = 0;
|
||||||
|
blue[2] = SCALE(255);
|
||||||
|
red[3] = SCALE(255);
|
||||||
|
green[3] = SCALE(255);
|
||||||
|
blue[3] = SCALE(255);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
red[0] = 0;
|
||||||
|
green[0] = 0;
|
||||||
|
blue[0] = 0;
|
||||||
|
|
||||||
|
red[1] = SCALE(255);
|
||||||
|
green[1] = SCALE(255);
|
||||||
|
blue[1] = SCALE(255);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((tif = TIFFOpen(argv[3], "w")) == NULL) {
|
||||||
|
fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
|
||||||
|
TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bits_per_pixel);
|
||||||
|
TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_PALETTE);
|
||||||
|
TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
|
||||||
|
TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
|
||||||
|
TIFFSetField(tif, TIFFTAG_COLORMAP, red, green, blue);
|
||||||
|
|
||||||
|
scan_line = (u_char *) malloc(WIDTH / (8 / bits_per_pixel));
|
||||||
|
|
||||||
|
for (i = 0; i < HEIGHT; i++) {
|
||||||
|
for (j = 0, k = 0; j < WIDTH;) {
|
||||||
|
cmap_index = (j / chunk_size) + ((i / chunk_size) * nchunks);
|
||||||
|
|
||||||
|
switch (bits_per_pixel) {
|
||||||
|
case 8:
|
||||||
|
scan_line[k++] = cmap_index;
|
||||||
|
j++;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
scan_line[k++] = (cmap_index << 4) + cmap_index;
|
||||||
|
j += 2;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
scan_line[k++] = (cmap_index << 6) + (cmap_index << 4)
|
||||||
|
+ (cmap_index << 2) + cmap_index;
|
||||||
|
j += 4;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
scan_line[k++] =
|
||||||
|
((j / chunk_size) == (i / chunk_size)) ? 0x00 : 0xff;
|
||||||
|
j += 8;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TIFFWriteScanline(tif, scan_line, i, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
free(scan_line);
|
||||||
|
TIFFClose(tif);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Usage()
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Usage: %s -depth (8 | 4 | 2 | 1) tiff-image\n", programName);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
Executable
+196
@@ -0,0 +1,196 @@
|
|||||||
|
/*
|
||||||
|
* tiff-rgb.c -- create a 24-bit Class R (rgb) TIFF file
|
||||||
|
*
|
||||||
|
* Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts.
|
||||||
|
*
|
||||||
|
* All Rights Reserved
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and distribute this software and its
|
||||||
|
* documentation for any purpose and without fee is hereby granted,
|
||||||
|
* provided that the above copyright notice appear in all copies and that
|
||||||
|
* both that copyright notice and this permission notice appear in
|
||||||
|
* supporting documentation, and that the name of Digital not be
|
||||||
|
* used in advertising or publicity pertaining to distribution of the
|
||||||
|
* software without specific, written prior permission.
|
||||||
|
*
|
||||||
|
* DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||||
|
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||||
|
* DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
|
* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <tiffio.h>
|
||||||
|
|
||||||
|
#define ROUND(x) (u_short) ((x) + 0.5)
|
||||||
|
#define CMSIZE 256
|
||||||
|
#define WIDTH 525
|
||||||
|
#define HEIGHT 512
|
||||||
|
#define TIFF_GAMMA 2.2
|
||||||
|
|
||||||
|
typedef unsigned char u_char;
|
||||||
|
typedef unsigned short u_short;
|
||||||
|
typedef unsigned long u_long;
|
||||||
|
|
||||||
|
void Usage();
|
||||||
|
char * programName;
|
||||||
|
|
||||||
|
void
|
||||||
|
main(argc, argv)
|
||||||
|
int argc;
|
||||||
|
char ** argv;
|
||||||
|
{
|
||||||
|
char * input_file;
|
||||||
|
double image_gamma;
|
||||||
|
int i, j;
|
||||||
|
TIFF * tif;
|
||||||
|
u_char * scan_line;
|
||||||
|
u_short red[CMSIZE], green[CMSIZE], blue[CMSIZE];
|
||||||
|
u_long refblackwhite[2*3];
|
||||||
|
|
||||||
|
programName = argv[0];
|
||||||
|
|
||||||
|
switch (argc) {
|
||||||
|
case 2:
|
||||||
|
image_gamma = TIFF_GAMMA;
|
||||||
|
input_file = argv[1];
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
if (!strcmp(argv[1], "-gamma")) {
|
||||||
|
image_gamma = atof(argv[2]);
|
||||||
|
input_file = argv[3];
|
||||||
|
} else
|
||||||
|
Usage();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Usage();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < CMSIZE; i++) {
|
||||||
|
if (i == 0)
|
||||||
|
red[i] = green[i] = blue[i] = 0;
|
||||||
|
else {
|
||||||
|
red[i] = ROUND((pow(i / 255.0, 1.0 / image_gamma) * 65535.0));
|
||||||
|
green[i] = ROUND((pow(i / 255.0, 1.0 / image_gamma) * 65535.0));
|
||||||
|
blue[i] = ROUND((pow(i / 255.0, 1.0 / image_gamma) * 65535.0));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
refblackwhite[0] = 0; refblackwhite[1] = 255;
|
||||||
|
refblackwhite[2] = 0; refblackwhite[3] = 255;
|
||||||
|
refblackwhite[4] = 0; refblackwhite[5] = 255;
|
||||||
|
|
||||||
|
if ((tif = TIFFOpen(input_file, "w")) == NULL) {
|
||||||
|
fprintf(stderr, "can't open %s as a TIFF file\n", input_file);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, WIDTH);
|
||||||
|
TIFFSetField(tif, TIFFTAG_IMAGELENGTH, HEIGHT);
|
||||||
|
TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8);
|
||||||
|
TIFFSetField(tif, TIFFTAG_COMPRESSION, COMPRESSION_NONE);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_RGB);
|
||||||
|
TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 3);
|
||||||
|
TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
|
||||||
|
TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_NONE);
|
||||||
|
#ifdef notdef
|
||||||
|
TIFFSetField(tif, TIFFTAG_WHITEPOINT, whitex, whitey);
|
||||||
|
TIFFSetField(tif, TIFFTAG_PRIMARYCHROMATICITIES, primaries);
|
||||||
|
#endif
|
||||||
|
TIFFSetField(tif, TIFFTAG_REFERENCEBLACKWHITE, refblackwhite);
|
||||||
|
TIFFSetField(tif, TIFFTAG_TRANSFERFUNCTION, red, green, blue);
|
||||||
|
|
||||||
|
scan_line = (u_char *) malloc(WIDTH * 3);
|
||||||
|
|
||||||
|
for (i = 0; i < 255; i++) {
|
||||||
|
for (j = 0; j < 75; j++) {
|
||||||
|
scan_line[j * 3] = 255;
|
||||||
|
scan_line[(j * 3) + 1] = 255 - i;
|
||||||
|
scan_line[(j * 3) + 2] = 255 - i;
|
||||||
|
}
|
||||||
|
for (j = 75; j < 150; j++) {
|
||||||
|
scan_line[j * 3] = 255 - i;
|
||||||
|
scan_line[(j * 3) + 1] = 255;
|
||||||
|
scan_line[(j * 3) + 2] = 255 - i;
|
||||||
|
}
|
||||||
|
for (j = 150; j < 225; j++) {
|
||||||
|
scan_line[j * 3] = 255 - i;
|
||||||
|
scan_line[(j * 3) + 1] = 255 - i;
|
||||||
|
scan_line[(j * 3) + 2] = 255;
|
||||||
|
}
|
||||||
|
for (j = 225; j < 300; j++) {
|
||||||
|
scan_line[j * 3] = (i - 1) / 2;
|
||||||
|
scan_line[(j * 3) + 1] = (i - 1) / 2;
|
||||||
|
scan_line[(j * 3) + 2] = (i - 1) / 2;
|
||||||
|
}
|
||||||
|
for (j = 300; j < 375; j++) {
|
||||||
|
scan_line[j * 3] = 255 - i;
|
||||||
|
scan_line[(j * 3) + 1] = 255;
|
||||||
|
scan_line[(j * 3) + 2] = 255;
|
||||||
|
}
|
||||||
|
for (j = 375; j < 450; j++) {
|
||||||
|
scan_line[j * 3] = 255;
|
||||||
|
scan_line[(j * 3) + 1] = 255 - i;
|
||||||
|
scan_line[(j * 3) + 2] = 255;
|
||||||
|
}
|
||||||
|
for (j = 450; j < 525; j++) {
|
||||||
|
scan_line[j * 3] = 255;
|
||||||
|
scan_line[(j * 3) + 1] = 255;
|
||||||
|
scan_line[(j * 3) + 2] = 255 - i;
|
||||||
|
}
|
||||||
|
TIFFWriteScanline(tif, scan_line, i, 0);
|
||||||
|
}
|
||||||
|
for (i = 255; i < 512; i++) {
|
||||||
|
for (j = 0; j < 75; j++) {
|
||||||
|
scan_line[j * 3] = i;
|
||||||
|
scan_line[(j * 3) + 1] = 0;
|
||||||
|
scan_line[(j * 3) + 2] = 0;
|
||||||
|
}
|
||||||
|
for (j = 75; j < 150; j++) {
|
||||||
|
scan_line[j * 3] = 0;
|
||||||
|
scan_line[(j * 3) + 1] = i;
|
||||||
|
scan_line[(j * 3) + 2] = 0;
|
||||||
|
}
|
||||||
|
for (j = 150; j < 225; j++) {
|
||||||
|
scan_line[j * 3] = 0;
|
||||||
|
scan_line[(j * 3) + 1] = 0;
|
||||||
|
scan_line[(j * 3) + 2] = i;
|
||||||
|
}
|
||||||
|
for (j = 225; j < 300; j++) {
|
||||||
|
scan_line[j * 3] = (i - 1) / 2;
|
||||||
|
scan_line[(j * 3) + 1] = (i - 1) / 2;
|
||||||
|
scan_line[(j * 3) + 2] = (i - 1) / 2;
|
||||||
|
}
|
||||||
|
for (j = 300; j < 375; j++) {
|
||||||
|
scan_line[j * 3] = 0;
|
||||||
|
scan_line[(j * 3) + 1] = i;
|
||||||
|
scan_line[(j * 3) + 2] = i;
|
||||||
|
}
|
||||||
|
for (j = 375; j < 450; j++) {
|
||||||
|
scan_line[j * 3] = i;
|
||||||
|
scan_line[(j * 3) + 1] = 0;
|
||||||
|
scan_line[(j * 3) + 2] = i;
|
||||||
|
}
|
||||||
|
for (j = 450; j < 525; j++) {
|
||||||
|
scan_line[j * 3] = i;
|
||||||
|
scan_line[(j * 3) + 1] = i;
|
||||||
|
scan_line[(j * 3) + 2] = 0;
|
||||||
|
}
|
||||||
|
TIFFWriteScanline(tif, scan_line, i, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
free(scan_line);
|
||||||
|
TIFFClose(tif);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Usage()
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Usage: %s -gamma gamma tiff-image\n", programName);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#
|
||||||
|
# Imakefile -- to generate a Makefile for xtiff, use:
|
||||||
|
# /usr/local/X11/mit/config/imake \
|
||||||
|
# -I/usr/local/X11/mit/config \
|
||||||
|
# -DTOPDIR=/usr/local/X11/mit \
|
||||||
|
# -DCURDIR=/usr/local/X11/mit \
|
||||||
|
# -DDESTDIR=/usr/local/X11/mit
|
||||||
|
#
|
||||||
|
|
||||||
|
SYS_LIBRARIES = -lm
|
||||||
|
LOCAL_LIBRARIES = XawClientLibs
|
||||||
|
DEPLIBS = XawClientDepLibs
|
||||||
|
TIFF = ../../../libtiff
|
||||||
|
EXTRA_LIBRARIES = $(TIFF)/libtiff.so -lm
|
||||||
|
EXTRA_INCLUDES = -I$(TIFF)
|
||||||
|
|
||||||
|
SimpleProgramTarget(xtiff)
|
||||||
Executable
+1
@@ -0,0 +1 @@
|
|||||||
|
#define PATCHLEVEL 0
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
xtiff 2.0
|
||||||
|
|
||||||
|
xtiff is a tool for viewing a TIFF file in an X window. It was written to
|
||||||
|
handle as many different kinds of TIFF files as possible while remaining
|
||||||
|
simple, portable and efficient. xtiff requires X11 R4, the Athena Widgets
|
||||||
|
and Sam Leffler's libtiff package (which can be found on ucbvax.berkeley.edu).
|
||||||
Executable
+1275
File diff suppressed because it is too large
Load Diff
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#define xtifficon_width 32
|
||||||
|
#define xtifficon_height 32
|
||||||
|
static char xtifficon_bits[] = {
|
||||||
|
0xff, 0x00, 0x00, 0xc0, 0xfe, 0x01, 0x7e, 0xc0, 0xfc, 0x03, 0x7e, 0x60,
|
||||||
|
0xf8, 0x07, 0x06, 0x30, 0xf8, 0x07, 0x1e, 0x18, 0xf0, 0x0f, 0x1e, 0x0c,
|
||||||
|
0xe0, 0x1f, 0x06, 0x06, 0xc0, 0x3f, 0x06, 0x06, 0xc0, 0x3f, 0x06, 0x03,
|
||||||
|
0x80, 0x7f, 0x80, 0x01, 0x00, 0xff, 0xc0, 0x00, 0x00, 0xfe, 0x61, 0x00,
|
||||||
|
0x00, 0xfe, 0x31, 0x7e, 0x7e, 0xfc, 0x33, 0x7e, 0x7e, 0xf8, 0x1b, 0x06,
|
||||||
|
0x18, 0xf0, 0x0d, 0x1e, 0x18, 0xf0, 0x0e, 0x1e, 0x18, 0x60, 0x1f, 0x06,
|
||||||
|
0x18, 0xb0, 0x3f, 0x06, 0x18, 0x98, 0x7f, 0x06, 0x18, 0x98, 0x7f, 0x00,
|
||||||
|
0x00, 0x0c, 0xff, 0x00, 0x00, 0x06, 0xfe, 0x01, 0x00, 0x63, 0xfc, 0x03,
|
||||||
|
0x80, 0x61, 0xfc, 0x03, 0xc0, 0x60, 0xf8, 0x07, 0xc0, 0x60, 0xf0, 0x0f,
|
||||||
|
0x60, 0x60, 0xe0, 0x1f, 0x30, 0x60, 0xe0, 0x1f, 0x18, 0x60, 0xc0, 0x3f,
|
||||||
|
0x0c, 0x60, 0x80, 0x7f, 0x06, 0x00, 0x00, 0xff};
|
||||||
Executable
+249
@@ -0,0 +1,249 @@
|
|||||||
|
# $Header: /home/cvsroot/libtiff/contrib/dosdjgpp/Makefile.lib,v 1.1.1.1 2000/06/24 19:10:17 tshead Exp $
|
||||||
|
#
|
||||||
|
# manually derived from Makefile.in for DJGPP v2.x (GNU C for DOS/386).
|
||||||
|
#
|
||||||
|
# Tag Image File Format Library
|
||||||
|
#
|
||||||
|
# Copyright (c) 1988-1996 Sam Leffler
|
||||||
|
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, distribute, and sell this software and
|
||||||
|
# its documentation for any purpose is hereby granted without fee, provided
|
||||||
|
# that (i) the above copyright notices and this permission notice appear in
|
||||||
|
# all copies of the software and related documentation, and (ii) the names of
|
||||||
|
# Sam Leffler and Silicon Graphics may not be used in any advertising or
|
||||||
|
# publicity relating to the software without the specific, prior written
|
||||||
|
# permission of Sam Leffler and Silicon Graphics.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||||
|
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#
|
||||||
|
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||||
|
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
||||||
|
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||||||
|
# OF THIS SOFTWARE.
|
||||||
|
#
|
||||||
|
|
||||||
|
SRCDIR = .
|
||||||
|
|
||||||
|
NULL =
|
||||||
|
CC = gcc
|
||||||
|
AR = ar
|
||||||
|
AROPTS = rc
|
||||||
|
RANLIB = ranlib
|
||||||
|
|
||||||
|
#
|
||||||
|
# If JPEG support is to be included and the Independent JPEG
|
||||||
|
# Software distribution is not installed then DIR_JPEG must
|
||||||
|
# refer to the directory where the include files reside.
|
||||||
|
#
|
||||||
|
# Similarly, if the libgz distribution is not installed, then
|
||||||
|
# DIR_LIBGZ must refer to the directory where the include files
|
||||||
|
# are located. Note that recent versions
|
||||||
|
#
|
||||||
|
IPATH = -I. -I${SRCDIR}
|
||||||
|
# @COPT_LIBINC@
|
||||||
|
#
|
||||||
|
# To enable JPEG support include -DJPEG_SUPPORT here.
|
||||||
|
# To enable Deflate support add a -DZIP_SUPPORT here.
|
||||||
|
# Note that where the configure script is used these defines
|
||||||
|
# are automatically setup when JPEG/ZIP is set to "yes".
|
||||||
|
#
|
||||||
|
# Otherwise, consult tiffconf.h for information on controlling
|
||||||
|
# the configuration of optional library support.
|
||||||
|
#
|
||||||
|
CONF_LIBRARY=#@CONF_JPEG@ @CONF_ZIP@
|
||||||
|
COPTS =
|
||||||
|
OPTIMIZER=-O
|
||||||
|
CFLAGS = ${COPTS} ${OPTIMIZER} ${IPATH} ${CONF_LIBRARY}
|
||||||
|
#
|
||||||
|
SRCS = \
|
||||||
|
tif_aux.c \
|
||||||
|
tif_close.c \
|
||||||
|
tif_codec.c \
|
||||||
|
tif_compress.c \
|
||||||
|
tif_dir.c \
|
||||||
|
tif_dirinfo.c \
|
||||||
|
tif_dirread.c \
|
||||||
|
tif_dirwrite.c \
|
||||||
|
tif_dumpmode.c \
|
||||||
|
tif_error.c \
|
||||||
|
tif_fax3.c \
|
||||||
|
tif_fx3s.c \
|
||||||
|
tif_getimage.c \
|
||||||
|
tif_jpeg.c \
|
||||||
|
tif_flush.c \
|
||||||
|
tif_lzw.c \
|
||||||
|
tif_next.c \
|
||||||
|
tif_open.c \
|
||||||
|
tif_packbits.c \
|
||||||
|
tif_predict.c \
|
||||||
|
tif_print.c \
|
||||||
|
tif_read.c \
|
||||||
|
tif_swab.c \
|
||||||
|
tif_strip.c \
|
||||||
|
tif_thunder.c \
|
||||||
|
tif_tile.c \
|
||||||
|
tif_msdos.c \
|
||||||
|
tif_version.c \
|
||||||
|
tif_warning.c \
|
||||||
|
tif_write.c \
|
||||||
|
tif_zip.c \
|
||||||
|
tif_luv.c \
|
||||||
|
${NULL}
|
||||||
|
OBJS = \
|
||||||
|
tif_aux.o \
|
||||||
|
tif_close.o \
|
||||||
|
tif_codec.o \
|
||||||
|
tif_compress.o \
|
||||||
|
tif_dir.o \
|
||||||
|
tif_dirinfo.o \
|
||||||
|
tif_dirread.o \
|
||||||
|
tif_dirwrite.o \
|
||||||
|
tif_dumpmode.o \
|
||||||
|
tif_error.o \
|
||||||
|
tif_fax3.o \
|
||||||
|
tif_fx3s.o \
|
||||||
|
tif_getimage.o \
|
||||||
|
tif_jpeg.o \
|
||||||
|
tif_flush.o \
|
||||||
|
tif_lzw.o \
|
||||||
|
tif_next.o \
|
||||||
|
tif_open.o \
|
||||||
|
tif_packbits.o \
|
||||||
|
tif_predict.o \
|
||||||
|
tif_print.o \
|
||||||
|
tif_read.o \
|
||||||
|
tif_swab.o \
|
||||||
|
tif_strip.o \
|
||||||
|
tif_thunder.o \
|
||||||
|
tif_tile.o \
|
||||||
|
tif_msdos.o \
|
||||||
|
tif_version.o \
|
||||||
|
tif_warning.o \
|
||||||
|
tif_write.o \
|
||||||
|
tif_zip.o \
|
||||||
|
tif_luv.o \
|
||||||
|
${NULL}
|
||||||
|
TARGETS = libtiff.a
|
||||||
|
|
||||||
|
all: ${TARGETS}
|
||||||
|
|
||||||
|
libtiff.a: ${OBJS}
|
||||||
|
${AR} ${AROPTS} libtiff.a $?
|
||||||
|
${RANLIB} libtiff.a
|
||||||
|
|
||||||
|
${OBJS}: ${SRCDIR}/tiffio.h ${SRCDIR}/tiff.h ${SRCDIR}/tif_dir.h
|
||||||
|
${OBJS}: ${SRCDIR}/tiffcomp.h ${SRCDIR}/tiffiop.h ${SRCDIR}/tiffconf.h
|
||||||
|
|
||||||
|
ALPHA = ../dist/tiff.alpha
|
||||||
|
VERSION = ../VERSION
|
||||||
|
|
||||||
|
version.h: ${VERSION} ${ALPHA} ${SRCDIR}/mkversion.c
|
||||||
|
${CC} -o mkversion ${CFLAGS} ${SRCDIR}/mkversion.c
|
||||||
|
del version.h
|
||||||
|
mkversion -v ${VERSION} -a ${ALPHA} version.h
|
||||||
|
|
||||||
|
tif_version.o: version.h
|
||||||
|
|
||||||
|
#
|
||||||
|
# The finite state machine tables used by the G3/G4 decoders
|
||||||
|
# are generated by the mkg3states program. On systems without
|
||||||
|
# make these rules have to be manually carried out.
|
||||||
|
#
|
||||||
|
# The file is called tif_fax3sm.c is the normal (unix) Makefile, but this
|
||||||
|
# may cause problems when compiling without support for LFN, then the file
|
||||||
|
# tif_fax3.o is considered the same name as tif_fax3sm.o, since only 8 chars
|
||||||
|
# are significant.
|
||||||
|
#
|
||||||
|
tif_fx3s.c: ${SRCDIR}/mkg3states.c ${SRCDIR}/tif_fax3.h
|
||||||
|
${CC} -o mkg3states ${CFLAGS} ${SRCDIR}/mkg3states.c
|
||||||
|
del tif_fx3s.c
|
||||||
|
mkg3states -c const tif_fx3s.c
|
||||||
|
|
||||||
|
tif_fx3s.o: tif_fx3s.c
|
||||||
|
@echo If the following gcc command fails due to lack of virtual memory, try
|
||||||
|
@echo compiling it in a non-DPMI environment with the cwsdpmi swapfile on a
|
||||||
|
@echo drive that has plenty of space.
|
||||||
|
${CC} -c ${CFLAGS} tif_fx3s.c
|
||||||
|
|
||||||
|
tif_aux.o: ${SRCDIR}/tif_aux.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_aux.c
|
||||||
|
tif_close.o: ${SRCDIR}/tif_close.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_close.c
|
||||||
|
tif_codec.o: ${SRCDIR}/tif_codec.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_codec.c
|
||||||
|
tif_compress.o: ${SRCDIR}/tif_compress.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_compress.c
|
||||||
|
tif_dir.o: ${SRCDIR}/tif_dir.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dir.c
|
||||||
|
tif_dirinfo.o: ${SRCDIR}/tif_dirinfo.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirinfo.c
|
||||||
|
tif_dirread.o: ${SRCDIR}/tif_dirread.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirread.c
|
||||||
|
tif_dirwrite.o: ${SRCDIR}/tif_dirwrite.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirwrite.c
|
||||||
|
tif_dumpmode.o: ${SRCDIR}/tif_dumpmode.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_dumpmode.c
|
||||||
|
tif_error.o: ${SRCDIR}/tif_error.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_error.c
|
||||||
|
tif_fax3.o: ${SRCDIR}/tif_fax3.c ${SRCDIR}/t4.h ${SRCDIR}/tif_fax3.h
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_fax3.c
|
||||||
|
tif_getimage.o: ${SRCDIR}/tif_getimage.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_getimage.c
|
||||||
|
tif_jpeg.o: ${SRCDIR}/tif_jpeg.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_jpeg.c
|
||||||
|
tif_flush.o: ${SRCDIR}/tif_flush.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_flush.c
|
||||||
|
tif_lzw.o: ${SRCDIR}/tif_lzw.c ${SRCDIR}/tif_predict.h
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_lzw.c
|
||||||
|
tif_next.o: ${SRCDIR}/tif_next.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_next.c
|
||||||
|
tif_open.o: ${SRCDIR}/tif_open.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_open.c
|
||||||
|
tif_packbits.o: ${SRCDIR}/tif_packbits.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_packbits.c
|
||||||
|
tif_predict.o: ${SRCDIR}/tif_predict.c ${SRCDIR}/tif_predict.h
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_predict.c
|
||||||
|
tif_print.o: ${SRCDIR}/tif_print.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_print.c
|
||||||
|
tif_read.o: ${SRCDIR}/tif_read.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_read.c
|
||||||
|
tif_swab.o: ${SRCDIR}/tif_swab.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_swab.c
|
||||||
|
tif_strip.o: ${SRCDIR}/tif_strip.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_strip.c
|
||||||
|
tif_thunder.o: ${SRCDIR}/tif_thunder.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_thunder.c
|
||||||
|
tif_tile.o: ${SRCDIR}/tif_tile.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_tile.c
|
||||||
|
tif_unix.o: ${SRCDIR}/tif_unix.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_unix.c
|
||||||
|
tif_version.o: ${SRCDIR}/tif_version.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_version.c
|
||||||
|
tif_warning.o: ${SRCDIR}/tif_warning.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_warning.c
|
||||||
|
tif_write.o: ${SRCDIR}/tif_write.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_write.c
|
||||||
|
tif_zip.o: ${SRCDIR}/tif_zip.c ${SRCDIR}/tif_predict.h
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_zip.c
|
||||||
|
|
||||||
|
tif_apple.o: ${SRCDIR}/tif_apple.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_apple.c
|
||||||
|
tif_atari.o: ${SRCDIR}/tif_atari.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_atari.c
|
||||||
|
tif_msdos.o: ${SRCDIR}/tif_msdos.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_msdos.c
|
||||||
|
tif_vms.o: ${SRCDIR}/tif_vms.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_vms.c
|
||||||
|
tif_win3.o: ${SRCDIR}/tif_win3.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tif_win3.c
|
||||||
|
|
||||||
|
INCS = ${SRCDIR}/tiff.h ${SRCDIR}/tiffio.h
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ${TARGETS} ${OBJS} mkg3states mkg3states.exe tif_fx3s.c
|
||||||
|
rm -f version.h libtiff.a mkversion mkversion.exe
|
||||||
Executable
+217
@@ -0,0 +1,217 @@
|
|||||||
|
# $Header: /home/cvsroot/libtiff/contrib/dosdjgpp/Makefile.tools,v 1.1.1.1 2000/06/24 19:10:17 tshead Exp $
|
||||||
|
#
|
||||||
|
# manually derived from Makefile.in for DJGPP v2.x (GNU C for DOS/386).
|
||||||
|
#
|
||||||
|
# TIFF Library Tools
|
||||||
|
#
|
||||||
|
# Copyright (c) 1988-1996 Sam Leffler
|
||||||
|
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, distribute, and sell this software and
|
||||||
|
# its documentation for any purpose is hereby granted without fee, provided
|
||||||
|
# that (i) the above copyright notices and this permission notice appear in
|
||||||
|
# all copies of the software and related documentation, and (ii) the names of
|
||||||
|
# Sam Leffler and Silicon Graphics may not be used in any advertising or
|
||||||
|
# publicity relating to the software without the specific, prior written
|
||||||
|
# permission of Stanford and Silicon Graphics.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||||
|
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#
|
||||||
|
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
||||||
|
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
||||||
|
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
||||||
|
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||||||
|
# OF THIS SOFTWARE.
|
||||||
|
#
|
||||||
|
DEPTH = ..
|
||||||
|
SRCDIR = .
|
||||||
|
LIBDIR = ${DEPTH}/libtiff
|
||||||
|
|
||||||
|
NULL =
|
||||||
|
CC = gcc
|
||||||
|
#
|
||||||
|
COPTS =
|
||||||
|
OPTIMIZER=-O
|
||||||
|
IPATH = -I. -I${SRCDIR} -I${LIBDIR}
|
||||||
|
CFLAGS = ${COPTS} ${OPTIMIZER} ${IPATH}
|
||||||
|
#
|
||||||
|
LIBTIFF = ${DEPTH}/libtiff/libtiff.a
|
||||||
|
LIBJPEG = #@LIBJPEG@
|
||||||
|
LIBGZ = #@LIBGZ@
|
||||||
|
LIBS = ${LIBTIFF} ${LIBJPEG} ${LIBGZ}
|
||||||
|
#
|
||||||
|
OBJS= \
|
||||||
|
fax2tiff.o \
|
||||||
|
fax2ps.o \
|
||||||
|
gif2tiff.o \
|
||||||
|
pal2rgb.o \
|
||||||
|
ppm2tiff.o \
|
||||||
|
rgb2ycbcr.o \
|
||||||
|
ras2tiff.o \
|
||||||
|
thumbnail.o \
|
||||||
|
tiff2bw.o \
|
||||||
|
tiff2ps.o \
|
||||||
|
tiffcmp.o \
|
||||||
|
tiffcp.o \
|
||||||
|
tiffdither.o \
|
||||||
|
tiffdump.o \
|
||||||
|
tiffinfo.o \
|
||||||
|
tiffmedian.o \
|
||||||
|
tiffsplit.o \
|
||||||
|
${NULL}
|
||||||
|
TARGETS =\
|
||||||
|
fax2tiff \
|
||||||
|
fax2ps \
|
||||||
|
gif2tiff \
|
||||||
|
pal2rgb \
|
||||||
|
ppm2tiff \
|
||||||
|
rgb2ycbcr \
|
||||||
|
thumbnail \
|
||||||
|
ras2tiff \
|
||||||
|
tiff2bw \
|
||||||
|
tiff2ps \
|
||||||
|
tiffcmp \
|
||||||
|
tiffcp \
|
||||||
|
tiffdither \
|
||||||
|
tiffdump \
|
||||||
|
tiffinfo \
|
||||||
|
tiffmedian \
|
||||||
|
tiffsplit \
|
||||||
|
${NULL}
|
||||||
|
|
||||||
|
all: ${TARGETS}
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ${TARGETS} ${addsuffix .exe, ${TARGETS}} ${OBJS}
|
||||||
|
rm -f sgigt.o tiffgt sgisv.o tiffsv sgi2tiff.o sgi2tiff ycbcr
|
||||||
|
|
||||||
|
#
|
||||||
|
# System-independent tools
|
||||||
|
#
|
||||||
|
|
||||||
|
tiffinfo: tiffinfo.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffinfo ${CFLAGS} tiffinfo.o ${LIBS}
|
||||||
|
tiffinfo.o: ${SRCDIR}/tiffinfo.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffinfo.c
|
||||||
|
|
||||||
|
tiffcmp:tiffcmp.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffcmp ${CFLAGS} tiffcmp.o ${LIBS}
|
||||||
|
tiffcmp.o: ${SRCDIR}/tiffcmp.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffcmp.c
|
||||||
|
|
||||||
|
tiffcp: tiffcp.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffcp ${CFLAGS} tiffcp.o ${LIBS}
|
||||||
|
tiffcp.o: ${SRCDIR}/tiffcp.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffcp.c
|
||||||
|
|
||||||
|
tiffdump: tiffdump.o
|
||||||
|
${CC} -o tiffdump ${CFLAGS} tiffdump.o ${LIBS}
|
||||||
|
tiffdump.o: ${SRCDIR}/tiffdump.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffdump.c
|
||||||
|
|
||||||
|
tiffmedian: tiffmedian.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffmedian ${CFLAGS} tiffmedian.o ${LIBS}
|
||||||
|
tiffmedian.o: ${SRCDIR}/tiffmedian.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffmedian.c
|
||||||
|
|
||||||
|
tiffsplit: tiffsplit.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffsplit ${CFLAGS} tiffsplit.o ${LIBS}
|
||||||
|
tiffsplit.o: ${SRCDIR}/tiffsplit.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffsplit.c
|
||||||
|
|
||||||
|
tiff2ps: tiff2ps.o ${LIBTIFF}
|
||||||
|
${CC} -o tiff2ps ${CFLAGS} tiff2ps.o ${LIBS}
|
||||||
|
tiff2ps.o: ${SRCDIR}/tiff2ps.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiff2ps.c
|
||||||
|
|
||||||
|
#
|
||||||
|
# Junky stuff... programs that are more examples of how
|
||||||
|
# to use the library than full-blown useful tools.
|
||||||
|
#
|
||||||
|
|
||||||
|
# convert RGB image to B&W
|
||||||
|
tiff2bw: tiff2bw.o ${LIBTIFF}
|
||||||
|
${CC} -o tiff2bw ${CFLAGS} tiff2bw.o ${LIBS}
|
||||||
|
tiff2bw.o: ${SRCDIR}/tiff2bw.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiff2bw.c
|
||||||
|
|
||||||
|
# convert B&W image to bilevel w/ FS dithering
|
||||||
|
tiffdither: tiffdither.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffdither ${CFLAGS} tiffdither.o ${LIBS}
|
||||||
|
tiffdither.o: ${SRCDIR}/tiffdither.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/tiffdither.c
|
||||||
|
|
||||||
|
# simple Sun rasterfile converter
|
||||||
|
ras2tiff: ras2tiff.o ${LIBTIFF}
|
||||||
|
${CC} -o ras2tiff ${CFLAGS} ras2tiff.o ${LIBS}
|
||||||
|
ras2tiff.o: ${SRCDIR}/ras2tiff.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/ras2tiff.c
|
||||||
|
|
||||||
|
# simple GIF converter
|
||||||
|
gif2tiff: gif2tiff.o ${LIBTIFF}
|
||||||
|
${CC} -o gif2tiff ${CFLAGS} gif2tiff.o ${LIBS}
|
||||||
|
gif2tiff.o: ${SRCDIR}/gif2tiff.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/gif2tiff.c
|
||||||
|
|
||||||
|
# very limited PBM converter
|
||||||
|
ppm2tiff: ppm2tiff.o ${LIBTIFF}
|
||||||
|
${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.o ${LIBS}
|
||||||
|
ppm2tiff.o: ${SRCDIR}/ppm2tiff.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/ppm2tiff.c
|
||||||
|
|
||||||
|
# Group 3/4 FAX file converter
|
||||||
|
fax2tiff: fax2tiff.o ${LIBTIFF}
|
||||||
|
${CC} -o fax2tiff ${CFLAGS} fax2tiff.o ${LIBS}
|
||||||
|
fax2tiff.o: ${SRCDIR}/fax2tiff.c
|
||||||
|
${CC} -c -I${LIBDIR} -I${DEPTH}/libtiff ${CFLAGS} ${SRCDIR}/fax2tiff.c
|
||||||
|
|
||||||
|
# Group 3/4 FAX to encoded PS converter
|
||||||
|
fax2ps: fax2ps.o ${LIBTIFF}
|
||||||
|
${CC} -o fax2ps ${CFLAGS} fax2ps.o ${LIBS}
|
||||||
|
fax2ps.o: ${SRCDIR}/fax2ps.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/fax2ps.c
|
||||||
|
|
||||||
|
# convert Palette image to RGB
|
||||||
|
pal2rgb: pal2rgb.o ${LIBTIFF}
|
||||||
|
${CC} -o pal2rgb ${CFLAGS} pal2rgb.o ${LIBS}
|
||||||
|
pal2rgb.o: ${SRCDIR}/pal2rgb.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/pal2rgb.c
|
||||||
|
|
||||||
|
# convert RGB image to YCbCr
|
||||||
|
rgb2ycbcr: rgb2ycbcr.o ${LIBTIFF}
|
||||||
|
${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.o ${LIBS}
|
||||||
|
rgb2ycbcr.o: ${SRCDIR}/rgb2ycbcr.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/rgb2ycbcr.c
|
||||||
|
|
||||||
|
# generate thumbnail images from fax (example of SubIFD usage)
|
||||||
|
thumbnail: thumbnail.o ${LIBTIFF}
|
||||||
|
${CC} -o thumbnail ${CFLAGS} thumbnail.o ${LIBS}
|
||||||
|
thumbnail.o: ${SRCDIR}/thumbnail.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/thumbnail.c
|
||||||
|
|
||||||
|
#
|
||||||
|
# System-specific tools.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# sgi2tiff converts SGI RGB images to TIFF; it requires
|
||||||
|
# the SGI image library -limage.
|
||||||
|
#
|
||||||
|
sgi2tiff: sgi2tiff.o ${LIBTIFF}
|
||||||
|
${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.o -limage ${LIBS}
|
||||||
|
sgi2tiff.o: ${SRCDIR}/sgi2tiff.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/sgi2tiff.c
|
||||||
|
|
||||||
|
# SGI versions of tiffgt & tiffsv that require -lgl
|
||||||
|
tiffgt: sgigt.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffgt ${CFLAGS} sgigt.o ${LIBS} -lgutil -lgl_s
|
||||||
|
sgigt.o: ${SRCDIR}/sgigt.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/sgigt.c
|
||||||
|
|
||||||
|
tiffsv: sgisv.o ${LIBTIFF}
|
||||||
|
${CC} -o tiffsv ${CFLAGS} sgisv.o ${LIBS} -lgutil -lgl_s
|
||||||
|
sgisv.o: ${SRCDIR}/sgisv.c
|
||||||
|
${CC} -c ${CFLAGS} ${SRCDIR}/sgisv.c
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user