Makefile:CROSS_COMPILE support
This commit is contained in:
parent
023c2ae85b
commit
40ba6e51c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user