summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchatclientbin0 -> 17856 bytes
-rwxr-xr-xchatserverbin0 -> 22512 bytes
-rw-r--r--makefile13
3 files changed, 11 insertions, 2 deletions
diff --git a/chatclient b/chatclient
new file mode 100755
index 0000000..aa0406f
--- /dev/null
+++ b/chatclient
Binary files differ
diff --git a/chatserver b/chatserver
new file mode 100755
index 0000000..7cf671b
--- /dev/null
+++ b/chatserver
Binary files differ
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