forked from domuhe/MuSTEM5.3_PGIcommunity19.4
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.ifort
43 lines (37 loc) · 983 Bytes
/
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
.SUFFIXES: .mod .o .f90
FC = ifort
MKLROOT = /usr/local/intel/2015.0.090/mkl
FCFLAGS = -mkl -fpp -c -qopenmp -assume nobscc -Dsingle_precision -I ${MKLROOT}/include/fftw -I ${MKLROOT}/include/
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
#F90SRC_MOD = $(OBJS_MOD:.mod=$(SUFFIX))
F90SRC = $(OBJS:.o=$(SUFFIX))
$(OBJS): $(F90SRC)
${FC} ${FCFLAGS} -c $*$(SUFFIX)
all: link
link: $(OBJS)
${FC} ${LDFLAGS} $(OBJS) -o MuSTEM.x
clean:
rm *.mod *.o