Makefile: Add CROSS_SUFFIX option, as requested by rhoenie.

git-svn-id: https://svn.eduke32.com/eduke32@6087 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-03-22 15:46:01 +00:00
parent 9d8b5d1ce0
commit 029facac6f
1 changed files with 8 additions and 7 deletions

View File

@ -7,7 +7,8 @@ PRETTY_OUTPUT ?= 1
# Tools
CROSS=
ifneq ($(CROSS),)
CROSS_SUFFIX=
ifneq ($(CROSS)$(CROSS_SUFFIX),)
undefine CC
undefine CXX
undefine AR
@ -16,12 +17,12 @@ ifneq ($(CROSS),)
undefine STRIP
endif
CC=$(CROSS)gcc
CXX=$(CROSS)g++
AR=$(CROSS)ar
RC=$(CROSS)windres
RANLIB=$(CROSS)ranlib
STRIP=$(CROSS)strip
CC=$(CROSS)gcc$(CROSS_SUFFIX)
CXX=$(CROSS)g++$(CROSS_SUFFIX)
AR=$(CROSS)ar$(CROSS_SUFFIX)
RC=$(CROSS)windres$(CROSS_SUFFIX)
RANLIB=$(CROSS)ranlib$(CROSS_SUFFIX)
STRIP=$(CROSS)strip$(CROSS_SUFFIX)
AS=nasm
PKG_CONFIG=pkg-config