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:
Mark Olsen 2005-12-20 22:27:31 +00:00
parent 1a844576a4
commit 0c4dc8dfec
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ BASE_DIR=.
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
endif
ifneq ($(shell gcc -v 2>&1 | grep cygwin),)
ifneq ($(shell $(CC) -v 2>&1 | grep cygwin),)
FTE_TARGET=cygwin
endif
ifeq ($(FTE_TARGET),) #still not set