minor: missed name change
[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 ast: edu.berkeley.sbp.jar
25         $(java) -cp $< edu.berkeley.sbp.misc.TestAstGenerator tests/math.g
26
27 regress:
28         make boot
29         rm edu.berkeley.sbp.jar
30         make test
31
32 #-Dsbp.verbose=true
33 test: edu.berkeley.sbp.jar
34         $(java) -cp $< edu.berkeley.sbp.misc.RegressionTests \
35                 src/edu/berkeley/sbp/meta/meta.g \
36                 tests/testcase.g \
37                 tests/regression.tc
38
39 profile: edu.berkeley.sbp.jar
40         $(java) -agentpath:/Applications/YourKit.app/bin/mac/libyjpagent.jnilib -cp $< edu.berkeley.sbp.misc.RegressionTests \
41                 -profile \
42                 src/edu/berkeley/sbp/meta/meta.g \
43                 tests/testcase.g \
44                 tests/regression.tc
45
46 boot: edu.berkeley.sbp.jar
47         cd src; \
48         $(java) -cp ../$< \
49                 edu.berkeley.sbp.meta.MetaGrammar \
50                 ../src/edu/berkeley/sbp/meta/meta.g \
51                 edu.berkeley.sbp.meta.MetaGrammar
52
53 edu.berkeley.sbp.jar: $(shell find src -name \*.java)
54         mkdir -p bin
55         javac  -cp javax.servlet.jar -d bin -sourcepath src $^
56         echo 'Main-Class: edu.berkeley.sbp.misc.CommandLine' > bin/manifest
57         cd bin; jar cmf manifest ../$@ .
58 #-Xlint:unchecked
59 javadoc:
60         rm -rf doc/api
61         mkdir -p doc/api
62         javadoc \
63                 -linksource \
64                 -windowtitle "SBP: the Scannerless Boolean Parser" \
65                 -sourcepath src \
66                 -header "<b>SBP </b><br>v1.0" \
67                 -public \
68                 -notree \
69                 -noindex \
70                 -nonavbar \
71                 -stylesheetfile doc/javadoc.css \
72                 -noqualifier all \
73                 -d doc/api \
74                 edu.berkeley.sbp
75         javadoc \
76                 -linksource \
77                 -windowtitle "SBP: the Scannerless Boolean Parser" \
78                 -sourcepath src \
79                 -header "<b>SBP </b><br>v1.0" \
80                 -public \
81                 -notree \
82                 -noindex \
83                 -nonavbar \
84                 -noqualifier all \
85                 -d doc/api \
86                 edu.berkeley.sbp.meta \
87                 edu.berkeley.sbp.chr \
88                 edu.berkeley.sbp.misc \
89                 edu.berkeley.sbp.util
90
91 clean:
92         rm -rf doc/api edu.berkeley.sbp.jar bin edu.berkeley.sbp.tar.gz
93         rm -rf Makefile.bak *.hi *.o *.class *.jar Header_*.hs Class_*.hs *_JVM.hs InterfaceMyClass
94