-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
33 lines (27 loc) · 1.32 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FC = ifort
ifeq (${FC}, ifort)
FFLAGS += -I${MKLROOT}/include -O3 -xHOST -ipo -ip
# FFLAGS += -I${MKLROOT}/include -g -traceback -CB
LDFLAGS += ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_intel_thread.a ${MKLROOT}/lib/libmkl_core.a -liomp5 -lpthread -lm -ldl -fopenmp
# LDFLAGS += ${MKLROOT}/lib/libmkl_intel_lp64.a ${MKLROOT}/lib/libmkl_intel_thread.a ${MKLROOT}/lib/libmkl_core.a -liomp5 -lpthread -lm -ldl
endif
.SUFFIXES:.f90 .o
bin/MTC_Ising_2d_eq: src/MTC_Ising_2d_eq.o lib/mod_proc.o lib/mod_global.o
${FC} -mkl -o $@ $^
bin/MTC_Ising_2d: src/MTC_Ising_2d.o lib/mod_proc.o lib/mod_global.o
${FC} -mkl -o $@ $^
bin/MTC_analyze_2d_eq: src/MTC_analyze_2d_eq.o lib/mod_proc.o lib/mod_global.o
${FC} -mkl -o $@ $^
bin/MTC_analyze_2d: src/MTC_analyze_2d.o lib/mod_proc.o lib/mod_global.o
${FC} -mkl -o $@ $^
.f90.o:
${FC} ${FFLAGS} ${LDFLAGS} -c -o $@ $<
.PHONY: clean
clean:
rm -f lib/*.o lib/*.optrpt src/*.o src/*.optrpt bin/* *.mod
src/MTC_Ising_2d_eq.o: src/MTC_Ising_2d_eq.f90 lib/mod_proc.o lib/mod_global.o
src/MTC_Ising_2d.o: src/MTC_Ising_2d.f90 lib/mod_proc.o lib/mod_global.o
src/MTC_analyze_2d_eq.o: src/MTC_analyze_2d_eq.f90 lib/mod_proc.o lib/mod_global.o
src/MTC_analyze_2d.o: src/MTC_analyze_2d.f90 lib/mod_proc.o lib/mod_global.o
lib/mod_global.o: lib/mod_global.f90
lib/mod_proc.o: lib/mod_proc.f90