# A makefile to compile and cleanup the mcp program

OBJ= main.o convolve.o init.o splint.o spline.o beam.o nrutil.o plot.o map.o output.o extinction.o
SOU= main.c convolve.c init.c splint.c spline.c beam.c nrutil.c plot.c map.c output.c extinction.c

PRG= scale

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

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

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 -fast
CC2 = gcc -O2

CC = $(CC2)
FF = f77

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

clean: 
	-rm *.o scale
