Organize sources

This commit is contained in:
Kamil Trzcinski
2022-04-05 08:33:27 +02:00
parent 1aeceb3637
commit 2562d9881b
25 changed files with 60 additions and 57 deletions

View File

@ -1,10 +1,11 @@
camera_stream: *.c *.h
gcc -g -lpthread -o camera_stream *.c
SRC := $(wildcard **/*.c)
HEADERS := $(wildcard **/*.h)
HTML := $(wildcard html/*.js html/*.html)
HTML_SRC := $(addsuffix .c,$(HTML))
jmuxer.min.c: jmuxer.min.js
xxd -i $< > $@.tmp
mv $@.tmp $@
video.html.c: video.html
camera_stream: $(SRC) $(HTML_SRC) $(HEADERS)
gcc -g -lpthread -I$(PWD) -o $@ $(filter %.c, $^)
html/%.c: html/%
xxd -i $< > $@.tmp
mv $@.tmp $@