-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.gcj
executable file
·109 lines (88 loc) · 3.09 KB
/
Makefile.gcj
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
GCJ=gcj
CLASSDIR = classes
PCDIR = pc
CLASSPATH = $(CLASSDIR):/vol/acfiles7/egonw/j2sdk1.4.0/jre/lib/rt.jar
VERSION = 1.2-1.15
ROOT = vecmath$(VERSION)
CLASSFILES = \
$(CLASSDIR)/javax/vecmath/Tuple2f.class \
$(CLASSDIR)/javax/vecmath/Tuple2d.class \
$(CLASSDIR)/javax/vecmath/Tuple3f.class \
$(CLASSDIR)/javax/vecmath/Tuple4f.class \
$(CLASSDIR)/javax/vecmath/Tuple4d.class \
$(CLASSDIR)/javax/vecmath/Tuple3d.class \
$(CLASSDIR)/javax/vecmath/Tuple3i.class \
$(CLASSDIR)/javax/vecmath/Tuple4i.class \
$(CLASSDIR)/javax/vecmath/Vector2f.class \
$(CLASSDIR)/javax/vecmath/Vector2d.class \
$(CLASSDIR)/javax/vecmath/Vector3f.class \
$(CLASSDIR)/javax/vecmath/Vector3d.class \
$(CLASSDIR)/javax/vecmath/Vector4f.class \
$(CLASSDIR)/javax/vecmath/Vector4d.class \
$(CLASSDIR)/javax/vecmath/TexCoord2f.class \
$(CLASSDIR)/javax/vecmath/TexCoord3f.class \
$(CLASSDIR)/javax/vecmath/Tuple3b.class \
$(CLASSDIR)/javax/vecmath/Color3b.class \
$(CLASSDIR)/javax/vecmath/Color3f.class \
$(CLASSDIR)/javax/vecmath/Tuple4b.class \
$(CLASSDIR)/javax/vecmath/Color4b.class \
$(CLASSDIR)/javax/vecmath/Color4f.class \
$(CLASSDIR)/javax/vecmath/Point2f.class \
$(CLASSDIR)/javax/vecmath/Point2d.class \
$(CLASSDIR)/javax/vecmath/Point3f.class \
$(CLASSDIR)/javax/vecmath/Point3d.class \
$(CLASSDIR)/javax/vecmath/Point4f.class \
$(CLASSDIR)/javax/vecmath/Point4d.class \
$(CLASSDIR)/javax/vecmath/Point3i.class \
$(CLASSDIR)/javax/vecmath/Point4i.class \
$(CLASSDIR)/javax/vecmath/Matrix3d.class \
$(CLASSDIR)/javax/vecmath/Matrix4d.class \
$(CLASSDIR)/javax/vecmath/Matrix3f.class \
$(CLASSDIR)/javax/vecmath/Matrix4f.class \
$(CLASSDIR)/javax/vecmath/AxisAngle4d.class \
$(CLASSDIR)/javax/vecmath/AxisAngle4f.class \
$(CLASSDIR)/javax/vecmath/Quat4d.class \
$(CLASSDIR)/javax/vecmath/Quat4f.class \
$(CLASSDIR)/javax/vecmath/GVector.class \
$(CLASSDIR)/javax/vecmath/GMatrix.class \
$(CLASSDIR)/javax/vecmath/MismatchedSizeException.class \
$(CLASSDIR)/javax/vecmath/SingularMatrixException.class \
$(CLASSDIR)/javax/vecmath/VecmathTest.class
PCFILES = $(CLASSFILES:classes/%.class=pc/%.java)
JAVA_SOURCEFILES = $(CLASSFILES:classes/%.class=%.java)
BACKFILES = $(JAVA_SOURCEFILES:%.java=%.java.bak)
all: classdir $(CLASSFILES)
lib:
${GCJ} -shared -o libvecmath.so -I${CLASSDIR} -c $(JAVA_SOURCEFILES)
$(CLASSDIR)/%.class: %.java
${GCJ} -d $(CLASSDIR) -I${CLASSDIR} -C $<
$(PCDIR)/%.java: %.java
sed 's/$/\015/' $< > $@
classdir: $(CLASSDIR)/javax/vecmath
$(CLASSDIR)/javax/vecmath:
mkdir -p $@
docs: FORCE
if [ ! -d docs ]; then \
mkdir -p docs; \
fi
export CLASSPATH; CLASSPATH=$(CLASSPATH):.; \
javadoc -d docs javax.vecmath
test:
export CLASSPATH; CLASSPATH=$(CLASSPATH):.; \
java -Djava.compiler=NONE javax.vecmath.VecmathTest
test2:
export CLASSPATH; CLASSPATH=/home/hiranabe/vecmath.jar:$(CLASSPATH):.; \
java javax.vecmath.VecmathTest
debug:
export CLASSPATH; CLASSPATH=$(CLASSPATH):.; \
jdb javax.vecmath.VecmathTest
pc: $(PCFILES)
rebuild: clean all
clean:
-rm $(CLASSFILES) $(BACKFILES)
cleanback:
-rm $(BACKFILES)
cleanpc:
-rm $(PCFILES)
cleanall: clean cleanback cleanpc
FORCE: