summaryrefslogtreecommitdiff
path: root/shared/os.mk
blob: e4ede4241d29ad87f93e161a8f7e9562cafb105c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# os info
OS=$(strip $(shell uname -o))
ifeq ($(OS),GNU/Linux)
CFLAGS += -DW2_HOST_LINUX
LINUX := true
TARGET := a.out
endif
ifeq ($(OS),Msys)
CFLAGS += -DW2_HOST_WIN32
WIN32 := true
TARGET := a.exe
endif