allow to override Makefile TARGETOS variable

Overriding TARGETOS is useful for cross-compiling if build OS and
target OS are different (e.g. build on MacOS for Linux)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
This commit is contained in:
Sergey V. Lobanov 2022-01-11 12:27:50 +03:00
parent 1df7d235f5
commit 43b14b0946

View File

@ -15,7 +15,7 @@ MKDIR_FLAGS=-p
RM=rm
RM_FLAGS=-f
TARGETOS = `uname`
TARGETOS ?= `uname`
all:
@$(MAKE) -C src TARGETOS=$(TARGETOS) all