makefile: use just `uname`, not `uname -o` - osx has no `-o` (#2327)

* use just uname, not uname -s in makefile

* add mac detect
pull/2330/head
joe-conigliaro 2019-10-14 01:15:12 +11:00 committed by GitHub
parent a90427a663
commit 5dfdd87707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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