Darwin.mk 810 B

1234567891011121314151617181920212223242526272829
  1. ifeq ($(_THEOS_PLATFORM_LOADED),)
  2. _THEOS_PLATFORM_LOADED := 1
  3. THEOS_PLATFORM_NAME := macosx
  4. ifneq ($(THEOS_CURRENT_ARCH),)
  5. ifneq ($(THEOS_PLATFORM_SDK_ROOT_$(THEOS_CURRENT_ARCH)),)
  6. THEOS_PLATFORM_SDK_ROOT = $(THEOS_PLATFORM_SDK_ROOT_$(THEOS_CURRENT_ARCH))
  7. endif
  8. endif
  9. THEOS_PLATFORM_SDK_ROOT ?= $(shell xcode-select -print-path)
  10. # To have xcrun use our customized THEOS_PLATFORM_SDK_ROOT
  11. export DEVELOPER_DIR = $(THEOS_PLATFORM_SDK_ROOT)
  12. _THEOS_PLATFORM_DEFAULT_TARGET := iphone
  13. ifeq ($(call __executable,gdu),$(_THEOS_TRUE))
  14. _THEOS_PLATFORM_DU := gdu
  15. _THEOS_PLATFORM_DU_EXCLUDE := --exclude
  16. else
  17. _THEOS_PLATFORM_DU := du
  18. _THEOS_PLATFORM_DU_EXCLUDE := -I
  19. endif
  20. _THEOS_PLATFORM_MD5SUM := md5
  21. _THEOS_PLATFORM_LIPO = xcrun lipo
  22. THEOS_SUDO_COMMAND ?= sudo
  23. _THEOS_PLATFORM_SHOW_IN_FILE_MANAGER := open -R
  24. endif