summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4d82061..be9ee9f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
-example/webrtcd: example/main.c tinyrtc.h
- $(CC) $(CFLAGS) -I. -o $@ example/main.c
+example/webrtcd: example/main.c tinyrtc.o
+ $(CC) $(CFLAGS) -I. -o $@ example/main.c tinyrtc.o
+
+tinyrtc.o: tinyrtc.c tinyrtc.h
+ $(CC) $(CFLAGS) -I. -o $@ -c tinyrtc.c
.PHONY: clean
clean:
- rm -f example/webrtcd
+ rm -f tinyrtc.o example/webrtcd
+
+.PHONY: run
+run:
+ websocketd --port=8080 --staticdir=example ./example/webrtcd