Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/libtiff@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
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
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#! smake
|
||||
# $Header: /home/cvsroot/libtiff/contrib/dosdjgpp/Makefile.top,v 1.1.1.1 2000/06/24 19:10:17 tshead Exp $
|
||||
#
|
||||
# manually derived from Makefile.in (though basically nothing remains)
|
||||
# for DJGPP v2.x (GNU C for DOS/386).
|
||||
#
|
||||
# A warning about the filename structure:
|
||||
#
|
||||
# Some of the filenames used in the Makefiles are longer than 8 characters
|
||||
# this will work with the normal 8.3 file system since all files are unique
|
||||
# in the first 8 chars. To compile under the long filename support in Win95
|
||||
# you can either extract the files with a program that truncates filenames
|
||||
# (e.g. the DOS pkunzip) and disable LFN support with set LFN=n or with a
|
||||
# program that supports long filenames (e.g. WinZip 6.0) and set LFN=y.
|
||||
# The default environment in djgpp 2 is supposed to have LFN disabled, but
|
||||
# due to a bug in the init code it doesn't work properly. Setting the LFN
|
||||
# variable explicitly should fix that.
|
||||
#
|
||||
# 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 = .
|
||||
|
||||
all default:
|
||||
@${MAKE} -C libtiff
|
||||
@${MAKE} -C tools
|
||||
|
||||
clean:
|
||||
@${MAKE} -C libtiff clean
|
||||
@${MAKE} -C tools clean
|
||||
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
rem copy the Makefiles for libtiff for DJGPP2 into proper locations
|
||||
rem we assume to be in $(top)/contrib/dosdjgpp/
|
||||
|
||||
copy Makefile.top ..\..\Makefile
|
||||
copy Makefile.lib ..\..\libtiff\Makefile
|
||||
copy port.h ..\..\libtiff\port.h
|
||||
copy Makefile.too* ..\..\tools\Makefile
|
||||
|
||||
echo all set for building the library. Now just do make
|
||||
cd ..\..
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#ifndef _PORT_
|
||||
#define _PORT_ 1
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
typedef unsigned int u_int;
|
||||
typedef unsigned long u_long;
|
||||
|
||||
#define HOST_FILLORDER FILLORDER_LSB2MSB
|
||||
#define HOST_BIGENDIAN 0
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
typedef double dblparam_t;
|
||||
#ifdef __STRICT_ANSI__
|
||||
#define INLINE __inline__
|
||||
#else
|
||||
#define INLINE inline
|
||||
#endif
|
||||
#define GLOBALDATA(TYPE,NAME) extern TYPE NAME
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
|
||||
This directory contains the files necessary to build the free TIFF library
|
||||
with the DJGPP v2 compiler under MSDOS. Since DJGPP defines the unix flag,
|
||||
I have created a port.h instead of putting the necessary defines into
|
||||
tiffcomp.h. Makefiles are included for the top level and the libtiff and
|
||||
tools directories.
|
||||
|
||||
All you have to do is copy the files into the respective directories and run
|
||||
make. If you want, you can use the conf.bat to do that for you, make sure that
|
||||
the file is stored with MSDOS text EOL-convention (CR/LF), otherwise the
|
||||
command.com will not do anything (if you used unzip, use the -a option,
|
||||
otherwise edit the file and save it again).
|
||||
|
||||
Note that you probably will not be able to built the library with the v1.x
|
||||
versions of djgpp, due to two problems. First, the top makefile calls a
|
||||
sub-make for each directory and you are likely to run out of memory, since
|
||||
each recursive invocation of a djgpp v1.x program requires about 130k, to
|
||||
avoid that, you can enter the directories manually and call make (well, there
|
||||
are only two dirs). The 2nd problem is that djgpp 1.x doesn't call the
|
||||
coff2exe (stubify) program when creating an executable. This means that all
|
||||
programs compiled are not converted to exe and consequently are not available
|
||||
for calling directly. For the tools directory, you can just call coff2exe for
|
||||
each program after make finishes, but in the libtiff directory, a few programs
|
||||
are created during the make process that have to be called for make to
|
||||
continue (e.g. mkg3states). Make will probably report an error at each
|
||||
such stage. To fix that, either add a coff2exe call before each program is
|
||||
called or call coff2exe manually and rerun make (there 2-3 such programs).
|
||||
|
||||
Alexander Lehmann <alex@hal.rhein-main.de>
|
||||
|
||||
Reference in New Issue
Block a user