# HG changeset patch # User xitiomet # Date 1259794474 18000 # Node ID a6a387395e58fc5fab19714c774af7975bdb1a1f # Parent 720589c5f9c930816deb54cd1945838aa2a7d557 implemented building for jvm diff -r 720589c5f9c930816deb54cd1945838aa2a7d557 -r a6a387395e58fc5fab19714c774af7975bdb1a1f Makefile --- a/Makefile Wed Sep 16 16:29:02 2009 -0400 +++ b/Makefile Wed Dec 02 17:54:34 2009 -0500 @@ -5,6 +5,12 @@ JC_FLAGS=-d build all: json-gcj.jar +jvm: json.jar + +json.jar: + mkdir jvm-build + javac -cp jvm-build:src -d jvm-build src/org/json/*.java + $(JAR) -cvf $@ -C jvm-build org json-gcj.jar: build/org/json/JSONArray.class build/org/json/JSONException.class build/org/json/JSONObject.class build/org/json/JSONString.class build/org/json/JSONStringer.class build/org/json/JSONTokener.class build/org/json/JSONWriter.class $(JAR) -cvf $@ -C build org @@ -32,4 +38,6 @@ clean: rm -R -f build/ - rm json-gcj.jar + rm -R -f jvm-build/ + rm -f json-gcj.jar + rm -f json.jar