tMakefile - slidergrid - grid of elastic sliders on a frictional surface | |
git clone git://src.adamsgaard.dk/slidergrid | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
tMakefile (1168B) | |
--- | |
1 CC=gcc | |
2 #CFLAGS=-Wall -O3 -march=native | |
3 CFLAGS=-Wall -g -pg | |
4 LDLIBS=-lm | |
5 ROOT=../../ | |
6 SRCFOLDER=$(ROOT)/slidergrid | |
7 ESSENTIALOBJS=$(SRCFOLDER)/main.o \ | |
8 $(SRCFOLDER)/slider.o \ | |
9 $(SRCFOLDER)/grid.o \ | |
10 $(SRCFOLDER)/vector_math.o \ | |
11 $(SRCFOLDER)/simulation.o | |
12 BINS=normal shear twist | |
13 | |
14 default: normal-output/normal.E_kin.pdf shear-output/shear.E_kin.pdf | |
15 | |
16 normal-output/normal.E_kin.pdf: normal | |
17 ./$< --verbose | |
18 python $(ROOT)postprocessing.py --plot-kinetic-energy $<-output | |
19 @#python $(ROOT)postprocessing.py --plot-sliders $<-output | |
20 | |
21 shear-output/shear.E_kin.pdf: shear | |
22 ./$< --verbose | |
23 python $(ROOT)postprocessing.py --plot-kinetic-energy $<-output | |
24 @#python $(ROOT)postprocessing.py --plot-sliders $<-output | |
25 | |
26 twist-output/twist.E_kin.pdf: twist | |
27 ./$< --verbose | |
28 python $(ROOT)postprocessing.py --plot-kinetic-energy $<-output | |
29 @#python $(ROOT)postprocessing.py --plot-sliders $<-output | |
30 | |
31 normal: normal.o $(ESSENTIALOBJS) | |
32 $(CC) $(LDLIBS) $^ -o $@ | |
33 | |
34 shear: shear.o $(ESSENTIALOBJS) | |
35 $(CC) $(LDLIBS) $^ -o $@ | |
36 | |
37 twist: twist.o $(ESSENTIALOBJS) | |
38 $(CC) $(LDLIBS) $^ -o $@ | |
39 | |
40 clean: | |
41 @$(RM) $(BINS) | |
42 @$(RM) -r *-output | |
43 @$(RM) *.o | |
44 | |
45 clean-root: | |
46 make clean -C ../.. |