refactoring

This commit is contained in:
Devaev Maxim
2020-12-08 17:17:10 +03:00
parent 8fc11ac056
commit 9039aa8ac5
24 changed files with 947 additions and 900 deletions

View File

@@ -20,7 +20,14 @@ LINTERS_IMAGE ?= $(PROG)-linters
# =====
_PROG_LIBS = -lm -ljpeg -pthread -levent -levent_pthreads -luuid
override CFLAGS += -c -std=c11 -Wall -Wextra -D_GNU_SOURCE
_PROG_SRCS = $(shell ls src/common/*.c src/ustreamer/*.c src/ustreamer/http/*.c src/ustreamer/encoders/cpu/*.c src/ustreamer/encoders/hw/*.c)
_PROG_SRCS = $(shell ls \
src/common/*.c \
src/ustreamer/*.c \
src/ustreamer/http/*.c \
src/ustreamer/http/data/*.c \
src/ustreamer/encoders/cpu/*.c \
src/ustreamer/encoders/hw/*.c \
)
define optbool
@@ -83,8 +90,8 @@ uninstall:
regen:
tools/make-jpeg-h.py src/ustreamer/http/data/blank.jpeg src/ustreamer/http/data/blank_jpeg.h BLANK
tools/make-html-h.py src/ustreamer/http/data/index.html src/ustreamer/http/data/index_html.h INDEX
tools/make-jpeg-h.py src/ustreamer/http/data/blank.jpeg src/ustreamer/http/data/blank_jpeg.c BLANK
tools/make-html-h.py src/ustreamer/http/data/index.html src/ustreamer/http/data/index_html.c INDEX
$(PROG): $(_PROG_SRCS:%.c=$(BUILD)/%.o)