From 59d4535f8417edc8e96c98bbb605a9851a61e360 Mon Sep 17 00:00:00 2001 From: Nicolas Sauzede Date: Sun, 13 Oct 2019 15:13:25 +0200 Subject: [PATCH] makefile: Detect Linux --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad72ebaac1..78063b3eb1 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,12 @@ _SYS := $(patsubst MSYS%,MSYS,$(_SYS)) _SYS := $(patsubst MINGW%,MinGW,$(_SYS)) ifneq ($(filter $(_SYS),MSYS MinGW),) -WIN32:=1 +WIN32 := 1 +endif + +_SYS := $(shell uname -o) +ifeq ($(_SYS),GNU/Linux) +LINUX := 1 endif all: fresh_vc fresh_tcc