-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (62 loc) · 1.1 KB
/
Makefile
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
JC = javac
JVM = java
JDOC = javadoc
JFLAGS = -g
CLASSES = \
Ball.class \
BallView.class \
Block.class \
BlockView.class \
MyWorld.class \
PhysicsLab.class \
PhysicsElement.class \
FixedHook.class \
FixedHookView.class \
Spring.class \
SpringView.class \
Rubber.class \
RubberView.class \
SpringAttachable.class\
LabMenuListener.class \
Simulateable.class \
MyWorldView.class \
MouseListener.class \
Elastic.class
SOURCES = \
Ball.java \
BallView.java \
Block.java \
BlockView.java \
MyWorld.java \
PhysicsLab.java \
PhysicsElement.java \
FixedHook.java \
FixedHookView.java \
Spring.java \
SpringView.java \
Rubber.java \
RubberView.java \
SpringAttachable.java\
LabMenuListener.java \
Simulateable.java \
MyWorldView.java \
MouseListener.java \
Elastic.java
MAIN = PhysicsLab
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $<
all: $(CLASSES)
doc: $(SOURCES)
$(JDOC) -author $(SOURCES) -d Documentation
run: $(MAIN).class
$(JVM) $(MAIN)
clean:
rm -rf *.class
mrproper:
make clean
rm -rf res*.csv res*.png
rebuild:
make clean && make
rerun:
make rebuild && make run