macosx.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ifeq ($(_THEOS_TARGET_LOADED),)
  2. _THEOS_TARGET_LOADED := 1
  3. THEOS_TARGET_NAME := macosx
  4. _THEOS_TARGET_CC := clang
  5. _THEOS_TARGET_CXX := clang++
  6. _THEOS_TARGET_ARG_ORDER := 2
  7. _THEOS_TARGET_MACOSX_DEPLOYMENT_VERSION := $(__THEOS_TARGET_ARG_$(_THEOS_TARGET_ARG_ORDER))
  8. TARGET_CC ?= xcrun -sdk macosx $(_THEOS_TARGET_CC)
  9. TARGET_CXX ?= xcrun -sdk macosx $(_THEOS_TARGET_CXX)
  10. TARGET_LD ?= xcrun -sdk macosx $(_THEOS_TARGET_CXX)
  11. TARGET_STRIP ?= xcrun -sdk macosx strip
  12. TARGET_STRIP_FLAGS ?= -x
  13. TARGET_CODESIGN_ALLOCATE ?= "$(shell xcrun -sdk macosx -find codesign_allocate)"
  14. TARGET_CODESIGN ?=
  15. TARGET_CODESIGN_FLAGS ?=
  16. TARGET_PRIVATE_FRAMEWORK_PATH = /System/Library/PrivateFrameworks
  17. TARGET_PRIVATE_FRAMEWORK_INCLUDE_PATH = /System/Library/PrivateFrameworks
  18. include $(THEOS_MAKE_PATH)/targets/_common/darwin.mk
  19. include $(THEOS_MAKE_PATH)/targets/_common/darwin_hierarchial_bundle.mk
  20. ARCHS ?= i386 x86_64
  21. NEUTRAL_ARCH = i386
  22. SDKFLAGS := $(if $(_THEOS_TARGET_MACOSX_DEPLOYMENT_VERSION),-mmacosx-version-min=$(_THEOS_TARGET_MACOSX_DEPLOYMENT_VERSION))
  23. _THEOS_TARGET_CFLAGS := $(SDKFLAGS)
  24. _THEOS_TARGET_LDFLAGS := $(SDKFLAGS) -multiply_defined suppress
  25. export TARGET_INSTALL_REMOTE := $(_THEOS_FALSE)
  26. # Previously, _THEOS_TARGET_DEFAULT_PACKAGE_FORMAT was set to deb for OS X - though that seemed to be a mistake? (OS X doesn't... really use debs?)
  27. export _THEOS_TARGET_DEFAULT_PACKAGE_FORMAT := none
  28. endif