From 17513a32d0f7ab26057140253c16162741b2a801 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 2 Feb 2014 15:34:37 +0100 Subject: [PATCH] Add HOST_PREFIX to Makefile.win. --- Makefile.win | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile.win b/Makefile.win index c5c6d7383b..5c6198c6e4 100644 --- a/Makefile.win +++ b/Makefile.win @@ -55,9 +55,15 @@ JOBJ := conf/config_file.o \ HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h) -CC = gcc -CXX = g++ -WINDRES = windres +ifneq ($(HOST_PREFIX),) + CC = $(HOST_PREFIX)gcc + CXX = $(HOST_PREFIX)g++ + WINDRES = $(HOST_PREFIX)windres +else + CC = gcc + CXX = g++ + WINDRES = windres +endif HAVE_DINPUT = 1 HAVE_XAUDIO = 1