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

View file

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