-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.ANPHON
51 lines (36 loc) · 1.14 KB
/
Makefile.ANPHON
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
49
50
51
.SUFFIXES: .h .cpp
#-----------------------------------------------
# Makefile for the program 'ANPHON'.
# Please modify the variables properly.
# We recommend to use Intel c++ compiler.
#-----------------------------------------------
MPICXX = mpicxx
CXXFLAGS = -O3 -fopenmp -std=c++11
INCLUDE = -I../include
LINKER = ${MPICXX}
LDFLAGS = -lfftw3 -llapacke -llapack -lrefblas
LAPACK =
LIBS = ${LAPACK}
#----------------------------------------------
# General rules
#----------------------------------------------
.cpp.o:
${MPICXX} ${CXXFLAGS} ${INCLUDE} -c $<
PROG = anphon
CXXSRC= phonons.cpp error.cpp fcs_phonon.cpp parsephon.cpp dynamical.cpp \
main.cpp memory.cpp system.cpp timer.cpp write_phonons.cpp kpoint.cpp \
phonon_dos.cpp phonon_velocity.cpp integration.cpp relaxation.cpp \
thermodynamics.cpp conductivity.cpp symmetry_core.cpp \
mpi_common.cpp gruneisen.cpp isotope.cpp selfenergy.cpp \
scph.cpp ewald.cpp
OBJS= ${CXXSRC:.cpp=.o}
default: anphon
all: ${PROG}
anphon: ${OBJS}
${LINKER} ${CXXFLAGS} -o $@ ${OBJS} ${LIBS} $(LDFLAGS)
clean:
rm -f ${OBJS}
.PHONY: clean
depend:
gcc -MM *.cpp > .depend
-include .depend