diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |