# Scatter Makefile, (C) Rob W.W. Hooft 1990-1995.
#
# $Id: Makefile,v 1.2 1995/11/10 14:16:16 hooft Exp $
#
OBJS = data.o general_fit.o figfile.o lines.o\
       polyno.o recipes.o scatter.o tools.o support.o

FFLAGS = -O2 #-automatic
CFLAGS = -O2 #-DF2C

LIBS= #-lf2c

all: scatter fig2dev

scatter: $(OBJS)
	$(F77) -o scatter $(OBJS) -lm

fig2dev:
	@ test -x /usr/bin/fig2dev || \
	( test -f /etc/redhat-release && \
		echo "Please install fig2dev using the command 'yum install xfig.i386'" ||\
		echo "Please install xfig using the command 'apt-get install xfig'";)

$(OBJS): SCATTER.INC

clean:
	rm -f *.o core *~ scatter
