-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
76 lines (52 loc) · 2.57 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
75
76
CC = cc
COPS =
LINT = lint
LOPS = -x -u
NETLIBS =
all: client server client_p server_p client_m server_m client_udp server_udp
ddos: DDoS.c restart.c uici.c
$(CC) $(COPS) -o ddos DDoS.c restart.c uiciname.c uici.c $(NETLIBS)
myclient: myclient.c restart.c uici.c
$(CC) $(COPS) -o myclient myclient.c restart.c uiciname.c uici.c $(NETLIBS)
server: server.c restart.c uiciname.c uici.c
$(CC) $(COPS) -o server server.c restart.c uiciname.c uici.c $(NETLIBS)
client: client.c restart.c uici.c
$(CC) $(COPS) -o client client.c restart.c uiciname.c uici.c $(NETLIBS)
server_r: server.c restart.c uiciname.c uici.c
$(CC) $(COPS) -DREENTRANCY=REENTRANT_R -o server_r server.c restart.c uiciname.c uici.c $(NETLIBS)
client_r: client.c restart.c uici.c
$(CC) $(COPS) -DREENTRANCY=REENTRANT_R -o client_r client.c restart.c uiciname.c uici.c $(NETLIBS)
server_p: server.c restart.c uiciname.c uici.c
$(CC) $(COPS) -DREENTRANCY=REENTRANT_POSIX -o server_p server.c restart.c uiciname.c uici.c $(NETLIBS)
client_p: client.c restart.c uici.c
$(CC) $(COPS) -DREENTRANCY=REENTRANT_POSIX -o client_p client.c restart.c uiciname.c uici.c $(NETLIBS)
server_m: server.c restart.c uiciname.c uici.c
$(CC) $(COPS) -DREENTRANCY=REENTRANT_MUTEX -o server_m server.c restart.c uiciname.c uici.c $(NETLIBS)
client_m: client.c restart.c uici.c
$(CC) $(COPS) -DREENTRANCY=REENTRANT_MUTEX -o client_m client.c restart.c uiciname.c uici.c $(NETLIBS)
server_udp: server_udp.c restart.c uiciname.c uiciudp.c
$(CC) $(COPS) -o server_udp server_udp.c restart.c uiciname.c uiciudp.c $(NETLIBS)
client_udp: client_udp.c uiciname.c uiciudp.c
$(CC) $(COPS) -o client_udp client_udp.c restart.c uiciname.c uiciudp.c $(NETLIBS)
lints:
$(LINT) $(LOPS) server.c restart.c uiciname.c uici.c
lintc:
$(LINT) $(LOPS) client.c restart.c uiciname.c uici.c
lints_r:
$(LINT) $(LOPS) -DREENTRANCY=REENTRANT_R server.c restart.c uiciname.c uici.c
lintc_r:
$(LINT) $(LOPS) -DREENTRANCY=REENTRANT_R client.c restart.c uiciname.c uici.c
lints_p:
$(LINT) $(LOPS) -DREENTRANCY=REENTRANT_POSIX server.c restart.c uiciname.c uici.c
lintc_p:
$(LINT) $(LOPS) -DREENTRANCY=REENTRANT_POSIX client.c restart.c uiciname.c uici.c
lints_m:
$(LINT) $(LOPS) -DREENTRANCY=REENTRANT_MUTEX server.c restart.c uiciname.c uici.c
lintc_m:
$(LINT) $(LOPS) -DREENTRANCY=REENTRANT_MUTEX client.c restart.c uiciname.c uici.c
lintus:
$(LINT) $(LOPS) server_udp.c uiciname.c uiciudp.c
lintuc:
$(LINT) $(LOPS) client_udp.c uiciname.c uiciudp.c
clean:
rm -f *.o ddos server myclient client server_r client_r server_p client_p server_m client_m server_udp client_udp