Commit 40ba6e51 authored by Mathieu Maret's avatar Mathieu Maret

Makefile:CROSS_COMPILE support

parent 023c2ae8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment