1# $Header: /cvsroot/osrs/libtiff/contrib/dosdjgpp/Makefile.lib,v 1.2 1999/11/30 19:42:34 warmerda Exp $ 2# 3# manually derived from Makefile.in for DJGPP v2.x (GNU C for DOS/386). 4# 5# Tag Image File Format Library 6# 7# Copyright (c) 1988-1996 Sam Leffler 8# Copyright (c) 1991-1996 Silicon Graphics, Inc. 9# 10# Permission to use, copy, modify, distribute, and sell this software and 11# its documentation for any purpose is hereby granted without fee, provided 12# that (i) the above copyright notices and this permission notice appear in 13# all copies of the software and related documentation, and (ii) the names of 14# Sam Leffler and Silicon Graphics may not be used in any advertising or 15# publicity relating to the software without the specific, prior written 16# permission of Sam Leffler and Silicon Graphics. 17# 18# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 19# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 20# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 21# 22# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 23# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 24# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 25# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 26# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 27# OF THIS SOFTWARE. 28# 29 30SRCDIR = . 31 32NULL = 33CC = gcc 34AR = ar 35AROPTS = rc 36RANLIB = ranlib 37 38# 39# If JPEG support is to be included and the Independent JPEG 40# Software distribution is not installed then DIR_JPEG must 41# refer to the directory where the include files reside. 42# 43# Similarly, if the libgz distribution is not installed, then 44# DIR_LIBGZ must refer to the directory where the include files 45# are located. Note that recent versions 46# 47IPATH = -I. -I${SRCDIR} 48# @COPT_LIBINC@ 49# 50# To enable JPEG support include -DJPEG_SUPPORT here. 51# To enable Deflate support add a -DZIP_SUPPORT here. 52# Note that where the configure script is used these defines 53# are automatically setup when JPEG/ZIP is set to "yes". 54# 55# Otherwise, consult tiffconf.h for information on controlling 56# the configuration of optional library support. 57# 58CONF_LIBRARY=#@CONF_JPEG@ @CONF_ZIP@ 59COPTS = 60OPTIMIZER=-O 61CFLAGS = ${COPTS} ${OPTIMIZER} ${IPATH} ${CONF_LIBRARY} 62# 63SRCS = \ 64 tif_aux.c \ 65 tif_close.c \ 66 tif_codec.c \ 67 tif_compress.c \ 68 tif_dir.c \ 69 tif_dirinfo.c \ 70 tif_dirread.c \ 71 tif_dirwrite.c \ 72 tif_dumpmode.c \ 73 tif_error.c \ 74 tif_fax3.c \ 75 tif_fx3s.c \ 76 tif_getimage.c \ 77 tif_jpeg.c \ 78 tif_flush.c \ 79 tif_lzw.c \ 80 tif_next.c \ 81 tif_open.c \ 82 tif_packbits.c \ 83 tif_predict.c \ 84 tif_print.c \ 85 tif_read.c \ 86 tif_swab.c \ 87 tif_strip.c \ 88 tif_thunder.c \ 89 tif_tile.c \ 90 tif_msdos.c \ 91 tif_version.c \ 92 tif_warning.c \ 93 tif_write.c \ 94 tif_zip.c \ 95 tif_luv.c \ 96 ${NULL} 97OBJS = \ 98 tif_aux.o \ 99 tif_close.o \ 100 tif_codec.o \ 101 tif_compress.o \ 102 tif_dir.o \ 103 tif_dirinfo.o \ 104 tif_dirread.o \ 105 tif_dirwrite.o \ 106 tif_dumpmode.o \ 107 tif_error.o \ 108 tif_fax3.o \ 109 tif_fx3s.o \ 110 tif_getimage.o \ 111 tif_jpeg.o \ 112 tif_flush.o \ 113 tif_lzw.o \ 114 tif_next.o \ 115 tif_open.o \ 116 tif_packbits.o \ 117 tif_predict.o \ 118 tif_print.o \ 119 tif_read.o \ 120 tif_swab.o \ 121 tif_strip.o \ 122 tif_thunder.o \ 123 tif_tile.o \ 124 tif_msdos.o \ 125 tif_version.o \ 126 tif_warning.o \ 127 tif_write.o \ 128 tif_zip.o \ 129 tif_luv.o \ 130 ${NULL} 131TARGETS = libtiff.a 132 133all: ${TARGETS} 134 135libtiff.a: ${OBJS} 136 ${AR} ${AROPTS} libtiff.a $? 137 ${RANLIB} libtiff.a 138 139${OBJS}: ${SRCDIR}/tiffio.h ${SRCDIR}/tiff.h ${SRCDIR}/tif_dir.h 140${OBJS}: ${SRCDIR}/tiffcomp.h ${SRCDIR}/tiffiop.h ${SRCDIR}/tiffconf.h 141 142ALPHA = ../dist/tiff.alpha 143VERSION = ../VERSION 144 145version.h: ${VERSION} ${ALPHA} ${SRCDIR}/mkversion.c 146 ${CC} -o mkversion ${CFLAGS} ${SRCDIR}/mkversion.c 147 del version.h 148 mkversion -v ${VERSION} -a ${ALPHA} version.h 149 150tif_version.o: version.h 151 152# 153# The finite state machine tables used by the G3/G4 decoders 154# are generated by the mkg3states program. On systems without 155# make these rules have to be manually carried out. 156# 157# The file is called tif_fax3sm.c is the normal (unix) Makefile, but this 158# may cause problems when compiling without support for LFN, then the file 159# tif_fax3.o is considered the same name as tif_fax3sm.o, since only 8 chars 160# are significant. 161# 162tif_fx3s.c: ${SRCDIR}/mkg3states.c ${SRCDIR}/tif_fax3.h 163 ${CC} -o mkg3states ${CFLAGS} ${SRCDIR}/mkg3states.c 164 del tif_fx3s.c 165 mkg3states -c const tif_fx3s.c 166 167tif_fx3s.o: tif_fx3s.c 168 @echo If the following gcc command fails due to lack of virtual memory, try 169 @echo compiling it in a non-DPMI environment with the cwsdpmi swapfile on a 170 @echo drive that has plenty of space. 171 ${CC} -c ${CFLAGS} tif_fx3s.c 172 173tif_aux.o: ${SRCDIR}/tif_aux.c 174 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_aux.c 175tif_close.o: ${SRCDIR}/tif_close.c 176 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_close.c 177tif_codec.o: ${SRCDIR}/tif_codec.c 178 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_codec.c 179tif_compress.o: ${SRCDIR}/tif_compress.c 180 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_compress.c 181tif_dir.o: ${SRCDIR}/tif_dir.c 182 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dir.c 183tif_dirinfo.o: ${SRCDIR}/tif_dirinfo.c 184 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirinfo.c 185tif_dirread.o: ${SRCDIR}/tif_dirread.c 186 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirread.c 187tif_dirwrite.o: ${SRCDIR}/tif_dirwrite.c 188 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dirwrite.c 189tif_dumpmode.o: ${SRCDIR}/tif_dumpmode.c 190 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_dumpmode.c 191tif_error.o: ${SRCDIR}/tif_error.c 192 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_error.c 193tif_fax3.o: ${SRCDIR}/tif_fax3.c ${SRCDIR}/t4.h ${SRCDIR}/tif_fax3.h 194 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_fax3.c 195tif_getimage.o: ${SRCDIR}/tif_getimage.c 196 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_getimage.c 197tif_jpeg.o: ${SRCDIR}/tif_jpeg.c 198 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_jpeg.c 199tif_flush.o: ${SRCDIR}/tif_flush.c 200 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_flush.c 201tif_lzw.o: ${SRCDIR}/tif_lzw.c ${SRCDIR}/tif_predict.h 202 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_lzw.c 203tif_next.o: ${SRCDIR}/tif_next.c 204 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_next.c 205tif_open.o: ${SRCDIR}/tif_open.c 206 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_open.c 207tif_packbits.o: ${SRCDIR}/tif_packbits.c 208 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_packbits.c 209tif_predict.o: ${SRCDIR}/tif_predict.c ${SRCDIR}/tif_predict.h 210 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_predict.c 211tif_print.o: ${SRCDIR}/tif_print.c 212 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_print.c 213tif_read.o: ${SRCDIR}/tif_read.c 214 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_read.c 215tif_swab.o: ${SRCDIR}/tif_swab.c 216 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_swab.c 217tif_strip.o: ${SRCDIR}/tif_strip.c 218 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_strip.c 219tif_thunder.o: ${SRCDIR}/tif_thunder.c 220 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_thunder.c 221tif_tile.o: ${SRCDIR}/tif_tile.c 222 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_tile.c 223tif_unix.o: ${SRCDIR}/tif_unix.c 224 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_unix.c 225tif_version.o: ${SRCDIR}/tif_version.c 226 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_version.c 227tif_warning.o: ${SRCDIR}/tif_warning.c 228 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_warning.c 229tif_write.o: ${SRCDIR}/tif_write.c 230 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_write.c 231tif_zip.o: ${SRCDIR}/tif_zip.c ${SRCDIR}/tif_predict.h 232 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_zip.c 233 234tif_apple.o: ${SRCDIR}/tif_apple.c 235 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_apple.c 236tif_atari.o: ${SRCDIR}/tif_atari.c 237 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_atari.c 238tif_msdos.o: ${SRCDIR}/tif_msdos.c 239 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_msdos.c 240tif_vms.o: ${SRCDIR}/tif_vms.c 241 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_vms.c 242tif_win3.o: ${SRCDIR}/tif_win3.c 243 ${CC} -c ${CFLAGS} ${SRCDIR}/tif_win3.c 244 245INCS = ${SRCDIR}/tiff.h ${SRCDIR}/tiffio.h 246 247clean: 248 rm -f ${TARGETS} ${OBJS} mkg3states mkg3states.exe tif_fx3s.c 249 rm -f version.h libtiff.a mkversion mkversion.exe 250