Small changes, nearing completion
[packetlaptime.git] / Makefile
blobbe95c35ab73e5c105fb10dd1a8738d40e3a2500b
1 .SUFFIXES : .java .class
3 CLASSES = NodeInterface.class Node.class TCPNode.class UDPNode.class
4 CFLAGS = -classpath $(CURDIR)
6 all : $(CLASSES)
8 .java.class :
9 javac $(CFLAGS) $<
11 runUDP :
12 java $(CFLAGS) UDPNode 9800 localhost 9801 L &
13 java $(CFLAGS) UDPNode 9801 localhost 9802 &
14 java $(CFLAGS) UDPNode 9802 localhost 9803 &
15 java $(CFLAGS) UDPNode 9803 localhost 9804 &
16 java $(CFLAGS) UDPNode 9804 localhost 9805 &
17 java $(CFLAGS) UDPNode 9805 localhost 9806 &
18 java $(CFLAGS) UDPNode 9806 localhost 9807 &
19 java $(CFLAGS) UDPNode 9807 localhost 9808 &
20 java $(CFLAGS) UDPNode 9808 localhost 9809 &
21 java $(CFLAGS) UDPNode 9809 localhost 9800 &
23 runTCP :
24 java $(CFLAGS) TCPNode 9800 localhost 9801 L &
25 java $(CFLAGS) TCPNode 9801 localhost 9802 &
26 java $(CFLAGS) TCPNode 9802 localhost 9803 &
27 java $(CFLAGS) TCPNode 9803 localhost 9804 &
28 java $(CFLAGS) TCPNode 9804 localhost 9805 &
29 java $(CFLAGS) TCPNode 9805 localhost 9806 &
30 java $(CFLAGS) TCPNode 9806 localhost 9807 &
31 java $(CFLAGS) TCPNode 9807 localhost 9808 &
32 java $(CFLAGS) TCPNode 9808 localhost 9809 &
33 java $(CFLAGS) TCPNode 9809 localhost 9800 &
35 runTCPtry :
36 java $(CFLAGS) TCPNode 9800 fyrkant 9801 L &
37 ssh fyrkant "java $(CFLAGS) TCPNode 9801 $(HOST) 9802" &
38 java $(CFLAGS) TCPNode 9802 kub 9803 &
39 ssh kub "java $(CFLAGS) TCPNode 9803 $(HOST) 9804" &
40 java $(CFLAGS) TCPNode 9804 localhost 9800 &
42 runUDPtry :
43 java $(CFLAGS) UDPNode 9800 fyrkant 9801 L &
44 ssh fyrkant "java $(CFLAGS) UDPNode 9801 $(HOST) 9802" &
45 java $(CFLAGS) UDPNode 9802 kub 9803 &
46 ssh kub "java $(CFLAGS) UDPNode 9803 $(HOST) 9804" &
47 java $(CFLAGS) UDPNode 9804 localhost 9800 &
49 api :
50 javadoc *.java -d doc -charset UTF-8
52 clean :
53 rm -rf $(CLASSES) *.log *~