-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
37 lines (25 loc) · 787 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
27
28
29
30
31
32
33
34
35
36
37
CXXFLAGS=-O2 -g -Wall -pthread -lrt
CFLAGS = -O2 -g -Wall -pthread -lrt --std=gnu99
all: server_epoll server_thread client
server_epoll: server_epoll.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
server_thread: server_thread.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
server_libev: 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 $@ $<
server_go: server_go.go
go build $<
server_haskell: server_haskell.hs
ghc6 -threaded -O --make -o $@ $<
server_erlang: server_erlang.erl
erlc $<
server_libmill: server_libmill.c
$(CC) $(CFLAGS) $< -o $@ -lmill
client_libmill: client_libmill.c
$(CC) $(CFLAGS) $< -o $@ -lmill
client: client.c
$(CC) $(CFLAGS) $< -o $@