incomp-flame-1d/code/makefile

27 lines
552 B
Makefile

flags = -Wall -O3 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -march=native
ifdef CHECK
flags += -fcheck=all
endif
compiler = gfortran
ex : test.o ysolve.o Compact.o
${compiler} -o ex test.o ysolve.o Compact.o
test.o : test.f90 ysolve.mod compact.mod
${compiler} -c ${flags} test.f90
ysolve.o ysolve.mod : ysolve.f90 compact.mod
${compiler} -c ${flags} ysolve.f90
touch ysolve.mod
Compact.o compact.mod : Compact.f90
${compiler} -c ${flags} Compact.f90
touch compact.mod
test: ex
sh test.sh
clean:
rm -f *.o *.mod ex