From 913cefb3be1171671eb7b2dd1d3a11d1b2ec09a1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 27 Dec 2019 04:10:58 +0100 Subject: Update Makefile --- Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index fb59009..69c4f43 100644 --- a/Makefile +++ b/Makefile @@ -14,22 +14,22 @@ unixpath = $(subst \,/,$1) unixcygpath = /$(subst :,,$(call unixpath,$1)) ifeq ($(platform),) - ifeq (,$(findstring classic_,$(platform))) - platform = unix + platform = unix + ifeq ($(shell uname -s),) + platform = win + else ifneq ($(findstring MINGW,$(shell uname -s)),) + platform = win + else ifneq ($(findstring Darwin,$(shell uname -s)),) + platform = osx + arch = intel + ifeq ($(shell uname -p),powerpc) + arch = ppc + endif + else ifneq ($(findstring win,$(shell uname -s)),) + platform = win + else ifneq ($(findstring SunOS,$(shell uname -s)),) + platform = sun endif -ifeq ($(shell uname -a),) - platform = win -else ifneq ($(findstring Darwin,$(shell uname -a)),) - platform = osx - arch = intel -ifeq ($(shell uname -p),powerpc) - arch = ppc -endif -else ifneq ($(findstring MINGW,$(shell uname -a)),) - platform = win -else ifneq ($(findstring SunOS,$(shell uname -a)),) - platform = sun -endif endif # system platform -- cgit v1.2.3