-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·47 lines (34 loc) · 1.17 KB
/
Copy pathMakefile
File metadata and controls
executable file
·47 lines (34 loc) · 1.17 KB
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
TARGETS=brumbrella thist diffit propagators 1d_diff
# gogo
#CFLAGS=
#LDFLAGS=-lgsl -lgslcblas
# bigmac
#CFLAGS=-I/opt/local/include -pg
#LDFLAGS=-lgsl -L/opt/local/lib -lgsl -lgslcblas -pg
# use these for openblas:
#
CFLAGS=-I/home/robertbe/include -pg
#LDFLAGS=-lgsl -L/opt/local/lib -lgsl -lgslcblas -pg
# openblas gives a small speedup ... can also run in parallel but that doesn't help
# unless using a really fine discretization.
LDFLAGS=-lgsl -L/home/robertbe/lib -lgsl -lopenblas -lpthread -lgfortran -pg
OPT=-O3
all: $(TARGETS)
diff_model.o: diff_model.cc diff_model.h
$(CXX) $(OPT) -c diff_model.cc $(CFLAGS)
brumbrella: brumbrella.cc
$(CXX) $(OPT) -o brumbrella brumbrella.cc $(CFLAGS) $(LDFLAGS)
diffit: diffit.cc diff_model.o
$(CXX) $(OPT) -o diffit diffit.cc diff_model.o $(CFLAGS) $(LDFLAGS)
propagators: propagators.cc diff_model.o
$(CXX) $(OPT) -o propagators propagators.cc diff_model.o $(CFLAGS) $(LDFLAGS)
thist: thist.cc
$(CXX) $(OPT) -o thist thist.cc
1d_diff: 1d_diff.cc ap.o spline3.o
$(CXX) $(OPT) -o 1d_diff 1d_diff.cc ap.o spline3.o $(CFLAGS) $(LDFLAGS)
install: all
cp $(TARGETS) $(HOME)/bin
clean:
-rm $(TARGETS)
distclean: clean
-rm *.o