#Ray Tracing Makefile

CC  = gcc
CXX = g++
LNK = g++

OBJ = main.o adams.o dens.o igrf.o ref.o
LIB = -lm
PRG = a.out
FLG = 

$(PRG)	: 	$(OBJ)
		$(LNK) -o $(PRG) $(OBJ) $(LIB)

clean	:
		$(RM) $(PRG) $(OBJ) *~

.c.o	:
		$(CC) $(FLG) -c $<

.cpp.o	:
		$(CXX) $(FLG) -c $<

adams.o	: adams.h ref.h igrf.h dens.h 
ref.o	: ref.h igrf.h dens.h
dens.o	: dens.h 
igrf.o	: igrf.h
