experimenting with directto benchmark
[IRC.git] / Robust / src / Benchmarks / mlp / directto / mlp-small-for-testing / makefile
1 MAIN_CLASS=D2
2
3 PROGRAM=test
4 SOURCE_FILES=D2.java
5
6 BUILDSCRIPT=~/research/Robust/src/buildscript
7 BSFLAGS= -debug -mainclass $(MAIN_CLASS) -joptimize -flatirusermethods #-flatirlibmethods
8
9 ##########################################################
10 ## For inspecting a particularly problematic call chain
11 ##########################################################
12 DBCALLFLAGS= -owndebugcaller main -owndebugcallee executeAll 
13 #DBCALLFLAGS= -owndebugcaller executeAll -owndebugcallee executeMessage -owndebugcallcount 0
14 #DBCALLFLAGS= -owndebugcaller executeMessage -owndebugcallee amendFlightPlan -owndebugcallcount 0
15 #DBCALLFLAGS= -owndebugcaller amendFlightPlan -owndebugcallee setRoute -owndebugcallcount 0
16
17
18 #DBCALLFLAGS= -owndebugcaller amendFlightPlan -owndebugcallee addFix -owndebugcallcount 0
19 #DBCALLFLAGS= -owndebugcaller addFix -owndebugcallee addFix -owndebugcallcount 0
20 #DBCALLFLAGS= -owndebugcaller addFix -owndebugcallee insertElementAt -owndebugcallcount 0
21 #DBCALLFLAGS= -owndebugcaller insertElementAt -owndebugcallee ensureCapacity -owndebugcallcount 0
22
23
24 #DBCALLFLAGS= -owndebugcaller executeMessage -owndebugcallee getFlightList -owndebugcallcount 0
25 #DBCALLFLAGS= -owndebugcaller amendFlightPlan -owndebugcallee getFlight -owndebugcallcount 0
26 #DBCALLFLAGS= -owndebugcaller executeAll -owndebugcallee next -owndebugcallcount 0
27 #DBCALLFLAGS= -owndebugcaller executeAll -owndebugcallee hasNext -owndebugcallcount 0
28 #DBCALLFLAGS= -owndebugcaller executeAll -owndebugcallee size -owndebugcallcount 0
29
30
31 ANALYZEFLAGS= -justanalyze $(DBCALLFLAGS) -ownership -ownallocdepth 1 -ownwritedots final -ownaliasfile aliases.txt -enable-assertions
32
33 all: $(PROGRAM)
34
35 view: PNGs
36         eog *.png &
37
38 PNGs: DOTs
39         d2p *COMPLETE*.dot
40
41 DOTs: $(PROGRAM).bin
42
43 $(PROGRAM): $(SOURCE_FILES)
44         $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM) $(SOURCE_FILES)
45
46 analyze: $(SOURCE_FILES)
47         $(BUILDSCRIPT) $(BSFLAGS) $(ANALYZEFLAGS) -o $(PROGRAM) $(SOURCE_FILES)
48  
49 clean:
50         rm -f  $(PROGRAM).bin
51         rm -fr tmpbuilddirectory
52         rm -f  *~
53         rm -f  *.dot
54         rm -f  *.png
55         rm -f  aliases.txt
56         rm -f  output.txt
57