Revision 3c4779915488bf86af438c543b75ed196f02401f authored by Daniel Lee on 24 October 2013, 18:39:13 UTC, committed by Daniel Lee on 24 October 2013, 18:39:13 UTC
2 parent s e67c42e + 1fb9d1d
Raw File
os_detect
# Set OS if there is no default:
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
OS = win
ifeq ($(uname_S), Darwin)
  OS = mac
endif
ifeq ($(uname_O), Cygwin)
  OS = win
endif
ifeq ($(uname_S), MINGW32_NT-6.1)
  OS = win
endif
ifeq ($(uname_S), Linux)
  OS = linux
endif
# These includes should update the following variables
# based on the OS:
#   - CFLAGS
#   - EXE
#   - PCH
##
-include make/os_$(OS)
back to top