Initial commit

This commit is contained in:
seajee
2025-04-25 01:52:14 +02:00
commit 04c671220e
11 changed files with 690 additions and 0 deletions

31
Makefile Normal file
View File

@@ -0,0 +1,31 @@
CC=gcc
CFLAGS=-Wall -Wextra -ggdb -I.
LDFLAGS=-lpthread
all: hello_server hello_client chat_server chat_client udp_server udp_client
chat_server: examples/chat_server.c
$(CC) $(CFLAGS) -o chat_server examples/chat_server.c $(LDFLAGS)
chat_client: examples/chat_client.c
$(CC) $(CFLAGS) -o chat_client examples/chat_client.c $(LDFLAGS)
hello_server: examples/hello_server.c
$(CC) $(CFLAGS) -o hello_server examples/hello_server.c $(LDFLAGS)
hello_client: examples/hello_client.c
$(CC) $(CFLAGS) -o hello_client examples/hello_client.c $(LDFLAGS)
udp_server: examples/udp_server.c
$(CC) $(CFLAGS) -o udp_server examples/udp_server.c $(LDFLAGS)
udp_client: examples/udp_client.c
$(CC) $(CFLAGS) -o udp_client examples/udp_client.c $(LDFLAGS)
clean:
rm -rf chat_server
rm -rf chat_client
rm -rf hello_server
rm -rf hello_client
rm -rf udp_server
rm -rf udp_client