From 799676f8973eb003a5e1be3a8be1f8d0cf1e5cd1 Mon Sep 17 00:00:00 2001 From: ignis Date: Mon, 1 Apr 2019 15:55:52 +0900 Subject: [PATCH] makefile update gfortran --- code/makefile | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/code/makefile b/code/makefile index e183b87..caff7b2 100644 --- a/code/makefile +++ b/code/makefile @@ -2,19 +2,31 @@ #Neuman flags #flags = -O3 -r8 -i8 -openmp -msse3 -axSSSE3 -m64 -fPIC -i_dynamic #Cluster_2(16.161) flags -flags = -O3 -r8 -i8 -qopenmp -msse3 -axSSSE3 -m64 -fPIC -compiler = ifort +flags = -Wall -O3 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -march=native -Post_Cbar_FSD_Incomp : test.o post.mod Compact.mod +ifdef CHECK +flags += -fcheck=all +endif + +ifdef DEBUG +flags += -g +endif + +compiler = gfortran + +Post_Cbar_FSD_Incomp : x-edge-cold-bc-uPrime-hybrid + +x-edge-cold-bc-uPrime-hybrid : test.o post.o Compact.o ${compiler} -o x-edge-cold-bc-uPrime-hybrid ${flags} test.o post.o Compact.o -test.o : test.f90 post.mod +test.o : test.f90 post.mod compact.mod ${compiler} -c ${flags} test.f90 -post.mod: post.f90 Compact.mod +post.o post.mod: post.f90 compact.mod ${compiler} -c ${flags} post.f90 -Compact.mod: Compact.f90 +Compact.o compact.mod: Compact.f90 ${compiler} -c ${flags} Compact.f90 + clean: rm *.o *.mod x-edge-cold-bc-uPrime-hybrid