aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7fe5259..b7fdd09 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,21 @@
+
CC = gcc
-CFLAGS = -o
+# CFLAGS = -std=c99 -target x86_64-apple-darwin20 -g
+CFLAGS = -g -I. -std=gnu99 -Wall -pthread
all: server client
server:
- $(CC) $(CFLAGS) snowcast_server server.c
+ $(CC) $(CFLAGS) -o snowcast_server server.c
client:
- $(CC) $(CFLAGS) snowcast_control client.c
- $(CC) $(CFLAGS) snowcast_listener listener.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
clean:
- rm -f server client
+ rm -fv server client