# A makefile to compile and cleanup the plot program

OBJ= smooth.o nrutil.o splie2.o splin2.o spline.o splint.o
SOU= smooth.c nrutil.c splie2.c splin2.c spline.c splint.c
PRG= smooth

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

#PLLIB=   -L/usr/lib -L/usr/X11/lib -L/soft1/lib -L/soft1/local/lib -lcpgplot  -lpgplot  -lX11 -lcfitsio 
#PLINC=	-I/soft1/lib/pgplot -I/soft1/local/include
LIB= -lm


CC1 = cc 
CC2 = gcc -O

CC = $(CC2)
FF = f77

prog	:$(OBJ)
	$(CC) $(OBJ) -o smooth $(LIB)
	
fort:	
	$(FF) -o $(PRG) $(OBJ) $(PLLIB) $(LIB)

clean: 
	-rm *.o smooth
