summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/makefile b/makefile
index 41d3b13..c22e322 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,13 @@
-all: chatserver
+CC = gcc
+CFLAGS = -pthread
+
+all: chatserver chatclient
chatserver: main.c client.c chatroom.c
- $(CC) -pthread -o chatserver main.c client.c chatroom.c
+ $(CC) $(CFLAGS) -o chatserver main.c client.c chatroom.c
+
+chatclient: clientbin.c
+ $(CC) $(CFLAGS) -o chatclient clientbin.c
+
+clean:
+ rm -f chatserver chatclient