makefile
868 Bytes
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
CFLAGS=-ggdb -Wall -pedantic -D_REENTRANT
%: %.c
gcc $(CFLAGS) $< -o $@ -lpthread
EXECS = fork1 fork2 fork3 fork4 fork5 fork6 \
netclient server1 server2 eintrc eintrs \
threadsafe1 threadsafe2 threadsafe3 threadsafe4 \
threadsafe5 threadsafe6 threadsafe7 \
signal_example epoll1 epoll2 epoll3 epoll4
all: $(EXECS)
fork1: fork1.c
fork2: fork2.c
fork3: fork3.c
fork4: fork4.c
fork5: fork5.c
fork6: fork6.c
netclient: netclient.c
server1: server1.c
server2: server2.c
eintrc: eintrc.c
eintrs: eintrs.c
threadsafe1: threadsafe1.c
threadsafe2: threadsafe2.c
threadsafe3: threadsafe3.c
threadsafe4: threadsafe4.c
threadsafe5: threadsafe5.c
threadsafe6: threadsafe6.c
threadsafe7: threadsafe7.c
signal_example: signal_example.c
epoll1: epoll1.c
epoll2: epoll2.c
epoll3: epoll3.c
epoll4: epoll4.c
.PHONY: clean all
clean:
rm -f $(EXECS)