diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 $@ $^ |