This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
57 lines (49 loc) · 1.54 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
# External programs
JAVA ?= java
JAVAC ?= javac
export JAVA
# Make the build silent by default
V =
ifeq ($(strip $(V)),)
E = @echo
Q = @
else
E = @\#
Q =
endif
export E Q
CLASSES += src/malva/TestCase.class
CLASSES += src/malva/java/lang/ClassLoaderTest.class
CLASSES += src/malva/java/lang/DoubleTest.class
CLASSES += src/malva/java/lang/FloatTest.class
CLASSES += src/malva/java/lang/LongTest.class
CLASSES += src/malva/java/lang/MathTest.class
CLASSES += src/malva/java/lang/StringTest.class
CLASSES += src/malva/java/io/PrintStreamTest.class
CLASSES += src/malva/java/lang/ClassTest.class
CLASSES += src/malva/java/lang/ObjectTest.class
CLASSES += src/malva/java/lang/ProcessTest.class
CLASSES += src/malva/java/lang/RuntimeTest.class
CLASSES += src/malva/java/lang/SystemTest.class
CLASSES += src/malva/java/lang/ThreadTest.class
CLASSES += src/malva/java/lang/ThrowableTest.class
CLASSES += src/malva/java/lang/reflect/FieldTest.class
CLASSES += src/malva/java/net/InetAddressTest.class
CLASSES += src/malva/java/net/NetworkInterfaceTest.class
CLASSES += src/malva/java/nio/DirectByteBufferTest.class
CLASSES += src/malva/java/util/HashMapTest.class
CLASSES += src/malva/java/util/regex/PatternTest.class
SRC := $(patsubst %.class,%.java,$(CLASSES))
%.class: %.java
$(E) " JAVAC " $<
$(Q) $(JAVAC) -g -Xlint:unchecked -source 1.6 -target 1.6 -encoding utf8 -cp src $<
all: $(CLASSES)
.PHONY: all
check: $(CLASSES)
$(E) " CHECK"
$(Q) ./scripts/suite
.PHONY: check
clean:
$(E) " CLEAN"
$(Q) - find src/ -name "*.class" | xargs rm -f
.PHONY: clean