Organize sources
This commit is contained in:
15
Makefile
15
Makefile
@ -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 $@
|
||||
|
Reference in New Issue
Block a user