aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-09 16:46:49 +0800
committerGuangxiong Lin <[email protected]>2022-12-09 19:39:08 +0800
commit49839c88a98d3798f7b18c58f54f26f36cacff38 (patch)
tree5cb4ee13f9bdb0ef25e39a07a628f6f16da18e87 /Makefile
parent0457119acb36b89b6f2f4534fe8ad94b19540bbd (diff)
downloadtinyserver-49839c88a98d3798f7b18c58f54f26f36cacff38.tar.gz
tinyserver-49839c88a98d3798f7b18c58f54f26f36cacff38.tar.bz2
tinyserver-49839c88a98d3798f7b18c58f54f26f36cacff38.zip
Implement a simple thread pool and refactor
Refactor
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 333935f..bceb62e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
CC ?= gcc
+CFLAGS ?= -lpthread
+
+.PHONY: all
+all: client server
.PHONY: debug
debug: CFLAGS += -g -DDEBUG=1
debug: server client
-.PHONY: all
-all: client server
-
.PHONY: clean
clean:
rm -rf client server *.o
@@ -17,5 +18,5 @@ clean:
client: client.o util.o
$(CC) -o $@ $^
-server: server.o util.o eventloop.o tsocket.o acceptor.o connection.o
+server: server.o util.o evloop.o tsocket.o acceptor.o connection.o tpool.o
$(CC) -o $@ $^