mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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).
This commit is contained in:
parent
0f679da4c7
commit
869ca5dbb3
1 changed files with 9 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue