summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Hiszpanski <chris.hiszpanski@verkada.com>2022-05-21 15:25:35 -0700
committerChris Hiszpanski <chris.hiszpanski@verkada.com>2022-05-21 15:45:26 -0700
commit97261b79b20e4e53ef3a5b7a37d1ffb0b5665bcb (patch)
tree809099efc2ac9ccfb440776eda5c63b6a1970931 /Makefile
parent12df87e791ee6e468df31a6c468595b8c124a2b4 (diff)
* Added trtc_ prefixes
* Split into tinyrtc.c/h * Sending answer * Answer validates
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