2014-07-23 07:31:30 +02:00
|
|
|
default_build_CC = gcc
|
|
|
|
default_build_CXX = g++
|
|
|
|
default_build_AR = ar
|
2022-01-07 07:01:44 +01:00
|
|
|
default_build_TAR = tar
|
2014-07-23 07:31:30 +02:00
|
|
|
default_build_RANLIB = ranlib
|
|
|
|
default_build_STRIP = strip
|
|
|
|
default_build_NM = nm
|
|
|
|
|
|
|
|
define add_build_tool_func
|
|
|
|
build_$(build_os)_$1 ?= $$(default_build_$1)
|
|
|
|
build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1)
|
|
|
|
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
|
|
|
endef
|
2022-04-15 18:54:27 +02:00
|
|
|
$(foreach var,CC CXX AR TAR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL DSYMUTIL,$(eval $(call add_build_tool_func,$(var))))
|
2014-07-23 07:31:30 +02:00
|
|
|
define add_build_flags_func
|
|
|
|
build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1)
|
|
|
|
build_$1=$$(build_$(build_arch)_$(build_os)_$1)
|
|
|
|
endef
|
|
|
|
$(foreach flags, CFLAGS CXXFLAGS LDFLAGS, $(eval $(call add_build_flags_func,$(flags))))
|