You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.mk 779B

1234567891011121314151617181920
  1. default_build_CC = gcc
  2. default_build_CXX = g++
  3. default_build_AR = ar
  4. default_build_RANLIB = ranlib
  5. default_build_STRIP = strip
  6. default_build_NM = nm
  7. default_build_OTOOL = otool
  8. default_build_INSTALL_NAME_TOOL = install_name_tool
  9. define add_build_tool_func
  10. build_$(build_os)_$1 ?= $$(default_build_$1)
  11. build_$(build_arch)_$(build_os)_$1 ?= $$(build_$(build_os)_$1)
  12. build_$1=$$(build_$(build_arch)_$(build_os)_$1)
  13. endef
  14. $(foreach var,CC CXX AR RANLIB NM STRIP SHA256SUM DOWNLOAD OTOOL INSTALL_NAME_TOOL,$(eval $(call add_build_tool_func,$(var))))
  15. define add_build_flags_func
  16. build_$(build_arch)_$(build_os)_$1 += $(build_$(build_os)_$1)
  17. build_$1=$$(build_$(build_arch)_$(build_os)_$1)
  18. endef
  19. $(foreach flags, CFLAGS CXXFLAGS LDFLAGS, $(eval $(call add_build_flags_func,$(flags))))