-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.TOOLS
53 lines (35 loc) · 946 Bytes
/
Makefile.TOOLS
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
52
53
.SUFFIXES: .h .cpp
#-----------------------------------------------
# Makefile for 'tools' directory
# Please modify the variables properly.
# We recommend to use Intel c++ compiler.
#-----------------------------------------------
#Intel compiler
#CXX = icpc
# OSX
CXX = g++
CXXFLAGS = -O2 -std=c++11
# Add the directory containing boost header files here
INCLUDE = -I../include -I$(HOME)/include
#----------------------------------------------
# General rules
#----------------------------------------------
.cpp.o:
${CXX} ${CXXFLAGS} ${INCLUDE} -c $<
PROG = analyze_phonons qe2alm dfc2
CXXSRC = analyze_phonons.cpp qe2alm.cpp dfc2.cpp
OBJS= ${CXXSRC:.cpp=.o}
default: all
all: ${PROG}
analyze_phonons: analyze_phonons.o
${CXX} ${CXXFLAGS} -o $@ $<
qe2alm: qe2alm.o
${CXX} ${CXXFLAGS} -o $@ $<
dfc2: dfc2.o
${CXX} ${CXXFLAGS} -o $@ $<
clean:
rm -f ${OBJS}
.PHONY: clean
depend:
gcc -MM *.cpp > .depend
-include .depend