From 43b14b0946ef5454bb5cfb9ec4eea3587fbf5443 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Tue, 11 Jan 2022 12:27:50 +0300 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e0b5f03..4c4d942 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ MKDIR_FLAGS=-p RM=rm RM_FLAGS=-f -TARGETOS = `uname` +TARGETOS ?= `uname` all: @$(MAKE) -C src TARGETOS=$(TARGETOS) all