Makefile:CROSS_COMPILE support

This commit is contained in:
Mathieu Maret 2017-07-04 14:12:39 +02:00
parent 023c2ae85b
commit 40ba6e51c9
1 changed files with 6 additions and 0 deletions

View File

@ -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