diff --git a/Makefile b/Makefile index 513149b..4248886 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,16 @@ CXX ?= g++ CORE_DIR := . +# platform ifeq ($(platform),) platform = unix -ifeq ($(shell uname -a),) +ifeq ($(shell uname -s),) platform = win -else ifneq ($(findstring MINGW,$(shell uname -a)),) +else ifneq ($(findstring MINGW,$(shell uname -s)),) platform = win -else ifneq ($(findstring Darwin,$(shell uname -a)),) +else ifneq ($(findstring Darwin,$(shell uname -s)),) platform = osx -else ifneq ($(findstring win,$(shell uname -a)),) +else ifneq ($(findstring win,$(shell uname -s)),) platform = win endif endif @@ -58,7 +59,6 @@ else ifeq ($(platform), osx) fpic := -fPIC SHARED := -dynamiclib - ifeq ($(UNIVERSAL),1) ifeq ($(ARCHFLAGS),) ARCHFLAGS = -arch i386 -arch x86_64