-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (47 loc) · 1.97 KB
/
Copy pathMakefile
File metadata and controls
67 lines (47 loc) · 1.97 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
include ./config.mk
lflags=`gsl-config --libs`
iflags=`gsl-config --cflags` -I./shared -I./voro++_2d
objs=sim_flat_fold.o facet.o
#objs=parab_func.o bi_interp.o bi_image.o facet.o sim_flatfold.o
src=$(patsubst %.o,%.cc,$(objs))
#execs=gsl_min_example matio_example im_test bic_test ls_test \
radon_test imaging_model flatfold_test flatfold_gen \
flatfold_scale flatfold_sc_comb im_extract
execs=flatfold_test flatfold_gen
all:
$(MAKE) -C ./shared
$(MAKE) -C ./voro++_2d
$(MAKE) executables
executables: $(execs)
include Makefile.dep
depend:
$(cxx) $(cflags) $(iflags) -MM $(src) >Makefile.dep
clean:
rm -rf $(objs) $(execs)
%.o: %.cc
$(cxx) $(cflags) $(iflags) -c $<
#im_test: im_test.cc bi_interp.o bi_image.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -lmatio
#im_extract: im_extract.cc bi_interp.o bi_image.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -lmatio
#ls_test: ls_test.cc bi_interp.o bi_image.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -lmatio
#radon_test: radon_test.cc bi_interp.o bi_image.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -lmatio
flatfold_test: flatfold_test.cc sim_flatfold.o facet.o
$(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -L./shared -lmatvec -L./voro++_2d -lvoro++_2d
flatfold_gen: flatfold_gen.cc sim_flatfold.o facet.o
$(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -L./shared -lmatvec -L./voro++_2d -lvoro++_2d
#flatfold_scale: flatfold_scale.cc sim_flatfold.o facet.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -L./shared -lmatvec -L./voro++_2d -lvoro++_2d
flatfold_sc_comb: flatfold_sc_comb.cc
$(cxx) $(cflags) $(iflags) -o $@ $^
#bic_test: bic_test.cc bi_interp.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags)
#gsl_min_example: gsl_min_example.cc parab_func.o
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags)
#imaging_model: imaging_model.cc
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags)
#matio_example: matio_example.cc
# $(cxx) $(cflags) $(iflags) -o $@ $^ $(lflags) -lmatio
.PHONY: clean depend executables