summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/Recipe
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/Recipe')
-rw-r--r--apps/plugins/puzzles/src/Recipe21
1 files changed, 11 insertions, 10 deletions
diff --git a/apps/plugins/puzzles/src/Recipe b/apps/plugins/puzzles/src/Recipe
index fc9bc1b51d..f94b1f9041 100644
--- a/apps/plugins/puzzles/src/Recipe
+++ b/apps/plugins/puzzles/src/Recipe
@@ -122,12 +122,12 @@ install:
122 done 122 done
123!end 123!end
124!begin nestedvm 124!begin nestedvm
125.PRECIOUS: %.class 125%.tmpdir/PuzzleEngine.class: %.mips
126%.class: %.mips 126 mkdir -p $(patsubst %.mips,%,$<).tmpdir
127 java -cp $(NESTEDVM)/build:$(NESTEDVM)/upstream/build/classgen/build \ 127 cd $(patsubst %.mips,%,$<).tmpdir && \
128 java -cp $(NESTEDVM)/build:$(NESTEDVM)/upstream/build/classgen/build \
128 org.ibex.nestedvm.Compiler -outformat class -d . \ 129 org.ibex.nestedvm.Compiler -outformat class -d . \
129 PuzzleEngine $< 130 PuzzleEngine ../$<
130 mv PuzzleEngine.class $@
131 131
132org: 132org:
133 mkdir -p org/ibex/nestedvm/util 133 mkdir -p org/ibex/nestedvm/util
@@ -136,16 +136,17 @@ org:
136 cp $(NESTEDVM)/build/org/ibex/nestedvm/Runtime*.class org/ibex/nestedvm 136 cp $(NESTEDVM)/build/org/ibex/nestedvm/Runtime*.class org/ibex/nestedvm
137 cp $(NESTEDVM)/build/org/ibex/nestedvm/util/Platform*.class org/ibex/nestedvm/util 137 cp $(NESTEDVM)/build/org/ibex/nestedvm/util/Platform*.class org/ibex/nestedvm/util
138 cp $(NESTEDVM)/build/org/ibex/nestedvm/util/Seekable*.class org/ibex/nestedvm/util 138 cp $(NESTEDVM)/build/org/ibex/nestedvm/util/Seekable*.class org/ibex/nestedvm/util
139
140applet.manifest:
139 echo "Main-Class: PuzzleApplet" >applet.manifest 141 echo "Main-Class: PuzzleApplet" >applet.manifest
140 142
141PuzzleApplet.class: PuzzleApplet.java org 143PuzzleApplet.class: PuzzleApplet.java org
142 javac -source 1.3 -target 1.3 PuzzleApplet.java 144 javac -source 1.7 -target 1.7 PuzzleApplet.java
143 145
144%.jar: %.class PuzzleApplet.class org 146%.jar: %.tmpdir/PuzzleEngine.class PuzzleApplet.class applet.manifest org
145 mv $< PuzzleEngine.class 147 cd $(patsubst %.jar,%,$@).tmpdir && ln -s ../applet.manifest ../org ../PuzzleApplet*.class .
146 jar cfm $@ applet.manifest PuzzleEngine.class PuzzleApplet*.class org 148 cd $(patsubst %.jar,%,$@).tmpdir && jar cfm ../$@ applet.manifest PuzzleEngine.class PuzzleApplet*.class org
147 echo '<applet archive="'$@'" code="PuzzleApplet" width="700" height="500"></applet>' >$*.html 149 echo '<applet archive="'$@'" code="PuzzleApplet" width="700" height="500"></applet>' >$*.html
148 mv PuzzleEngine.class $<
149!end 150!end
150 151
151# A benchmarking and testing target for the GTK puzzles. 152# A benchmarking and testing target for the GTK puzzles.