aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d48b036..064971c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,23 @@
CC = gcc
# CFLAGS = -std=c99 -target x86_64-apple-darwin20 -g
CFLAGS = -g -I. -std=gnu99 -Wall -pthread
+RM = rm -f
default: all
all: server client
server: server.c
- $(CC) $(CFLAGS) -o snowcast_server snowcast_server.c
+ $(CC) $(CFLAGS) -o snowcast_server snowcast_server_concurrent.c
client: client.c
$(CC) $(CFLAGS) -o snowcast_control client.c
+ $(CC) $(CFLAGS) -o snowcast_listener listener.c
-new:
- $(CC) $(CFLAGS) -o s snowcast_server_concurrent.c
- $(CC) $(CFLAGS) -o l listener.c
- $(CC) $(CFLAGS) -o c client.c \ No newline at end of file
+# new:
+# $(CC) $(CFLAGS) -o s snowcast_server_concurrent.c
+# $(CC) $(CFLAGS) -o l listener.c
+# $(CC) $(CFLAGS) -o c client.c
+
+clean:
+ $(RM) snowcast_server snowcast_control snowcast_listener \ No newline at end of file