xitiomet is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againorg.json / Makefile
- commit
- 70bda0e79242
- parent
- a6a387395e58
- branch
- default
updated makefile
1 |
720589c5f9c9
|
# Configuration Options |
2 |
720589c5f9c9
|
JC=gcj |
3 |
720589c5f9c9
|
CLASS_PATH=build:src |
4 |
720589c5f9c9
|
JAR=jar |
5 |
720589c5f9c9
|
JC_FLAGS=-d build |
6 |
720589c5f9c9
|
|
7 |
70bda0e79242
|
all: json.jar |
8 |
a6a387395e58
|
|
9 |
70bda0e79242
|
jvm: |
10 |
a6a387395e58
|
mkdir jvm-build |
11 |
a6a387395e58
|
javac -cp jvm-build:src -d jvm-build src/org/json/*.java |
12 |
70bda0e79242
|
$(JAR) -cvf json.jar -C jvm-build org |
13 |
720589c5f9c9
|
|
14 |
70bda0e79242
|
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 |
15 |
720589c5f9c9
|
$(JAR) -cvf $@ -C build org |
16 |
720589c5f9c9
|
|
17 |
720589c5f9c9
|
build/org/json/JSONArray.class: src/org/json/JSONArray.java build/org/json/JSONObject.class |
18 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
19 |
720589c5f9c9
|
|
20 |
720589c5f9c9
|
build/org/json/JSONException.class: src/org/json/JSONException.java |
21 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
22 |
720589c5f9c9
|
|
23 |
720589c5f9c9
|
build/org/json/JSONObject.class: src/org/json/JSONObject.java build/org/json/JSONException.class build/org/json/JSONTokener.class build/org/json/JSONString.class |
24 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
25 |
720589c5f9c9
|
|
26 |
720589c5f9c9
|
build/org/json/JSONString.class: src/org/json/JSONString.java |
27 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
28 |
720589c5f9c9
|
|
29 |
720589c5f9c9
|
build/org/json/JSONStringer.class: src/org/json/JSONStringer.java |
30 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
31 |
720589c5f9c9
|
|
32 |
720589c5f9c9
|
build/org/json/JSONTokener.class: src/org/json/JSONTokener.java build/org/json/JSONException.class |
33 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
34 |
720589c5f9c9
|
|
35 |
720589c5f9c9
|
build/org/json/JSONWriter.class: src/org/json/JSONWriter.java build/org/json/JSONObject.class |
36 |
720589c5f9c9
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
37 |
720589c5f9c9
|
|
38 |
720589c5f9c9
|
clean: |
39 |
720589c5f9c9
|
rm -R -f build/ |
40 |
a6a387395e58
|
rm -R -f jvm-build/ |
41 |
a6a387395e58
|
rm -f json.jar |