From 97261b79b20e4e53ef3a5b7a37d1ffb0b5665bcb Mon Sep 17 00:00:00 2001 From: Chris Hiszpanski Date: Sat, 21 May 2022 15:25:35 -0700 Subject: * Added trtc_ prefixes * Split into tinyrtc.c/h * Sending answer * Answer validates --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3