-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (51 loc) · 3.49 KB
/
Copy pathMakefile
File metadata and controls
56 lines (51 loc) · 3.49 KB
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
all: son/son sip/sip client/app_simple_client server/app_simple_server client/app_stress_client server/app_stress_server client/IM_client server/IM_server
common/pkt.o: common/pkt.c common/pkt.h common/constants.h
gcc -Wall -pedantic -std=c99 -g -c common/pkt.c -o common/pkt.o
topology/topology.o: topology/topology.c
gcc -Wall -pedantic -std=c99 -g -c topology/topology.c -o topology/topology.o
son/neighbortable.o: son/neighbortable.c
gcc -Wall -pedantic -std=c99 -g -c son/neighbortable.c -o son/neighbortable.o
son/son: topology/topology.o common/pkt.o son/neighbortable.o son/son.c
gcc -Wall -pedantic -std=c99 -g -pthread son/son.c topology/topology.o common/pkt.o son/neighbortable.o -o son/son
sip/nbrcosttable.o: sip/nbrcosttable.c
gcc -Wall -pedantic -std=c99 -g -c sip/nbrcosttable.c -o sip/nbrcosttable.o
sip/dvtable.o: sip/dvtable.c
gcc -Wall -pedantic -std=c99 -g -c sip/dvtable.c -o sip/dvtable.o
sip/routingtable.o: sip/routingtable.c
gcc -Wall -pedantic -std=c99 -g -c sip/routingtable.c -o sip/routingtable.o
sip/sip: common/pkt.o common/seg.o topology/topology.o sip/nbrcosttable.o sip/dvtable.o sip/routingtable.o sip/sip.c
gcc -Wall -pedantic -std=c99 -g -pthread sip/nbrcosttable.o sip/dvtable.o sip/routingtable.o common/pkt.o common/seg.o topology/topology.o sip/sip.c -o sip/sip
client/app_simple_client: client/app_simple_client.c common/seg.o client/stcp_client.o topology/topology.o
gcc -Wall -pedantic -std=c99 -g -pthread client/app_simple_client.c common/seg.o client/stcp_client.o topology/topology.o -o client/app_simple_client
client/app_stress_client: client/app_stress_client.c common/seg.o client/stcp_client.o topology/topology.o
gcc -Wall -pedantic -std=c99 -g -pthread client/app_stress_client.c common/seg.o client/stcp_client.o topology/topology.o -o client/app_stress_client
client/IM_client: client/IM_client.c common/seg.o client/stcp_client.o topology/topology.o
gcc -Wall -pedantic -std=c99 -g -pthread client/IM_client.c common/seg.o client/stcp_client.o topology/topology.o -o client/IM_client
server/app_simple_server: server/app_simple_server.c common/seg.o server/stcp_server.o topology/topology.o
gcc -Wall -pedantic -std=c99 -g -pthread server/app_simple_server.c common/seg.o server/stcp_server.o topology/topology.o -o server/app_simple_server
server/app_stress_server: server/app_stress_server.c common/seg.o server/stcp_server.o topology/topology.o
gcc -Wall -pedantic -std=c99 -g -pthread server/app_stress_server.c common/seg.o server/stcp_server.o topology/topology.o -o server/app_stress_server
server/IM_server: server/IM_server.c common/seg.o server/stcp_server.o topology/topology.o
gcc -Wall -pedantic -std=c99 -g -pthread server/IM_server.c common/seg.o server/stcp_server.o topology/topology.o -o server/IM_server
common/seg.o: common/seg.c common/seg.h
gcc -Wall -pedantic -std=c99 -g -c common/seg.c -o common/seg.o
client/stcp_client.o: client/stcp_client.c client/stcp_client.h
gcc -Wall -pedantic -std=c99 -g -c client/stcp_client.c -o client/stcp_client.o
server/stcp_server.o: server/stcp_server.c server/stcp_server.h
gcc -Wall -pedantic -std=c99 -g -c server/stcp_server.c -o server/stcp_server.o
clean:
rm -rf common/*.o
rm -rf topology/*.o
rm -rf son/*.o
rm -rf son/son
rm -rf sip/*.o
rm -rf sip/sip
rm -rf client/*.o
rm -rf server/*.o
rm -rf client/app_simple_client
rm -rf client/app_stress_client
rm -rf client/IM_client
rm -rf server/app_simple_server
rm -rf server/app_stress_server
rm -rf server/IM_server
rm -rf server/receivedtext.txt