Use the CC variable when guessing build type.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1725 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1a844576a4
commit
0c4dc8dfec
1 changed files with 2 additions and 2 deletions
|
@ -10,10 +10,10 @@ BASE_DIR=.
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(FTE_TARGET),) #user didn't specify prefered target
|
ifeq ($(FTE_TARGET),) #user didn't specify prefered target
|
||||||
ifneq ($(shell gcc -v 2>&1 | grep mingw),)
|
ifneq ($(shell $(CC) -v 2>&1 | grep mingw),)
|
||||||
FTE_TARGET=win32
|
FTE_TARGET=win32
|
||||||
endif
|
endif
|
||||||
ifneq ($(shell gcc -v 2>&1 | grep cygwin),)
|
ifneq ($(shell $(CC) -v 2>&1 | grep cygwin),)
|
||||||
FTE_TARGET=cygwin
|
FTE_TARGET=cygwin
|
||||||
endif
|
endif
|
||||||
ifeq ($(FTE_TARGET),) #still not set
|
ifeq ($(FTE_TARGET),) #still not set
|
||||||
|
|
Loading…
Reference in a new issue