#  Before you compile this program, you must get (and install) the
# TIFF library by Sam Leffler, available via anonymous ftp from:
#      sgi.com             (192.48.153.1)   graphics/tiff/v2.4.tar.Z
# or   ucbvax.berkeley.edu (128.132.130.12) pub/tiff/v2.4.tar.Z
# or   uunet.uu.net        (192.48.96.2)    graphics/v2.4.tar.Z
#
CC =		cc
#CFLAGS =	-O -DUSE_VARARGS=1 -DUSE_PROTOTYPES=0
CFLAGS  = -O -A nansi -W0,-type
LDFLAGS =	-s
INSTALLBINARIES = /progs/bit2bit/gpr/bin

SHELL =		/bin/sh
TIFFDIR   =  /progs/bit2bit/tiff
LIBTIFF  =  $(TIFFDIR)/lib/libtiff.a
INCLUDES = -I$(TIFFDIR)/include

BINARIES =	tiff2gpr

all:		binaries

binaries:	$(BINARIES)

install:	binaries
	cp $(BINARIES) $(INSTALLBINARIES)

dither.o : dither.c
	$(CC) -O -c dither.c

# Rule for plain programs.
$(BINARIES): tiff2gpr.c dither.o
	$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) -o $@ $@.c $(LIBTIFF) dither.o

clean:
	rm *.o *.bak $(BINARIES)

