-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
25 lines (17 loc) · 951 Bytes
/
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
.POSIX:
CFLAGS=-std=c99 -Wall -Wextra -Werror -pedantic -D_DEFAULT_SOURCE=200809L -lpthread
echo-server: examples/echo_server.c ev.h
$(CC) $(CFLAGS) examples/echo_server.c -o echo_server
ping-pong: examples/ping_pong.c ev.h
$(CC) $(CFLAGS) examples/ping_pong.c -o ping_pong
ev-tcp-server: examples/ev_tcp_server.c ev.h
$(CC) $(CFLAGS) examples/ev_tcp_server.c -o ev_tcp_server
ev-tcp-client: examples/ev_tcp_client.c ev.h
$(CC) $(CFLAGS) examples/ev_tcp_client.c -o ev_tcp_client
ev-tcp-server-stats: examples/ev_tcp_server_stats.c ev.h
$(CC) $(CFLAGS) examples/ev_tcp_server_stats.c -o ev_tcp_server_stats
ev-tls-tcp-server: examples/ev_tls_tcp_server.c ev.h
$(CC) $(CFLAGS) -DHAVE_OPENSSL=1 -lssl -lcrypto examples/ev_tls_tcp_server.c -o ev_tls_tcp_server
all: echo-server ping-pong ev-tcp-server ev-tcp-server-stats ev-tls-tcp-server ev-tcp-client
clean:
@rm echo_server ping_pong ev_tcp_server ev_tcp_server_stats ev_tls_tcp_server