diff --git a/gfx/video_filters/Makefile b/gfx/video_filters/Makefile index 8d4c0259f3..2ba8930c1b 100644 --- a/gfx/video_filters/Makefile +++ b/gfx/video_filters/Makefile @@ -7,20 +7,18 @@ PREFIX := /usr INSTALLDIR := $(PREFIX)/lib/retroarch/filters/video ifeq ($(platform),) -platform = unix -ifeq ($(shell uname -a),) - platform = win -else ifneq ($(findstring MINGW,$(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 win,$(shell uname -a)),) - platform = win -endif + platform = unix + ifeq ($(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 MINGW,$(shell uname -s)),) + platform = win + endif endif ifeq ($(platform),gcc) diff --git a/libretro-common/audio/dsp_filters/Makefile b/libretro-common/audio/dsp_filters/Makefile index d3c228cd94..02e049df57 100644 --- a/libretro-common/audio/dsp_filters/Makefile +++ b/libretro-common/audio/dsp_filters/Makefile @@ -8,17 +8,15 @@ INSTALLDIR := $(PREFIX)/lib/retroarch/filters/audio ifeq ($(platform),) platform = unix - ifeq ($(shell uname -a),) + ifeq ($(shell uname -s),) platform = win - else ifneq ($(findstring MINGW,$(shell uname -a)),) - platform = win - else ifneq ($(findstring Darwin,$(shell uname -a)),) + else ifneq ($(findstring Darwin,$(shell uname -s)),) platform = osx - arch = intel + arch = intel ifeq ($(shell uname -p),powerpc) arch = ppc endif - else ifneq ($(findstring win,$(shell uname -a)),) + else ifneq ($(findstring MINGW,$(shell uname -s)),) platform = win endif endif