#
# Makefile for sample programs of GLSC
#
SRCS	=	ctestd.c ctests.c ftestd.f ftests.f
PROGS	=	ctestd ctests ftestd ftests
OBJS	=	ctestd.o ctests.o ftestd.o ftests.o
CC	=	cc
CFLAGS	=	-O
FC	=	f77
FFLAGS	=	-O
JUNKS	=	foo bar Meta *~ 

default: all
all: $(PROGS) $(DVIS)
#
ctests: ctests.c
	$(CC) $(CFLAGS) -o $@ ctests.c -lglscs -lX11 -lm
ctestd: ctestd.c
	$(CC) $(CFLAGS) -o $@ ctestd.c -lglscd -lX11 -lm
ftests: ftests.f
	$(FC) $(FFLAGS) -o $@ ftests.f -lglscs -lX11
ftestd: ftestd.f
	$(FC) $(FFLAGS) -o $@ ftestd.f -lglscd -lX11
#
clean:
	rm -f $(OBJS) $(JUNKS)
vc veryclean:
	rm -f $(OBJS) $(JUNKS) $(PROGS)
