From 8d4c486da1297c0f6a25458191c2d427650de4cd Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Thu, 30 Jun 2011 22:10:12 +0000 Subject: [PATCH] Makefile fix to compile properly on Mac OSX. --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 63dec1c..54dcca6 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,15 @@ FIND = find +# Gah +OSTYPE := $(shell uname -a) + +# Should catch both 'darwin' and 'darwin7.0' +ifeq "$(findstring Darwin,$(OSTYPE))" "Darwin" +QMAKE_EXTRA := -spec macx-g++ +endif + + all: prepare virtualjaguar @echo -e "\033[01;33m***\033[00;32m Success!\033[00m" @@ -25,7 +34,7 @@ virtualjaguar: sources libs makefile-qt makefile-qt: virtualjaguar.pro @echo -e "\033[01;33m***\033[00;32m Creating Qt makefile...\033[00m" - qmake virtualjaguar.pro -o makefile-qt + qmake $(QMAKE_EXTRA) virtualjaguar.pro -o makefile-qt libs: obj/libmusashi.a @echo -e "\033[01;33m***\033[00;32m Libraries successfully made.\033[00m" -- 2.37.2