📄 makefile
字号:
# $Header: /cvsroot/osrs/libtiff/tools/Makefile.in,v 1.14 2003/11/26 07:41:42 dron Exp $
#
# Warning, this file was automatically created by the TIFF configure script
#
# TIFF Library Tools
#
# 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 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 = ../tools
LIBDIR = ../libtiff
#
# VERSION: v3.6.1
# DATE: Sun Dec 28 20:06:15 CET 2003
# TARGET: i686-pc-cygwin
# CCOMPILER: /cygdrive/h/mingw/3.3.1/bin/gcc
#
SHELL = /bin/sh.exe
SCRIPT_SH = /bin/sh.exe
NULL =
CC = /cygdrive/h/mingw/3.3.1/bin/gcc
INSTALL = ${SCRIPT_SH} ../port/install.sh
#
COPTS = -DHAVE_MMAP -D__GW32__ -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
-DAVOID_WIN32_FILEIO -DBINMODE='"b"'
OPTIMIZER=-Wall -O3 -mms-bitfields -fno-exceptions -fomit-frame-pointer -march=i386 -mcpu=i686
IPATH = -I. -I${SRCDIR} -I${LIBDIR}
CFLAGS = ${COPTS} ${OPTIMIZER} ${IPATH}
#
TIFFLIB = ${DEPTH}/libtiff/libtiff.dll.a
LIBJPEG = -ljpeg
LIBGZ = -lz
LIBTIFF = ${DEPTH}/libtiff/libtiff.dll.a
LIBPORT =
MACHLIBS= -lstdbin -lbinmode -lgw32c -lole32 -luuid -Wl,-s
LIBS = ${LIBTIFF} ${LIBJPEG} ${LIBGZ} ${LIBPORT} ${MACHLIBS}
#
OBJS= \
fax2tiff.o \
fax2ps.o \
gif2tiff.o \
pal2rgb.o \
ppm2tiff.o \
rgb2ycbcr.o \
ras2tiff.o \
raw2tiff.o \
thumbnail.o \
tiff2bw.o \
tiff2rgba.o \
tiff2pdf.o \
tiff2ps.o \
tiffcmp.o \
tiffcp.o \
tiffdither.o \
tiffdump.o \
tiffinfo.o \
tiffmedian.o \
tiffsplit.o \
tiffset.o \
${NULL}
TARGETS =\
fax2tiff.exe \
fax2ps.exe \
gif2tiff.exe \
pal2rgb.exe \
ppm2tiff.exe \
rgb2ycbcr.exe \
thumbnail.exe \
ras2tiff.exe \
raw2tiff.exe \
tiff2bw.exe \
tiff2rgba.exe \
tiff2pdf.exe \
tiff2ps.exe \
tiffcmp.exe \
tiffcp.exe \
tiffdither.exe \
tiffdump.exe \
tiffinfo.exe \
tiffmedian.exe \
tiffsplit.exe \
tiffset.exe \
${NULL}
# Rule to make compiled resource (Windows)
%-rc.o: %.rc
windres -i $< -o $@
all: ${TARGETS}
@if [ "no" = yes ]; then \
${MAKE} -${MAKEFLAGS} sgi2tiff; \
else \
true; \
fi
@if [ "no" = yes ]; then \
${MAKE} -${MAKEFLAGS} tiffgt tiffsv; \
else \
true; \
fi
install: all
${INSTALL} -idb tiff.sw.tools -m 755 \
-dir ${DESTDIR}c:/progra~1/Tiff/bin
${INSTALL} -idb tiff.sw.tools -m 755 \
-F ${DESTDIR}c:/progra~1/Tiff/bin -O ${TARGETS}
@if [ "no" = yes ]; then \
${INSTALL} -idb tiff.sw.tools -m 755 \
-F ${DESTDIR}c:/progra~1/Tiff/bin -O sgi2tiff; \
else \
true; \
fi
@if [ "no" = yes ]; then \
${INSTALL} -idb tiff.sw.tools -m 755 -F ${DESTDIR}c:/progra~1/Tiff/bin \
-O tiffgt tiffsv; \
else \
true; \
fi
clean:
rm -f ${TARGETS} ${OBJS} tiffgt.o tiffgt sgisv.o tiffsv \
sgi2tiff.o sgi2tiff core a.out ycbcr
#
# System-independent tools
#
tiffinfo.exe: tiffinfo-rc.o tiffinfo.o ${TIFFLIB}
${CC} -o tiffinfo ${CFLAGS} tiffinfo.o tiffinfo-rc.o ${LIBS}
tiffinfo.o: ${SRCDIR}/tiffinfo.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffinfo.c
tiffcmp.exe: tiffcmp-rc.o tiffcmp.o ${TIFFLIB}
${CC} -o tiffcmp ${CFLAGS} tiffcmp.o tiffcmp-rc.o ${LIBS}
tiffcmp.o: ${SRCDIR}/tiffcmp.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffcmp.c
tiffcp.exe: tiffcp-rc.o tiffcp.o ${TIFFLIB}
${CC} -o tiffcp ${CFLAGS} tiffcp.o tiffcp-rc.o ${LIBS}
tiffcp.o: ${SRCDIR}/tiffcp.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffcp.c
tiffdump.exe: tiffdump-rc.o tiffdump.o
${CC} -o tiffdump ${CFLAGS} tiffdump.o tiffdump-rc.o ${LIBS}
tiffdump.o: ${SRCDIR}/tiffdump.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffdump.c
tiffmedian.exe: tiffmedian-rc.o tiffmedian.o ${TIFFLIB}
${CC} -o tiffmedian ${CFLAGS} tiffmedian.o tiffmedian-rc.o ${LIBS}
tiffmedian.o: ${SRCDIR}/tiffmedian.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffmedian.c
tiffsplit.exe: tiffsplit-rc.o tiffsplit.o ${TIFFLIB}
${CC} -o tiffsplit ${CFLAGS} tiffsplit.o tiffsplit-rc.o ${LIBS}
tiffsplit.o: ${SRCDIR}/tiffsplit.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffsplit.c
tiff2pdf.exe: tiff2pdf-rc.o tiff2pdf.o ${TIFFLIB}
${CC} -o tiff2pdf ${CFLAGS} tiff2pdf.o tiff2pdf-rc.o ${LIBS}
tiff2pdf.o: ${SRCDIR}/tiff2pdf.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiff2pdf.c
tiff2ps.exe: tiff2ps-rc.o tiff2ps.o ${TIFFLIB}
${CC} -o tiff2ps ${CFLAGS} tiff2ps.o tiff2ps-rc.o ${LIBS}
tiff2ps.o: ${SRCDIR}/tiff2ps.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiff2ps.c
tiffset.exe: tiffset-rc.o tiffset.o ${TIFFLIB}
${CC} -o tiffset ${CFLAGS} tiffset.o tiffset-rc.o ${LIBS}
tiffset.o: ${SRCDIR}/tiffset.c
${CC} -c ${CFLAGS} -I../libtiff ${SRCDIR}/tiffset.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.exe: tiff2bw-rc.o tiff2bw.o ${TIFFLIB}
${CC} -o tiff2bw ${CFLAGS} tiff2bw.o tiff2bw-rc.o ${LIBS}
tiff2bw.o: ${SRCDIR}/tiff2bw.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiff2bw.c
# convert anything to RGBA.
tiff2rgba.exe: tiff2rgba-rc.o tiff2rgba.o ${TIFFLIB}
${CC} -o tiff2rgba ${CFLAGS} tiff2rgba.o tiff2rgba-rc.o ${LIBS}
tiff2rgba.o: ${SRCDIR}/tiff2rgba.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiff2rgba.c
# convert B&W image to bilevel w/ FS dithering
tiffdither.exe: tiffdither-rc.o tiffdither.o ${TIFFLIB}
${CC} -o tiffdither ${CFLAGS} tiffdither.o tiffdither-rc.o ${LIBS}
tiffdither.o: ${SRCDIR}/tiffdither.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffdither.c
# simple Sun rasterfile converter
ras2tiff.exe: ras2tiff-rc.o ras2tiff.o ${TIFFLIB}
${CC} -o ras2tiff ${CFLAGS} ras2tiff.o ras2tiff-rc.o ${LIBS}
ras2tiff.o: ${SRCDIR}/ras2tiff.c
${CC} -c ${CFLAGS} ${SRCDIR}/ras2tiff.c
# convert raw images to TIFFs
raw2tiff.exe: raw2tiff-rc.o raw2tiff.o ${TIFFLIB}
${CC} -o raw2tiff ${CFLAGS} raw2tiff.o raw2tiff-rc.o ${LIBS}
raw2tiff.o: ${SRCDIR}/raw2tiff.c
${CC} -c ${CFLAGS} ${SRCDIR}/raw2tiff.c
# simple GIF converter
gif2tiff.exe: gif2tiff-rc.o gif2tiff.o ${TIFFLIB}
${CC} -o gif2tiff ${CFLAGS} gif2tiff.o gif2tiff-rc.o ${LIBS}
gif2tiff.o: ${SRCDIR}/gif2tiff.c
${CC} -c ${CFLAGS} ${SRCDIR}/gif2tiff.c
# very limited PBM converter
ppm2tiff.exe: ppm2tiff-rc.o ppm2tiff.o ${TIFFLIB}
${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.o ppm2tiff-rc.o ${LIBS}
ppm2tiff.o: ${SRCDIR}/ppm2tiff.c
${CC} -c ${CFLAGS} ${SRCDIR}/ppm2tiff.c
# Group 3/4 FAX file converter
fax2tiff.exe: fax2tiff-rc.o fax2tiff.o ${TIFFLIB}
${CC} -o fax2tiff ${CFLAGS} fax2tiff.o fax2tiff-rc.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.exe: fax2ps-rc.o fax2ps.o ${TIFFLIB}
${CC} -o fax2ps ${CFLAGS} fax2ps.o fax2ps-rc.o ${LIBS}
fax2ps.o: ${SRCDIR}/fax2ps.c
${CC} -c ${CFLAGS} ${SRCDIR}/fax2ps.c
# convert Palette image to RGB
pal2rgb.exe: pal2rgb-rc.o pal2rgb.o ${TIFFLIB}
${CC} -o pal2rgb ${CFLAGS} pal2rgb.o pal2rgb-rc.o ${LIBS}
pal2rgb.o: ${SRCDIR}/pal2rgb.c
${CC} -c ${CFLAGS} ${SRCDIR}/pal2rgb.c
# convert RGB image to YCbCr
rgb2ycbcr.exe: rgb2ycbcr-rc.o rgb2ycbcr.o ${TIFFLIB}
${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.o rgb2ycbcr-rc.o ${LIBS}
rgb2ycbcr.o: ${SRCDIR}/rgb2ycbcr.c
${CC} -c ${CFLAGS} ${SRCDIR}/rgb2ycbcr.c
# generate thumbnail images from fax (example of SubIFD usage)
thumbnail.exe: thumbnail-rc.o thumbnail.o ${TIFFLIB}
${CC} -o thumbnail ${CFLAGS} thumbnail.o thumbnail-rc.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.exe: sgi2tiff-rc.o sgi2tiff.o ${TIFFLIB}
${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.o sgi2tiff-rc.o -limage ${LIBS}
sgi2tiff.o: ${SRCDIR}/sgi2tiff.c
${CC} -c ${CFLAGS} ${SRCDIR}/sgi2tiff.c
# SGI versions of tiffgt & tiffsv that require -lgl
tiffgt.exe: tiffgt-rc.o tiffgt.o ${TIFFLIB}
${CC} -o tiffgt ${CFLAGS} tiffgt.o tiffgt-rc.o -lGL -lglut ${LIBS}
tiffgt.o: ${SRCDIR}/tiffgt.c
${CC} -c ${CFLAGS} ${SRCDIR}/tiffgt.c
tiffsv.exe: tiffsv-rc.o sgisv.o ${TIFFLIB}
${CC} -o tiffsv ${CFLAGS} sgisv.o sgisv-rc.o -lgutil -lgl ${LIBS}
sgisv.o: ${SRCDIR}/sgisv.c
${CC} -c ${CFLAGS} ${SRCDIR}/sgisv.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -