From 40ba6e51c974d93e7f02a6ff6e3edf4baca8f70f Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 4 Jul 2017 14:12:39 +0200 Subject: [PATCH] Makefile:CROSS_COMPILE support --- Makefile/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile/Makefile b/Makefile/Makefile index f3a5e67..c6750eb 100644 --- a/Makefile/Makefile +++ b/Makefile/Makefile @@ -10,6 +10,12 @@ LDFLAGS = #Linker path LDLIBS = #$(pkg-config --libs sdl) +ifneq ($(CROSS_COMPILE),) + CC :=$(CROSS_COMPILE)$(CC) + CXX :=$(CROSS_COMPILE)$(CXX) + LD :=$(CROSS_COMPILE)$(LD) +endif + bin = main cxxbin = cxxmain lib = libexample.so