# File: newTiler/Makefile
# Authors: David Meyers,
#          K.R. Sloan
# Last Modified: 13 November 1990
# Purpose: maintain Optimizing tiler demo program

ARCH = SS1

# where should the libraries and executables go?

BASE = /wa/Contours

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

INCLUDE = -I../include

CFLAGS = -g ${INCLUDE}

SOURCE = Tiler.c

LIBS = ${BASE}/lib/libEOps.${ARCH}.a ${BASE}/lib/libWE.${ARCH}.a ${BASE}/lib/libXOut.${ARCH}.a ${BASE}/lib/lib457.${ARCH}.a

PROGRAMS = Tiler

all: ${PROGRAMS}

Tiler: Tiler.c ${LIBS}
	cc $(CFLAGS) -o Tiler Tiler.c ${LIBS} -lc -lm -lX11

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

lint:
	lint -I../include ${SOURCE} -lc

clean:
	rm -f ${PROGRAMS}
	rm -f *~ *.o core
	ls -l
