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,3 +1,7 @@
include ../lib.mk
# =====
R_DESTDIR ?=
PREFIX ?= /usr/local
@@ -18,12 +22,6 @@ _SRCS = $(shell ls src/uslibs/*.c src/*.c)
_BUILD = build
define optbool
$(filter $(shell echo $(1) | tr A-Z a-z), yes on 1)
endef
WITH_PTHREAD_NP ?= 1
ifneq ($(call optbool,$(WITH_PTHREAD_NP)),)
override _CFLAGS += -DWITH_PTHREAD_NP
endif