# A makefile to compile and cleanup the plot program

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

#PLLIB= -lcpgplot -lpgplot -lX11   -lsocket -lnsl
#PLINC=  -I/opt/pgplot-5.2 -I/felicia_1/fredrik/inc

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

LIB= -lm

CC1 = cc -fast
CC2 = gcc -O2

CC = $(CC2)
FF = f77

prog	:$(SOU)
	$(CC) -c $(PLINC) $(SOU)
	
	$(FF) -o $(PRG) $(OBJ) $(PLLIB) $(LIB)

clean: 
	-rm *.o mcp
