Revert "refactoring"

This reverts commit 3e228c1fb8.
This commit is contained in:
Maxim Devaev
2024-09-04 18:34:41 +03:00
parent f79a663839
commit fcecc12229
4 changed files with 14 additions and 9 deletions

View File

@@ -1,5 +1,3 @@
include ../lib.mk
R_DESTDIR ?=
PREFIX ?= /usr/local
@@ -19,6 +17,11 @@ _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