File: Makefile.lcc

package info (click to toggle)
libtiff3 3.4beta037-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,732 kB
  • ctags: 3,274
  • sloc: ansic: 32,425; sh: 2,610; makefile: 1,515
file content (132 lines) | stat: -rw-r--r-- 4,179 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# $Header: /d1/sam/tiff/tools/RCS/Makefile.lcc,v 1.5 1997/08/29 21:46:45 sam Exp $
#
# 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.
#
NULL=
IPATH=    -I..\libtiff
#
# If you don't want the public domain getopt code, then
# simply null this out and you'll get whatever is in your
# libc (or similar).
#
GETOPT=	getopt.o
#
# Library-wide configuration defines:
# Note that if you change the library-wide configuration, you'll
# need to manual force a full rebuild. 
#
CONF_LIBRARY=\
	${NULL}
COPTS=	-Oloop -cwagshf -d1 -b0 -v -DNDEBUG -rr -j135i
CFLAGS=	${COPTS} ${IPATH} -DBINMODE='"b"'
#
LIBTIFF=..\libtiff\tiffrnb.lib
LIBS=	-l${LIBTIFF} -lm
MACHALL=ras2tiff.ttp
OBJS=\
	fax2tiff.o \
	gif2tiff.o \
	pal2rgb.o \
	ppm2tiff.o \
	rgb2ycbcr.o \
	tiff2bw.o \
	tiff2ps.o \
	tiffcmp.o \
	tiffcp.o \
	tiffdither.o \
	tiffdump.o \
	tiffinfo.o \
	tiffmedian.o \
	tiffsplit.o \
	ras2tiff.o \
	${GETOPT} \
	${NULL}
ALL=\
	fax2tiff.ttp \
	gif2tiff.ttp \
	pal2rgb.ttp \
	ppm2tiff.ttp \
	rgb2ycbcr.ttp \
	tiff2bw.ttp \
	tiff2ps.ttp \
	tiffcmp.ttp \
	tiffcp.ttp \
	tiffdither.ttp \
	tiffdump.ttp \
	tiffinfo.ttp \
	tiffmedian.ttp \
	tiffsplit.ttp \
	${MACHALL} \
	${NULL}

all:	${ALL}

tiffinfo.ttp: tiffinfo.c ${GETOPT} ${LIBTIFF}
	${CC} -o tiffinfo.ttp ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
tiffcmp.ttp: tiffcmp.c ${GETOPT} ${LIBTIFF}
	${CC} -o tiffcmp.ttp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
tiffcp.ttp:   tiffcp.c ${LIBTIFF}
	${CC} -o tiffcp.ttp ${CFLAGS} tiffcp.c ${LIBS}
tiffdump.ttp: tiffdump.c
	${CC} -o tiffdump.ttp ${CFLAGS} tiffdump.c -lm ${LIBS}
tiffmedian.ttp: tiffmedian.c ${LIBTIFF}
	${CC} -o tiffmedian.ttp ${CFLAGS} tiffmedian.c ${LIBS}
tiffsplit.ttp: tiffsplit.c ${LIBTIFF}
	${CC} -o tiffsplit.ttp ${CFLAGS} tiffsplit.c ${LIBS}
tiff2ps.ttp: tiff2ps.c ${LIBTIFF}
	${CC} -o tiff2ps.ttp ${CFLAGS} tiff2ps.c ${LIBS}
# junky stuff...
# convert RGB image to B&W
tiff2bw.ttp: tiff2bw.c ${GETOPT} ${LIBTIFF}
	${CC} -o tiff2bw.ttp ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
# convert B&W image to bilevel w/ FS dithering
tiffdither.ttp: tiffdither.c ${LIBTIFF}
	${CC} -o tiffdither.ttp ${CFLAGS} tiffdither.c ${LIBS}
# Group 3 FAX file converter
fax2tiff.ttp: fax2tiff.c ${GETOPT} ${LIBTIFF}
	${CC} -o fax2tiff.ttp ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
# convert Palette image to RGB
pal2rgb.ttp: pal2rgb.c ${LIBTIFF}
	${CC} -o pal2rgb.ttp ${CFLAGS} pal2rgb.c ${LIBS}
# convert RGB image to YCbCr
rgb2ycbcr.ttp: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
	${CC} -o rgb2ycbcr.ttp ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS}
# GIF converter
gif2tiff.ttp: gif2tiff.c ${LIBTIFF}
	${CC} -o gif2tiff.ttp ${CFLAGS} gif2tiff.c ${LIBS}
# PBM converter
ppm2tiff.ttp: ppm2tiff.c ${LIBTIFF}
	${CC} -o ppm2tiff.ttp ${CFLAGS} ppm2tiff.c ${LIBS}
# Sun rasterfile converter
ras2tiff.ttp: ras2tiff.c ${LIBTIFF}
	${CC} -o ras2tiff.ttp ${CFLAGS} ras2tiff.c ${LIBS}
# generate thumbnail images from fax
thumbnail: thumbnail.c ${LIBTIFF}
	${CC} -o thumbnail ${CFLAGS} thumbnail.c ${LIBS} -lm

install: all

clean:
	rm -f ${ALL} ${OBJS} ycbcr.ttp