From e7ef9b6eca7b7aca393e233655a246c0e686a649 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 30 Apr 2025 12:29:03 +0200 Subject: makefile --- chatclient | Bin 0 -> 17856 bytes chatserver | Bin 0 -> 22512 bytes makefile | 13 +++++++++++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 chatclient create mode 100755 chatserver diff --git a/chatclient b/chatclient new file mode 100755 index 0000000..aa0406f Binary files /dev/null and b/chatclient differ diff --git a/chatserver b/chatserver new file mode 100755 index 0000000..7cf671b Binary files /dev/null and b/chatserver 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 -- cgit v1.2.3