forked from dkorotin/exchanges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 749 Bytes
/
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
34
35
36
PROG = exchanges.x
#gfortan Mac Os
# FC = gfortran
# FFLAGS = -fopenmp -Og -O2 -g
# LIBS = -fopenmp -framework Accelerate #-L/usr/local/opt/lapack/lib/ -llapack -lblas
# Intel fortran linux
FC = ifort
FFLAGS = -qopenmp -O2 -g -mavx
LIBS = -qopenmp -lmkl_intel_lp64 -lmkl_sequential -lmkl_core
#uncomment for debug:
# FFLAGS = -qopenmp -O0 -g -mavx -traceback -check
# gfortran linux
# FC = gfortran
# FFLAGS = -fopenmp -Og -O2 -g
# LIBS = -L/usr/local/opt/lapack/lib/ -llapack -lblas
LFLAGS =
OBJ = parameters.o general.o iomodule.o find_nnbrs.o green_function.o
all: $(PROG)
exchanges.x: $(OBJ) exchanges.o
$(FC) $(LFLAGS) -o $@ exchanges.o $(OBJ) $(LIBS)
clean:
rm *.o *.mod
%.o: %.f90
$(FC) -c $(FFLAGS) -o $(*F).o $<