aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-02 12:18:57 +0800
committerGuangxiong Lin <[email protected]>2022-12-02 12:18:57 +0800
commit0457119acb36b89b6f2f4534fe8ad94b19540bbd (patch)
tree865660e935da9a4adc34f17237e7e83364b53fc6 /Makefile
parent6ec515e5515fbf529e3610a2c88116278af2a134 (diff)
downloadtinyserver-0457119acb36b89b6f2f4534fe8ad94b19540bbd.tar.gz
tinyserver-0457119acb36b89b6f2f4534fe8ad94b19540bbd.tar.bz2
tinyserver-0457119acb36b89b6f2f4534fe8ad94b19540bbd.zip
Refactor
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 96eddce..333935f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
CC ?= gcc
+.PHONY: debug
+debug: CFLAGS += -g -DDEBUG=1
+debug: server client
+
.PHONY: all
all: client server
@@ -13,5 +17,5 @@ clean:
client: client.o util.o
$(CC) -o $@ $^
-server: server.o util.o eventloop.o tsocket.o
+server: server.o util.o eventloop.o tsocket.o acceptor.o connection.o
$(CC) -o $@ $^