#
# File: Makefile
# Author: K.R. Sloan 
# Last Modified: 22 April 1991
# Purpose: maintain the UNC to WFF conversion formatters

ARCH = SS1
ARCHUNC = .sun4

PROGRAMS = UNC2wff wff2UNC

WFF = /wa/wff

UNC = ..

INCLUDE = -I${UNC}/lib${ARCHUNC} -I${WFF}/include

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

CFLAGS = -g ${INCLUDE}

all: ${PROGRAMS}

UNC2wff: UNC2wff.c
	cc ${CFLAGS} -o UNC2wff UNC2wff.c \
           ${UNC}/lib${ARCHUNC}/libim.a \
           ${WFF}/${ARCH}bin/wff.o  -lc

wff2UNC: wff2UNC.c
	cc ${CFLAGS} -o wff2UNC  wff2UNC.c \
           ${UNC}/lib${ARCHUNC}/libim.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
