# Makefile to make miscellaneous test programs
# 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 ${LIBGKS} ${LIBLOC} -lm

aton: aton.o strtof.o
	cc ${CFLAGS} aton.o strtof.o -lm

readtest:	readtest.o bufcat.o readdata.o scaledata.o miscsubs.o \
		err.o storemesg.o
	cc $(CFLAGS) readtest.o bufcat.o readdata.o scaledata.o miscsubs.o \
		err.o storemesg.o ${LIBLOC} -lm

bctest: bctest.o bufcat.o
	cc $(CFLAGS) bctest.o bufcat.o

mesgtest: mesgtest.o storemesg.o err.o bufcat.o
	cc $(CFLAGS) mesgtest.o storemesg.o bufcat.o -o mesgtest ${LIBLOC} err.o -lm

rltest: rltest.o readline.o
	cc $(CFLAGS) rltest.o readline.o

symbtest: symbtest.o miscsubs.o
	cc ${CFLAGS} symbtest.o miscsubs.o -lm

clean:
	-rm *.o a.out
