summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-28 11:45:21 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-07 11:17:50 (GMT)
commiteca0a80a7abb136094f252872499c59803999f85 (patch)
treed81af1e61d3b05567acc05199425829fc33320c8 /Makefile
parent0b55e5cf189e61d1dafbc011ee853d74509604d8 (diff)
downloadstroke-eca0a80a7abb136094f252872499c59803999f85.zip
stroke-eca0a80a7abb136094f252872499c59803999f85.tar.bz2
Using JZlib for compression, as features we need aren't in Java until 1.7
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..85de348
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+all: dist/lib/stroke.jar
+
+.PHONY : clean
+clean:
+ ant clean
+
+.PHONY : distclean
+distclean: clean
+ ant distclean
+ rm -rf third-party
+
+.PHONY : dist/lib/stroke.jar
+dist/lib/stroke.jar: third-party/xpp/xpp.jar third-party/jzlib/jzlib.jar
+ ant -Dxpp-dir=third-party/xpp -Djzlib-dir=third-party/jzlib
+
+third-party/xpp/xpp.jar: third-party
+ mkdir -p third-party/xpp
+ curl http://www.extreme.indiana.edu/dist/java-repository/xpp3/jars/xpp3-1.1.4c.jar -o third-party/xpp/xpp.jar
+
+third-party/jzlib/jzlib.jar: third-party
+ curl http://www.jcraft.com/jzlib/jzlib-1.0.7.tar.gz -o third-party/jzlib-1.0.7.tar.gz
+ tar -xvzf third-party/jzlib-1.0.7.tar.gz -C third-party/
+ mv third-party/jzlib-1.0.7 third-party/jzlib
+ cp build-jzlib.xml third-party/jzlib/build.xml
+ ant -f third-party/jzlib/build.xml
+
+third-party:
+ mkdir -p third-party \ No newline at end of file