#
# File: Makefile
# Authors: Jill Gemmill,
#          K.R. Sloan
# Last Modified: 22 August 1991
# Purpose: convert to/from sgi format
# NOTE: requires the iristools libraries (see SGI)
#
ARCH = SS1

PROGRAMS = wff2sgi sgi2wff

SHELL = /bin/sh

WFF = /wa/wff

SGI = /usr/people/4Dgifts/iristools

INCLUDE = -I${SGI}/include -I/usr/include/gl -I${WFF}/Include

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

CFLAGS = -O -${INCLUDE}

LIBS = ${SGI}/libgutil/libgutil.a ${SGI}/libimage/libimage.a -lgl_s -lfm_s -lm
ALL = 

all: ${PROGRAMS}

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

.c:
	cc $(CFLAGS) ${WFF}/bin/wff.o -o $@ $< $(LIBS)

