add a commented-out line to RegressionTests.java
[sbp.git] / Makefile
1
2 java = java -Xmx900m
3
4 default: edu.berkeley.sbp.jar
5
6 tibdoc: edu.berkeley.sbp.jar
7         $(java) -cp $< edu.berkeley.sbp.tib.TibDoc \
8                 tests/tibdoc.g \
9                 tests/bitstream.tib
10
11 java15: edu.berkeley.sbp.jar
12         $(java) -cp $< edu.berkeley.sbp.misc.Java15 \
13                 tests/java15.g \
14                 tests/java15.test
15
16 demo: edu.berkeley.sbp.jar
17         $(java) -cp $< edu.berkeley.sbp.misc.Demo \
18                 tests/demo.g \
19                 '(11+2*3)-44'
20
21 demo2: edu.berkeley.sbp.jar
22         $(java) -cp $< edu.berkeley.sbp.misc.Demo2
23
24 regress:
25         make boot
26         rm edu.berkeley.sbp.jar
27         make test
28
29 #-Dsbp.verbose=true
30 test: edu.berkeley.sbp.jar
31         $(java) -cp $< edu.berkeley.sbp.misc.RegressionTests \
32                 src/edu/berkeley/sbp/meta/meta.g \
33                 tests/testcase.g \
34                 tests/regression.tc
35
36 profile: edu.berkeley.sbp.jar
37         $(java) -agentpath:/Applications/YourKit.app/bin/mac/libyjpagent.jnilib -cp $< edu.berkeley.sbp.misc.RegressionTests \
38                 -profile \
39                 src/edu/berkeley/sbp/meta/meta.g \
40                 tests/testcase.g \
41                 tests/regression.tc
42
43 boot: edu.berkeley.sbp.jar
44         cd src; \
45         $(java) -cp ../$< \
46                 edu.berkeley.sbp.meta.MetaGrammar \
47                 ../src/edu/berkeley/sbp/meta/meta.g \
48                 edu.berkeley.sbp.meta.MetaGrammar
49
50 edu.berkeley.sbp.jar: $(shell find src -name \*.java)
51         mkdir -p bin
52         javac  -cp javax.servlet.jar -d bin -sourcepath src $^
53         echo 'Main-Class: edu.berkeley.sbp.misc.CommandLine' > bin/manifest
54         cd bin; jar cmf manifest ../$@ .
55 #-Xlint:unchecked
56 javadoc:
57         rm -rf doc/api
58         mkdir -p doc/api
59         javadoc \
60                 -linksource \
61                 -windowtitle "SBP: the Scannerless Boolean Parser" \
62                 -sourcepath src \
63                 -header "<b>SBP </b><br>v1.0" \
64                 -public \
65                 -notree \
66                 -noindex \
67                 -nonavbar \
68                 -stylesheetfile doc/javadoc.css \
69                 -noqualifier all \
70                 -d doc/api \
71                 edu.berkeley.sbp
72         javadoc \
73                 -linksource \
74                 -windowtitle "SBP: the Scannerless Boolean Parser" \
75                 -sourcepath src \
76                 -header "<b>SBP </b><br>v1.0" \
77                 -public \
78                 -notree \
79                 -noindex \
80                 -nonavbar \
81                 -noqualifier all \
82                 -d doc/api \
83                 edu.berkeley.sbp.meta \
84                 edu.berkeley.sbp.chr \
85                 edu.berkeley.sbp.misc \
86                 edu.berkeley.sbp.util
87
88 clean:
89         rm -rf doc/api edu.berkeley.sbp.jar bin edu.berkeley.sbp.tar.gz
90         rm -rf Makefile.bak *.hi *.o *.class *.jar Header_*.hs Class_*.hs *_JVM.hs InterfaceMyClass
91