OOO and RCR are speparate targets in the master makefile, added runp scripts for...
[IRC.git] / Robust / src / Benchmarks / oooJava / micro-master-makefile
1 ##########################################################################
2 #
3 #  This master makefile should be included in each local makefile of a
4 #  MICRO benchmark directory.  Note that joptimize is disabled so
5 #  nonsensical code patterns will still generate the micro structure
6 #  desired.
7 #
8 ##########################################################################
9
10 PROGRAM=test
11 SOURCE_FILES=test.java
12
13
14 BUILDSCRIPT=../../../buildscript
15
16
17 COREPROFOVERFLOW= -coreprof-checkoverflow
18 USECOREPROF= -coreprof $(COREPROFOVERFLOW) \
19         -coreprof-eventwords 1024*1024*512 \
20         -coreprof-enable cpe_main \
21         -coreprof-enable cpe_runmalloc \
22         -coreprof-enable cpe_taskexecute \
23         -coreprof-enable cpe_taskdispatch \
24         -coreprof-enable cpe_poolalloc \
25         -coreprof-enable cpe_taskretire \
26         -coreprof-enable cpe_workschedgrab
27 #       -coreprof-enable cpe_preparememq
28 #       -coreprof-enable cpe_runfree \
29 #       -coreprof-enable cpe_count_poolalloc \
30 #       -coreprof-enable cpe_count_poolreuse \
31 #       -coreprof-enable cpe_taskstallvar \
32 #       -coreprof-enable cpe_taskstallmem
33
34
35 USEOOO= -ooojava 24 2 #-ooodebug-disable-task-mem-pool #-ooodebug 
36 BSFLAGS= -64bit -mainclass $(PROGRAM)  -heapsize-mb 2000 -garbagestats -joptimize -noloop -debug #-debug-deque #-optimize src-after-pp
37
38 DRELEASEMODE=-disjoint-release-mode -disjoint-dvisit-stack-callees-on-top -disjoint-alias-file aliases.txt tabbed
39 DISJOINT= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE) #-disjoint-desire-determinism
40
41 default:
42         $(BUILDSCRIPT) -nojava $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES)
43
44 single:
45         $(BUILDSCRIPT) -thread $(BSFLAGS) $(USECOREPROF)                       -o $(PROGRAM)s -builddir sing $(SOURCE_FILES) 
46
47 ooo:
48         $(BUILDSCRIPT)         $(BSFLAGS) $(USECOREPROF) $(USEOOO) $(DISJOINT) -o $(PROGRAM)p -builddir par  $(SOURCE_FILES) 
49
50 clean:
51         rm -f  $(PROGRAM)p.bin $(PROGRAM)s.bin
52         rm -fr par sing
53         rm -f tmp.c
54         rm -f  *~
55         rm -f  *.dot
56         rm -f  *.png
57         rm -f  *.txt
58         rm -f  aliases.txt
59         rm -f  mlpReport*txt
60         rm -f  results*txt
61         rm -f coreprof.dat
62         rm -f trace.out