aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-05-29 21:51:37 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-05-29 21:51:37 +0000
commit5e1ad52b05f1fd7aa58391c216dc3e4ad5b94359 (patch)
treeec78b163e1de0d18f7adb482d48d83b8034edc1e /Makefile
parent2b6a103f1e255c4b8fd863cdbc1c21e9aa4c0fa9 (diff)
downloadioquake3-aero-5e1ad52b05f1fd7aa58391c216dc3e4ad5b94359.tar.gz
ioquake3-aero-5e1ad52b05f1fd7aa58391c216dc3e4ad5b94359.zip
* Fix dependency generation when GCC is invoked using just "cc"
git-svn-id: svn://svn.icculus.org/quake3/trunk@1092 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 646e59d..29bf7ef 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,7 @@ endif
ifndef CC
CC=gcc
endif
+CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1)
ifeq ($(ARCH),powerpc)
ARCH=ppc
@@ -767,7 +768,7 @@ ifeq ($(USE_LOCAL_HEADERS),1)
endif
ifeq ($(GENERATE_DEPENDENCIES),1)
- ifeq ($(CC),gcc)
+ ifeq ($(CC_IS_GCC),1)
DEPEND_CFLAGS=-MMD
endif
endif