-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 690 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 690 Bytes
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
# DEBUG = -DDEBUG -g
DEBUG =
all: base.o client
g++ -o bin/base_server src/base_server.cpp build/base.o $(DEBUG)
g++ -o bin/thread_server src/thread_server.cpp build/base.o -lpthread $(DEBUG)
g++ -o bin/select_server src/select_server.cpp build/base.o $(DEBUG)
g++ -o bin/poll_server src/poll_server.cpp build/base.o $(DEBUG)
g++ -o bin/epoll_server src/epoll_server.cpp build/base.o -lpthread $(DEBUG)
@echo DONE!
base.o:
-mkdir build
g++ -c src/base.cpp -o build/base.o $(DEBUG)
client: base.o
-mkdir bin
g++ -o bin/client src/client.cpp build/base.o $(DEBUG)
cp -f src/clients.sh bin/clients.sh
chmod 555 bin/clients.sh
.PHONY : clean
clean:
-rm -rf build
-rm -rf bin