From: Shamus Hammons Date: Thu, 30 Jun 2011 22:10:12 +0000 (+0000) Subject: Makefile fix to compile properly on Mac OSX. X-Git-Tag: 2.0.0~34^2~5 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4c486da1297c0f6a25458191c2d427650de4cd;p=virtualjaguar Makefile fix to compile properly on Mac OSX. --- 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"