r1092 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue May 29 17:51:37 EDT 2007
Author: tma
Date: 2007-05-29 17:51:37 -0400 (Tue, 29 May 2007)
New Revision: 1092
Modified:
trunk/Makefile
Log:
* Fix dependency generation when GCC is invoked using just "cc"
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2007-05-29 19:24:11 UTC (rev 1091)
+++ trunk/Makefile 2007-05-29 21:51:37 UTC (rev 1092)
@@ -54,6 +54,7 @@
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 @@
endif
ifeq ($(GENERATE_DEPENDENCIES),1)
- ifeq ($(CC),gcc)
+ ifeq ($(CC_IS_GCC),1)
DEPEND_CFLAGS=-MMD
endif
endif
More information about the quake3-commits
mailing list