aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $@ $^