diff --git a/Makefile b/Makefile
index 78063b3eb1..92d59aaa42 100644
--- a/Makefile
+++ b/Makefile
@@ -8,11 +8,14 @@ ifneq ($(filter $(_SYS),MSYS MinGW),)
 WIN32 := 1
 endif
 
-_SYS := $(shell uname -o)
-ifeq ($(_SYS),GNU/Linux)
+ifeq ($(_SYS),Linux)
 LINUX := 1
 endif
 
+ifeq ($(_SYS),Darwin)
+MAC := 1
+endif
+
 all: fresh_vc fresh_tcc
 ifdef WIN32
 	$(CC) -std=c99 -w -o v0.exe vc/v_win.c