forked from patrikarlos/networkprogramming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
67 lines (43 loc) · 1.24 KB
/
makefile
File metadata and controls
67 lines (43 loc) · 1.24 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Declaration of variables
CC = gcc
CC_FLAGS = -w -g
OBJECTS = $(wildcard *.o)
all: talker talker2 listener showip conlisten genlisten hostent ptrent getaddrinfo givemeSockets security1 tcpechoserv sendmeudp receivemeudp
# targets
security1: security1.o
$(CC) security1.o -o security1 -lcrypto
givemeSockets: givemeSockets.o
$(CC) givemeSockets.o -o givemeSockets
getaddrinfo: getaddrinfo.o
$(CC) getaddrinfo.o -o getaddrinfo
hostent: hostent.o
$(CC) hostent.o -o hostent
ptrent: ptrent.o
$(CC) ptrent.o -o ptrent
sendmeudp: sendmeudp.o
$(CC) sendmeudp.o -o sendmeudp
receivemeudp: receivemeudp.o
$(CC) receivemeudp.o -o receivemeudp
talker: talker.o
$(CC) talker.o -o talker
talker2: talker2.o
$(CC) talker2.o -o talker2
listener: listener.o
$(CC) listener.o -o listener
conlisten: concurr-tcp.o
$(CC) concurr-tcp.o -o conlisten
genlisten: concurr-tcp-gen.o
$(CC) concurr-tcp-gen.o -o genlisten
tcpbasicclient: tcp_basic_client.o
$(CC) tcp_basic_client.o -o tcpbasicclient
showip: showip.o
$(CC) showip.o -o showip
tcpechoserv: tcp_select_server.o
$(CC) tcp_select_server.o -o tcpechoserv
### Build stuff
# To obtain object files
%.o: %.c
$(CC) -c $(CC_FLAGS) $< -o $@
# To remove generated files
clean:
rm -f talker $(OBJECTS)