makefile: use just `uname`, not `uname -o` - osx has no `-o` (#2327)
* use just uname, not uname -s in makefile * add mac detectpull/2330/head
parent
a90427a663
commit
5dfdd87707
7
Makefile
7
Makefile
|
@ -8,11 +8,14 @@ ifneq ($(filter $(_SYS),MSYS MinGW),)
|
||||||
WIN32 := 1
|
WIN32 := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
_SYS := $(shell uname -o)
|
ifeq ($(_SYS),Linux)
|
||||||
ifeq ($(_SYS),GNU/Linux)
|
|
||||||
LINUX := 1
|
LINUX := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(_SYS),Darwin)
|
||||||
|
MAC := 1
|
||||||
|
endif
|
||||||
|
|
||||||
all: fresh_vc fresh_tcc
|
all: fresh_vc fresh_tcc
|
||||||
ifdef WIN32
|
ifdef WIN32
|
||||||
$(CC) -std=c99 -w -o v0.exe vc/v_win.c
|
$(CC) -std=c99 -w -o v0.exe vc/v_win.c
|
||||||
|
|
Loading…
Reference in New Issue