-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmakefile
45 lines (34 loc) · 905 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
37
38
39
40
41
42
43
44
45
OPT:=3
default: incremental
exec := a.out
rev:= $(shell svnversion -n)
ifdef debug
CXXFLAGS +=-O$(OPT) -pg -Wall -I.
else
CXXFLAGS +=-O$(OPT) -I.
endif
ifdef threads
CXXFLAGS+=-pthreads
endif
OBJS = tqli2.o tred3.o heisenberg.o densityMatrix.o lanczosDMRG.o
$(exec): $(OBJS)
g++ $(CXXFLAGS) $(OBJS)
tqli2.o: tqli2.cpp tqli2.h
g++ -c $(CXXFLAGS) tqli2.cpp
tred3.o: tred3.cpp tred3.h
g++ -c $(CXXFLAGS) tred3.cpp
lanczosDMRG.o: lanczosDMRG.cpp lanczosDMRG.h lanczosDMRG_helpers.h tqli2.o
g++ -c $(CXXFLAGS) lanczosDMRG.cpp
densityMatrix.o: densityMatrix.cpp tred3.o tqli2.o
g++ -c $(CXXFLAGS) densityMatrix.cpp
heisenberg.o: heisenberg.cpp matrixManipulation.h
g++ -c $(CXXFLAGS) heisenberg.cpp
.PHONY: clean incremental all doc tarball
all: clean incremental doc
clean:
rm *.o
doc:
doxygen ./bin/doxy_sse.cfg -w html ./doc/header.html
tarball:
./bin/make_tarball
incremental: ${exec}