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 againplacebohttp / Makefile
- commit
- 24bcde817c29
- parent
- 9e6ab8ab1d73
- branch
- default
merges
1 |
71c2b596737f
|
# Makefile for Openstatic.org Placebo HTTP Server |
2 |
71c2b596737f
|
# Please note: I Chose make over ant because of gcj |
3 |
71c2b596737f
|
|
4 |
71c2b596737f
|
# Configuration Options |
5 |
71c2b596737f
|
JC=gcj |
6 |
71c2b596737f
|
JAVAC=javac |
7 |
71c2b596737f
|
CLASS_PATH=build:src |
8 |
71c2b596737f
|
JAR=jar |
9 |
71c2b596737f
|
JC_FLAGS=-d build |
10 |
71c2b596737f
|
|
11 |
71c2b596737f
|
# Where to begin.... |
12 |
71c2b596737f
|
all: placebohttp |
13 |
71c2b596737f
|
|
14 |
9e22d72dc679
|
production: |
15 |
9e22d72dc679
|
rsync -avz --exclude '.hg' . xitiomet@nebulous.it:/opt/placebohttp/ |
16 |
9e22d72dc679
|
|
17 |
894aeb1d6a9d
|
# Mac |
18 |
894aeb1d6a9d
|
osx: jvm |
19 |
894aeb1d6a9d
|
cp -R res/osx_app/PlaceboHTTP/ ./PlaceboHTTP.app/ |
20 |
894aeb1d6a9d
|
mkdir PlaceboHTTP.app/Contents/Resources/placebo/ |
21 |
894aeb1d6a9d
|
cp res/osx_app/core.sh PlaceboHTTP.app/Contents/Resources/placebo/ |
22 |
894aeb1d6a9d
|
cp placebohttp.jar PlaceboHTTP.app/Contents/Resources/placebo/ |
23 |
855ea2f5bd90
|
|
24 |
855ea2f5bd90
|
# Generate Documentation |
25 |
138f56cde331
|
docs: |
26 |
35102491120d
|
javadoc -d doc -sourcepath src org.openstatic.placebo org.openstatic.http org.openstatic.util |
27 |
894aeb1d6a9d
|
|
28 |
71c2b596737f
|
# Alternate build using the java vm |
29 |
71c2b596737f
|
jvm: |
30 |
71c2b596737f
|
mkdir jvm-build |
31 |
9e22d72dc679
|
$(JAVAC) src/*.java src/org/json/*.java src/org/openstatic/http/*.java src/org/openstatic/util/*.java src/org/openstatic/placebo/*.java src/org/openstatic/smtp/*.java src/org/openstatic/data/*.java src/org/openstatic/placebo/plugins/*.java -d jvm-build |
32 |
894aeb1d6a9d
|
$(JAR) -cvmf res/manifest.mf placebohttp.jar -C jvm-build org -C jvm-build PlaceboBase.class www LICENSE |
33 |
71c2b596737f
|
|
34 |
71c2b596737f
|
# Executable Rule for GCJ |
35 |
71c2b596737f
|
# ------------------------------------------------------------------------------- |
36 |
71c2b596737f
|
|
37 |
71c2b596737f
|
placebohttp: placebohttp.jar |
38 |
71c2b596737f
|
$(JC) $^ -O2 -fuse-boehm-gc --classpath=placebohttp.jar --main=PlaceboBase -o $@ |
39 |
71c2b596737f
|
|
40 |
71c2b596737f
|
# Here are all the classes for the project |
41 |
71c2b596737f
|
# ------------------------------------------------------------------------------- |
42 |
71c2b596737f
|
|
43 |
71c2b596737f
|
build/PlaceboBase.class: src/PlaceboBase.java |
44 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
45 |
71c2b596737f
|
|
46 |
71c2b596737f
|
build/org/openstatic/http/PlaceboHttpServer.class: src/org/openstatic/http/PlaceboHttpServer.java |
47 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
48 |
71c2b596737f
|
|
49 |
71c2b596737f
|
build/org/openstatic/http/PlaceboSession.class: src/org/openstatic/http/PlaceboSession.java |
50 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
51 |
71c2b596737f
|
|
52 |
71c2b596737f
|
build/org/openstatic/http/HttpRequest.class: src/org/openstatic/http/HttpRequest.java |
53 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
54 |
71c2b596737f
|
|
55 |
71c2b596737f
|
build/org/openstatic/http/HttpResponse.class: src/org/openstatic/http/HttpResponse.java |
56 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
57 |
71c2b596737f
|
|
58 |
71c2b596737f
|
build/org/openstatic/http/HttpRequestThread.class: src/org/openstatic/http/HttpRequestThread.java |
59 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
60 |
71c2b596737f
|
|
61 |
71c2b596737f
|
build/org/openstatic/placebo/ControlPanel.class: src/org/openstatic/placebo/ControlPanel.java |
62 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
63 |
71c2b596737f
|
|
64 |
71c2b596737f
|
build/org/openstatic/placebo/PlaceboPlugin.class: src/org/openstatic/placebo/PlaceboPlugin.java |
65 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
66 |
71c2b596737f
|
|
67 |
71c2b596737f
|
build/org/openstatic/placebo/plugins/Clock.class: src/org/openstatic/placebo/plugins/Clock.java |
68 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
69 |
71c2b596737f
|
|
70 |
1bd2ec49adfd
|
build/org/openstatic/placebo/plugins/KeyStore.class: src/org/openstatic/placebo/plugins/KeyStore.java |
71 |
1bd2ec49adfd
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
72 |
1bd2ec49adfd
|
|
73 |
71c2b596737f
|
build/org/openstatic/placebo/CoreServer.class: src/org/openstatic/placebo/CoreServer.java |
74 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
75 |
71c2b596737f
|
|
76 |
71c2b596737f
|
build/org/openstatic/util/JTextAreaOutputStream.class: src/org/openstatic/util/JTextAreaOutputStream.java |
77 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
78 |
71c2b596737f
|
|
79 |
e167c089f5ac
|
build/org/openstatic/util/PlaceboLogger.class: src/org/openstatic/util/PlaceboLogger.java |
80 |
fb2f5e689d8d
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
81 |
fb2f5e689d8d
|
|
82 |
71c2b596737f
|
build/org/openstatic/util/JSONUtil.class: src/org/openstatic/util/JSONUtil.java build/org/json/JSONObject.class build/org/json/JSONArray.class |
83 |
71c2b596737f
|
$(JC) $(JC_FLAGS) --classpath=$(CLASS_PATH) -C $< |
84 |
71c2b596737f
|
|
85 |
71c2b596737f
|
# Org.JSON |
86 |
71c2b596737f
|
|
87 |
71c2b596737f
|
build/org/json/JSONArray.class: src/org/json/JSONArray.java build/org/json/JSONObject.class |
88 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
89 |
71c2b596737f
|
|
90 |
71c2b596737f
|
build/org/json/JSONException.class: src/org/json/JSONException.java |
91 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
92 |
71c2b596737f
|
|
93 |
71c2b596737f
|
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 |
94 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
95 |
71c2b596737f
|
|
96 |
71c2b596737f
|
build/org/json/JSONString.class: src/org/json/JSONString.java |
97 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
98 |
71c2b596737f
|
|
99 |
71c2b596737f
|
build/org/json/JSONStringer.class: src/org/json/JSONStringer.java |
100 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
101 |
71c2b596737f
|
|
102 |
71c2b596737f
|
build/org/json/JSONTokener.class: src/org/json/JSONTokener.java build/org/json/JSONException.class |
103 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
104 |
71c2b596737f
|
|
105 |
71c2b596737f
|
build/org/json/JSONWriter.class: src/org/json/JSONWriter.java build/org/json/JSONObject.class |
106 |
71c2b596737f
|
$(JC) $(JC_FLAGS) -w --classpath=$(CLASS_PATH) -C $< |
107 |
71c2b596737f
|
|
108 |
71c2b596737f
|
|
109 |
71c2b596737f
|
# Main Builds |
110 |
71c2b596737f
|
# ------------------------------------------------------------------------------- |
111 |
71c2b596737f
|
|
112 |
e167c089f5ac
|
placebohttp.jar: build/org/openstatic/http/PlaceboHttpServer.class build/org/openstatic/http/PlaceboSession.class build/org/openstatic/http/HttpRequest.class build/org/openstatic/http/HttpRequestThread.class build/org/openstatic/http/HttpResponse.class build/PlaceboBase.class build/org/openstatic/placebo/ControlPanel.class build/org/openstatic/placebo/CoreServer.class build/org/openstatic/util/JTextAreaOutputStream.class build/org/openstatic/util/JSONUtil.class build/org/openstatic/util/PlaceboLogger.class build/org/openstatic/placebo/PlaceboPlugin.class build/org/openstatic/placebo/plugins/Clock.class build/org/openstatic/placebo/plugins/KeyStore.class |
113 |
894aeb1d6a9d
|
$(JAR) -cvmf res/manifest.mf $@ -C build org -C build PlaceboBase.class www LICENSE |
114 |
71c2b596737f
|
|
115 |
71c2b596737f
|
clean: |
116 |
71c2b596737f
|
rm -fR jvm-build |
117 |
71c2b596737f
|
rm -fR build |
118 |
35102491120d
|
rm -fR doc |
119 |
71c2b596737f
|
rm -f placebohttp |
120 |
71c2b596737f
|
rm -f placebohttp.jar |
121 |
894aeb1d6a9d
|
rm -fR PlaceboHTTP.app |
122 |
71c2b596737f
|
rm -f *~ |