buildscript options to enable exaclty which coreprof events are needed, keeps instrum...
[IRC.git] / Robust / src / Tests / oooJava / poolalloc / makefile
1 PROGRAM=Test
2
3 SOURCE_FILES=test.java
4
5 BUILDSCRIPT=../../../buildscript
6
7 COREPROFOVERFLOW= -coreprof-checkoverflow
8 USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
9         -coreprof-eventwords 1024*1024*128 \
10         -coreprof-enable cpe_main \
11         -coreprof-enable cpe_runmalloc \
12         -coreprof-enable cpe_runfree \
13         -coreprof-enable cpe_count_poolalloc \
14         -coreprof-enable cpe_count_poolreuse \
15         -coreprof-enable cpe_workschedgrab \
16         -coreprof-enable cpe_taskdispatch \
17         -coreprof-enable cpe_taskexecute \
18         -coreprof-enable cpe_taskretire
19 #       -coreprof-enable cpe_taskstallvar \
20 #       -coreprof-enable cpe_taskstallmem
21
22
23 DISJOINT= -disjoint -disjoint-k 1 -enable-assertions #-disjoint-desire-determinism
24
25 USEOOO= $(DISJOINT) -ooojava 24 2 -ooodebug $(USECOREPROF)
26
27 BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 1024 -garbagestats -noloop -nooptimize -debug #-ooodebug-disable-task-mem-pool
28
29
30 all: ooo
31
32 remakec:
33         $(BUILDSCRIPT) -nojava $(USEOOO) $(BSFLAGS) -o $(PROGRAM)p $(SOURCE_FILES) -builddir par
34
35 single:
36         $(BUILDSCRIPT) $(BSFLAGS) -thread -o $(PROGRAM)s -builddir sing $(SOURCE_FILES) 
37
38 ooo:
39         $(BUILDSCRIPT) $(USEOOO) $(BSFLAGS) -o $(PROGRAM)p -builddir par $(SOURCE_FILES) 
40
41 clean:
42         rm -f  $(PROGRAM)p.bin $(PROGRAM)s.bin
43         rm -fr par sing
44         rm -f  *~
45         rm -f  *.dot
46         rm -f  *.png
47         rm -f  *.txt
48         rm -f  aliases.txt
49         rm -f  mlpReport*txt
50         rm -f  results*txt
51         rm -f  coreprof.dat