camera-streamer/Makefile
Kamil Trzcinski f52a991459 Enable Werror
2022-04-05 10:08:56 +02:00

12 lines
291 B
Makefile

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