Allow cross-build by specifying CROSS_COMPILE
Change-Id: I7c60216a812634a184a48c969814fc9452969654
Signed-off-by: Michael S. Tsirkin <mst(a)redhat.com>
---
handler/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/handler/Makefile b/handler/Makefile
index 3f4dff3..101c67d 100755
--- a/handler/Makefile
+++ b/handler/Makefile
@@ -17,10 +17,6 @@ ifndef PROJS
PWD=$(shell pwd)
export PROJS=$(PWD)/../../../xmon
-export CC = gcc
-export AS = gcc
-export AR = ar
-
debug ?= 0
ifeq ($(debug), 1)
export XMON_CMPL_OPT_FLAGS = -DDEBUG
@@ -37,6 +33,10 @@ $(shell mkdir -p $(OUTDIR))
$(shell mkdir -p $(BINDIR))
endif # PROJS
+export CC = ${CROSS_COMPILE}gcc
+export AS = ${CROSS_COMPILE}gcc
+export AR = ${CROSS_COMPILE}ar
+
$(shell mkdir -p $(OUTDIR)handler)
TARGET = handler.a
--
MST
Show replies by thread