Skip to content

Commit

Permalink
makefile: use just uname, not uname -o - osx has no -o (#2327)
Browse files Browse the repository at this point in the history
* use just uname, not uname -s in makefile

* add mac detect
  • Loading branch information
joe-conigliaro authored Oct 13, 2019
1 parent a90427a commit 5dfdd87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5dfdd87

Please sign in to comment.