makefile: Detect Linux

pull/2325/head
Nicolas Sauzede 2019-10-13 15:13:25 +02:00 committed by Alexander Medvednikov
parent 6e62d9709f
commit 59d4535f84
1 changed files with 6 additions and 1 deletions

View File

@ -8,6 +8,11 @@ ifneq ($(filter $(_SYS),MSYS MinGW),)
WIN32 := 1
endif
_SYS := $(shell uname -o)
ifeq ($(_SYS),GNU/Linux)
LINUX := 1
endif
all: fresh_vc fresh_tcc
ifdef WIN32
$(CC) -std=c99 -w -o v0.exe vc/v_win.c