# A makefile to compile and cleanup the mcp program

OBJ= init.o main.o integrate.o  sphere.o vector.o map.o fits.o 
SOU= init.c main.c integrate.c  sphere.c vector.c map.c fits.c

LIB= -lm -lcfitsio
OPTS= -DLINUX
CFLAGS= $(OPTS)
CC1 = cc
CC2 = c89 +O4 +Oparallel
CC3= gcc -O2
CC4 = icc -O3 -tpp7 -xW
CC = $(CC4)
LOPT= -hbxa


prog	:$(OBJ)
	$(CC) $(OBJ) -o prf $(LIB)

$(OBJ)	:prf.h

$(OBJ)	:vector.h

fits.o	:fits.h

init.o	:init.h

lint:
	-lint $(LOPT) $(SOU)

test	:read_par.o
	$(CC) read_par.o -o test $(LIB)

clean: 
	-rm *.o prf
