-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·55 lines (44 loc) · 1.09 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
# -*- Mode: Makefile -*-
#
# Makefile - Java version
#
# use: make
# or: make test
#
JAVA = /usr/bin/java
JAVAC = /usr/bin/javac
all: RouterSimulator.class
RouterSimulator.class: RouterSimulator.java
-@$(JAVAC) RouterSimulator.java
clean:
-@touch ./abc~ core
-@rm -f *~ core
clobber: clean
-@touch ./abc.class
-@rm -f *.class
test: RouterSimulator.class
$(JAVA) -DTrace=3 RouterSimulator
install3:
-@echo
-@echo " Warning: this command will overwrite file ./RouterSimulator.java"
-@echo
-@echo "Continue with ^D, exit with ^C"
-@cat > /dev/null
-@make clobber
-@cp test/RouterSimulator3.java RouterSimulator.java
install4:
-@echo
-@echo " Warning: this command will overwrite file ./RouterSimulator.java"
-@echo
-@echo "Continue with ^D, exit with ^C"
-@cat > /dev/null
-@make clobber
-@cp test/RouterSimulator4.java RouterSimulator.java
install5:
-@echo
-@echo " Warning: this command will overwrite file ./RouterSimulator.java"
-@echo
-@echo "Continue with ^D, exit with ^C"
-@cat > /dev/null
-@make clobber
-@cp test/RouterSimulator5.java RouterSimulator.java