diff options
author | coyote <coyote@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-05-30 19:36:40 +0000 |
---|---|---|
committer | coyote <coyote@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-05-30 19:36:40 +0000 |
commit | 85200d819c27da240ee9a16516676f2b98258952 (patch) | |
tree | 46acc6395277b35c8e2a06d0063705b90e11638a | |
parent | 5e1ad52b05f1fd7aa58391c216dc3e4ad5b94359 (diff) | |
download | ioquake3-aero-85200d819c27da240ee9a16516676f2b98258952.tar.gz ioquake3-aero-85200d819c27da240ee9a16516676f2b98258952.zip |
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
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |