common WITH_* flags

This commit is contained in:
Maxim Devaev
2025-02-07 23:31:36 +02:00
parent 6cabcd39f1
commit 5baf921660
4 changed files with 24 additions and 23 deletions

View File

@@ -1,5 +1,8 @@
include lib.mk
-include config.mk
# =====
DESTDIR ?=
PREFIX ?= /usr/local
MANPREFIX ?= $(PREFIX)/share/man
@@ -12,6 +15,14 @@ LDFLAGS ?=
R_DESTDIR = $(if $(DESTDIR),$(shell realpath "$(DESTDIR)"),)
WITH_PYTHON ?= 0
WITH_JANUS ?= 0
WITH_V4P ?= 0
WITH_GPIO ?= 0
WITH_SYSTEMD ?= 0
WITH_PTHREAD_NP ?= 1
WITH_SETPROCTITLE ?= 1
export
_LINTERS_IMAGE ?= ustreamer-linters
@@ -24,14 +35,11 @@ endif
# =====
define optbool
$(filter $(shell echo $(1) | tr A-Z a-z), yes on 1)
endef
ifeq ($(V),)
ECHO = @
endif
# =====
all:
+ $(MAKE) apps