mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
* Assumptions are already made that the compiler used is GCC, so it seems silly
to make per-platform exceptions in order to make the IS_GCC test work. Instead just rely on $(CC) being set by the system (i.e. make) and it being GCC. If this causes problems on any platforms please discuss it on the mailing list or IRC
This commit is contained in:
parent
869ca5dbb3
commit
1dd785e1d2
1 changed files with 1 additions and 15 deletions
16
Makefile
16
Makefile
|
@ -51,18 +51,6 @@ ifndef ARCH
|
|||
ARCH=$(COMPILE_ARCH)
|
||||
endif
|
||||
|
||||
ifndef CC
|
||||
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
|
||||
|
||||
ifeq ($(ARCH),powerpc)
|
||||
ARCH=ppc
|
||||
endif
|
||||
|
@ -775,9 +763,7 @@ ifeq ($(USE_LOCAL_HEADERS),1)
|
|||
endif
|
||||
|
||||
ifeq ($(GENERATE_DEPENDENCIES),1)
|
||||
ifeq ($(CC_IS_GCC),1)
|
||||
DEPEND_CFLAGS=-MMD
|
||||
endif
|
||||
DEPEND_CFLAGS=-MMD
|
||||
endif
|
||||
|
||||
ifeq ($(USE_SVN),1)
|
||||
|
|
Loading…
Reference in a new issue