From 5e1ad52b05f1fd7aa58391c216dc3e4ad5b94359 Mon Sep 17 00:00:00 2001 From: tma Date: Tue, 29 May 2007 21:51:37 +0000 Subject: * 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 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3