#
# File: Makefile
# Author: K.R. Sloan 
# Last Modified: 4 March 1991
# Purpose: maintain the TIFF to WFF conversion formatters

ARCH = SS1

PROGRAMS = tiff2wff wff2tiff

WFF = /wa/wff

TIFF = /wa/tiff

INCLUDE = -I${TIFF}/libtiff/include -I${WFF}/include

DEST = ${WFF}/${ARCH}bin

CFLAGS = -g ${INCLUDE}

all: ${PROGRAMS}

tiff2wff: tiff2wff.c
	cc ${CFLAGS} -o tiff2wff tiff2wff.c \
           ${TIFF}/libtiff/lib/libtiff.a \
           ${WFF}/${ARCH}bin/wff.o  -lc

wff2tiff: wff2tiff.c
	cc ${CFLAGS} -o wff2tiff  wff2tiff.c \
           ${TIFF}/libtiff/lib/libtiff.a \
           ${WFF}/${ARCH}bin/wff.o ${WFF}/${ARCH}bin/mallocNd.o -lc -lm

install: all
	cp ${PROGRAMS} ${DEST}
	(cd ${DEST}; chmod a+rx ${PROGRAMS})
	ls -l ${DEST}

clean: 
	rm -f ${PROGRAMS} *.o *.bak *.ckp *"~"  .emac* core \#* 
	ls -l
