-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.ifort
48 lines (39 loc) · 1.15 KB
/
Makefile.ifort
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
37
38
39
40
41
42
43
44
45
46
47
48
.SUFFIXES: .mod .o .f90
FC = ifort
#MKLROOT = /usr/local/intel/2015.0.090/mkl
MKLROOT = /opt/intel/compilers_and_libraries_2019.4.243/linux/mkl
#FCFLAGS = -mkl -fpp -c -qopenmp -assume nobscc -Dsingle_precision -I ${MKLROOT}/include/fftw/ -I ${MKLROOT}/include/
FCFLAGS = -mkl -fpp -c -O3 -qopenmp -recursive -Dsingle_precision -I ${MKLROOT}/include/fftw/ -I ${MKLROOT}/include/ -DLIN
LDFLAGS = -mkl -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -qopenmp -I ${MKLROOT}/include/ -I ${MKLROOT}/include/fftw
SUFFIX = .f90
OBJS = \
quadpack.o \
m_precision.o \
m_string.o \
m_numerical_tools.o \
mod_global_variables.o \
m_crystallography.o \
m_electron.o \
m_user_input.o \
mod_CUFFT_wrapper.o \
mod_output.o \
m_multislice.o \
m_lens.o \
m_tilt.o \
m_absorption.o \
m_potential.o \
s_qep_stem.o \
s_absorptive_stem.o \
s_absorptive_tem.o \
MS_utilities.o \
s_qep_tem.o \
muSTEM.o
all: link
#F90SRC_MOD = $(OBJS_MOD:.mod=$(SUFFIX))
F90SRC = $(OBJS:.o=$(SUFFIX))
$(OBJS): $(F90SRC)
${FC} ${FCFLAGS} -c $*$(SUFFIX)
link: $(OBJS)
${FC} $(OBJS) ${LDFLAGS} -o MuSTEM.x
clean:
rm *.mod *.o