-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
22 lines (15 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: ev.o acoro.o echo_server echo_client infinite_connector chat_server
ev.o:
cc -g -c vendor/ev.c -o example/ev.o
acoro.o:
cc -Wall -Wextra -std=c99 -g -D_GNU_SOURCE -c -Ivendor src/acoro.c -o example/acoro.o
echo_server:
cc -Wall -Wextra -std=c99 -g -D_GNU_SOURCE example/echo_server.c example/acoro.o example/ev.o -o example/echo_server -Isrc -Ivendor/ -lpthread -lm
echo_client:
cc -Wall -Wextra -std=c99 -g -D_GNU_SOURCE example/echo_client.c example/acoro.o example/ev.o -o example/echo_client -Isrc -Ivendor/ -lpthread -lm
infinite_connector:
cc -Wall -Wextra -std=c99 -g -D_GNU_SOURCE example/infinite_connector.c example/acoro.o example/ev.o -o example/infinite_connector -Isrc -Ivendor/ -lpthread -lm
chat_server:
cc -Wall -Wextra -std=c99 -g -D_GNU_SOURCE example/chat_server.c example/acoro.o example/ev.o -o example/chat_server -Isrc -Ivendor/ -lpthread -lm
clean:
- rm -f src/*.o ev/ev.o example/echo_server example/*.o example/core.* example/echo_client example/infinite_connector example/chat_server