xitiomet / org.json

A fork of org.json, includes makefile for building with gcj Currently the version at json.org compiles under gcj with 88 warnings. This fork is meant to be re-factored for optimal gcj performance. Also I will be adding a few new features. This fork will be compatible with all the documentation at http://www.json.org/java/index.html

Clone this repository (size: 54.1 KB): HTTPS / SSH
$ hg clone http://hg.openstatic.org/orgjson
commit 2: 70bda0e79242
parent 1: a6a387395e58
branch: default
tags: tip
updated makefile
xitiomet
8 months ago

Changed (Δ41 bytes):

raw changeset »

Makefile (4 lines added, 6 lines removed)

Up to file-list Makefile:

@@ -4,15 +4,14 @@ CLASS_PATH=build:src
4
4
JAR=jar
5
5
JC_FLAGS=-d build
6
6
7
all: json-gcj.jar
8
jvm: json.jar
7
all: json.jar
9
8
10
json.jar:
9
jvm:
11
10
	mkdir jvm-build
12
11
	javac -cp jvm-build:src -d jvm-build src/org/json/*.java
13
	$(JAR) -cvf $@ -C jvm-build org
12
	$(JAR) -cvf json.jar -C jvm-build org
14
13
15
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
14
json.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
16
15
	$(JAR) -cvf $@ -C build org
17
16
18
17
build/org/json/JSONArray.class: src/org/json/JSONArray.java build/org/json/JSONObject.class
@@ -39,5 +38,4 @@ build/org/json/JSONWriter.class: src/org
39
38
clean:
40
39
	rm -R -f build/
41
40
	rm -R -f jvm-build/
42
	rm -f json-gcj.jar
43
41
	rm -f json.jar