# A makefile to compile and cleanup the plot program

OBJ= plot.o
SOU= plot.c
PRG= plot

PLLIB=   -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib -lcpgplot  -lpgplot -lpng  -lX11 -lcfitsio 
#-lsocket -lnsl
PLINC=	-I/soft1/lib/pgplot -I/usr/local/include

LIB= -lm

CC1 = cc 
CC2 = gcc -O2

CC = $(CC2)
FF = f77

prog	:$(SOU)
	$(CC) -c $(PLINC) $(SOU)
#	
#fort:#	line removed, andreas, 29 oct 2001
	$(FF) -o $(PRG) $(OBJ) $(PLLIB) $(LIB)

clean: 
	-rm *.o plot
