
TARGETS = FourierTrans1.o 

# -fPIC  ... warning: variable is never used
#FFLAGS=  -fPIC -fdefault-real-8  -w

## optimize for computations
FFLAGS=  -fPIC -fdefault-real-8 -fopenmp -O2 -w -ffpe-trap=invalid,zero,overflow

# for debugging of the code
#FFLAGS= -fPIC -fdefault-real-8 -g -fbacktrace -fbounds-check -w -Wall -finit-real=nan -finit-integer=-999999 -fno-align-commons -ffpe-trap=invalid,zero,overflow,denormal

FXX=gfortran


all: FourierTrans1


FourierTrans1: $(TARGETS)	
	$(FXX) $(FFLAGS) -o FourierTrans1 $^ 


clean:
	rm -f *.o

%.o:%.f90
	$(FXX) $(FFLAGS) -c $?

%.o:%.f
	$(FXX) $(FFLAGS) -c $?

