forked from methane/echoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 610 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
26
CXXFLAGS=-O2 -g -Wall -pthread
CFLAGS = -O2 -pthread -lrt --std=gnu99
all: echo_server_epoll echo_server_thread
echo_server_epoll: echo_server_epoll.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
echo_server_thread: echo_server_thread.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
echo_server_libev: echo_server_libev.cpp
$(CXX) $(CXXFLAGS) -o $@ $< -lev
null_server_epoll: null_server_epoll.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
null_server_thread: null_server_thread.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
echo_server_go: echo_server_go.go
6g -o echo_server_go.6 $<
6l -o $@ echo_server_go.6
client: client.c
$(CC) $(CFLAGS) $< -o $@