-
Notifications
You must be signed in to change notification settings - Fork 47
/
compile.mk
78 lines (68 loc) · 1.91 KB
/
compile.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
J = \
$(shell find $(1)/src -type f -name "*.java") \
$(shell find $(1)/test -type f -name "*.java") \
JAVA_ENGINE := $(call J,src/engine)
JAVA_RENDER := $(call J,src/render)
JAVA_UI_TEXT := $(call J,src/ui-text)
JAVA_UI_SWING := $(call J,src/ui-swing)
TEST_CLASSPATH := lib/org.hamcrest.core_1.3.0.jar:lib/junit.jar
compile.mk-compile: \
checks \
animations \
levels \
images \
sounds \
music \
src/engine/bin/compile.touchfile \
src/render/bin/compile.touchfile \
src/ui-text/bin/compile.touchfile \
src/ui-swing/bin/compile.touchfile
compile.mk-compile-noui-notests: \
checks \
animations \
levels
@echo ". Compiling without UI and tests"
@rm -rf src/engine/bin/*
@./build-scripts/compile-java \
src/engine/bin/compilenotests.touchfile \
"" \
src/engine/bin \
src/engine/src
@rm -rf src/render/bin/*
@./build-scripts/compile-java \
src/render/bin/compilenotests.touchfile \
"src/engine/bin" \
src/render/bin \
src/render/src
src/engine/bin/compile.touchfile: ${JAVA_ENGINE}
@echo ". Compiling engine"
@./build-scripts/compile-java \
"$@" \
"${TEST_CLASSPATH}" \
src/engine/bin \
src/engine/src \
src/engine/test
src/render/bin/compile.touchfile: ${JAVA_ENGINE} ${JAVA_RENDER}
@echo ". Compiling rendering"
@./build-scripts/compile-java \
"$@" \
"${TEST_CLASSPATH}:src/engine/bin" \
src/render/bin \
src/render/src \
src/render/test
src/ui-text/bin/compile.touchfile: ${JAVA_ENGINE} ${JAVA_RENDER} ${JAVA_UI_TEXT}
@echo ". Compiling text UI"
@./build-scripts/compile-java \
"$@" \
"${TEST_CLASSPATH}:src/engine/bin:src/render/bin" \
src/ui-text/bin \
src/ui-text/src \
src/ui-text/test
src/ui-swing/bin/compile.touchfile: ${JAVA_ENGINE} ${JAVA_RENDER} ${JAVA_UI_SWING}
@echo ". Compiling Swing UI"
@./build-scripts/compile-java \
"$@" \
"${TEST_CLASSPATH}:src/engine/bin:src/render/bin" \
src/ui-swing/bin \
src/ui-swing/src \
src/ui-swing/test