makefile: Detect Linux
parent
6e62d9709f
commit
59d4535f84
5
Makefile
5
Makefile
|
@ -8,6 +8,11 @@ ifneq ($(filter $(_SYS),MSYS MinGW),)
|
||||||
WIN32 := 1
|
WIN32 := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
_SYS := $(shell uname -o)
|
||||||
|
ifeq ($(_SYS),GNU/Linux)
|
||||||
|
LINUX := 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