From 85200d819c27da240ee9a16516676f2b98258952 Mon Sep 17 00:00:00 2001 From: coyote Date: Wed, 30 May 2007 19:36:40 +0000 Subject: Changes for SunOS: grep -q doesn't work on SunOS and GNU make on SunOS defines CC as 'cc' by default (it's not present). git-svn-id: svn://svn.icculus.org/quake3/trunk@1093 edf5b092-35ff-0310-97b2-ce42778d08ea --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 29bf7ef..057e69d 100644 --- a/Makefile +++ b/Makefile @@ -52,9 +52,16 @@ ARCH=$(COMPILE_ARCH) endif ifndef CC -CC=gcc + CC=gcc +endif + +ifeq ($(PLATFORM),sunos) + # GNU make on SunOS defines CC as 'cc'. 'grep -q' is not an option on SunOS. + CC=gcc + CC_IS_GCC=1 +else + CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1) endif -CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1) ifeq ($(ARCH),powerpc) ARCH=ppc -- cgit v1.2.3