mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:08:53 +00:00
024a1c7ddf
Needed to invoke deterministic mode on some archivers
21 lines
787 B
Makefile
21 lines
787 B
Makefile
default_build_CC = gcc
|
|
default_build_CXX = g++
|
|
default_build_AR = ar
|
|
default_build_RANLIB = ranlib
|
|
default_build_STRIP = strip
|
|
default_build_NM = nm
|
|
default_build_OTOOL = otool
|
|
default_build_INSTALL_NAME_TOOL = install_name_tool
|
|
|
|
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
|
|
$(foreach var,CC CXX AR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL,$(eval $(call add_build_tool_func,$(var))))
|
|
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 ARFLAGS LDFLAGS, $(eval $(call add_build_flags_func,$(flags))))
|