tMakefile - slidergrid - grid of elastic sliders on a frictional surface | |
git clone git://src.adamsgaard.dk/slidergrid | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
tMakefile (689B) | |
--- | |
1 CC=gcc | |
2 #CFLAGS=-Wall -O3 -march=native | |
3 CFLAGS=-Wall -g -pg | |
4 LDLIBS=-lm | |
5 SRCFOLDER=slidergrid | |
6 ESSENTIALOBJS=$(SRCFOLDER)/main.o \ | |
7 $(SRCFOLDER)/slider.o \ | |
8 $(SRCFOLDER)/grid.o \ | |
9 $(SRCFOLDER)/vector_math.o \ | |
10 $(SRCFOLDER)/simulation.o | |
11 BIN=example | |
12 | |
13 default: example tests | |
14 | |
15 run-example: $(BIN) | |
16 ./$(BIN) | |
17 ./postprocessing.py --plot-kinetic-energy $(BIN)-output | |
18 @#./postprocessing.py --plot-sliders $(BIN)-output | |
19 | |
20 example: example.o $(ESSENTIALOBJS) | |
21 $(CC) $(LDLIBS) $^ -o $@ | |
22 | |
23 test: | |
24 make -C tests/ | |
25 | |
26 doc/doc.pdf: | |
27 make -C doc/ | |
28 | |
29 debug: $(BIN) | |
30 @gdb $< | |
31 | |
32 clean: | |
33 @$(RM) $(BIN) | |
34 @$(RM) -r $(BIN)-output | |
35 @$(RM) *.o | |
36 @$(RM) $(SRCFOLDER)/*.o | |
37 @make -C tests clean | |
38 @make -C doc clean |