# Makefile to make an old version of graph
# 5 July 1990 - Phil Farrell - Stanford Earth Sciences
# If vplot, libgks, and libloc are installed on your system, use the 
# following macro definitions
CFLAGS = -O -I/usr/local/include
LIBGKS = -lgks
LIBLOC = -lloc
# If you have created vplot and libgks in parallel directories, but 
# have not installed them, use these macro definitions:
#CFLAGS = -g -I../../libgks/include -I../../vplot/filters/include
#LIBGKS = ../../libgks/libgks.a
#LIBLOC = ../../vplot/filters/loclib/loclib.a

oldgraph: graph.o oldsubs.o
	cc ${CFLAGS} -o graph graph.o oldsubs.o ../err.o ${LIBGKS} ${LIBLOC} -lm

install: graph.c
	install -c -s -o system -m 755 graph /usr/local/bin/graph

clean:
	rm *.o a.out
