Debian Codegraph @

unit/Makefile

raw symbols SCIP
1 PARAM=-ne -fglut out -v 1000000
2
3 FF=../src/nw/FreeFem++
4 SRC=$(wildcard base/*.edp)
5
6 FFmpi=../src/mpi/ff-mpirun -np 4
7 SRCmpi=$(wildcard parallel/*.edp)
8
9 SRCplugins=$(wildcard plugins/*.edp)
10
11 .PHONY: all base parallel plugins
12
13 all: freefem++.pref base parallel plugins
14
15 freefem++.pref:
16 echo loadpath += "../plugin/seq" > freefem++.pref
17 echo loadpath += "../plugin/mpi" >> freefem++.pref
18 echo includepath += "../idp" >> freefem++.pref
19
20 base:
21 (for test in $(SRC); do \
22 echo $$test; \
23 $(FF) $$test $(PARAM) > $$test.log; \
24 if [ "$$?" -eq "0" ]; then \
25 echo -e "Success"; \
26 else \
27 echo -e "\tFail"; \
28 fi \
29 done)
30
31 parallel:
32 (for test in $(SRCmpi); do \
33 echo $$test; \
34 $(FFmpi) $$test $(PARAM) > $$test.log; \
35 if [ "$$?" -eq "0" ]; then \
36 echo -e "Success"; \
37 else \
38 echo -e "\tFail"; \
39 fi \
40 done)
41
42 plugins:
43 (for test in $(SRCplugins); do \
44 echo $$test; \
45 $(FF) $$test $(PARAM) > $$test.log; \
46 if [ "$$?" -eq "0" ]; then \
47 echo -e "Success"; \
48 else \
49 echo -e "\tFail"; \
50 fi \
51 done)
52
53 clean:
54 rm -f base/*.log
55 rm -f parallel/*.log
56 rm -f plugins/*.log