#
# File: SunRaster/Makefile
# Author: K.R. Sloan
# Last Modified: 7 February 1991
# Purpose: maintain the SunRaster convertors


ARCH = SS1

WFF = ../..

INCLUDE = -I../../include -I. 

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

CFLAGS = -g ${INCLUDE}

PROGRAMS = sun2wff wff2sun

all: ${PROGRAMS}

sun2wff: sun2wff.c
	cc ${CFLAGS} -o sun2wff sun2wff.c ${WFF}/${ARCH}bin/wff.o -lc -lm
	
wff2sun: wff2sun.c ${WFF}/${ARCH}bin/wff.o
	cc ${CFLAGS} -o wff2sun wff2sun.c ${WFF}/${ARCH}bin/wff.o -lc -lm

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

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

