aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/makefile b/makefile
index 0a9c4ae..4623e49 100644
--- a/makefile
+++ b/makefile
@@ -1,10 +1,13 @@
CFLAGS=-g -Wall -Wpedantic
LDLIBS=-lnettle
+OBJECTS=builtins.o network.o websocket.o
+
all: websocksy
-websocksy: websocksy.c websocksy.h ws_proto.c builtins.c
- $(CC) $(CFLAGS) $(LDLIBS) $< -o $@
+websocksy: websocksy.c websocksy.h $(OBJECTS)
+ $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(OBJECTS)
clean:
- rm websocksy
+ $(RM) $(OBJECTS)
+ $(RM) websocksy