# A makefile to compile and cleanup the prf program

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

LIB= -lm
OPTS= -DLINUX
CFLAGS= $(OPTS)
CC1 = cc
CC2 = c89 +O4 +Oparallel
CC3= gcc -O3 -march=pentium4
CC4=icc -O3 -march=pentium4
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
