diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -1,6 +1,31 @@ +ifneq ($(FC), ifort) +ifneq ($(FC), gfortran) + +ifneq ($(shell which ifort 2>/dev/null),) +FC = ifort +endif + +ifneq ($(shell which gfortran 2>/dev/null),) FC = gfortran +endif + +endif +endif + + +ifndef FFLAGS + +ifeq ($(FC), gfortran) FFLAGS = -std=f2008 -Wall -pedantic -fbounds-check -fimplicit-none \ - -I/usr/include -lfftw3 -lm + -ffree-form -O2 -I/usr/include -lfftw3 -lm +endif + +ifeq ($(FC), ifort) +FFLAGS = -std08 -module . -implicitnone -pedantic -check bounds \ + -O2 -I/usr/include -lfftw3 -lm +endif + +endif all : fourier |