platform-darwin.mk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Configuration for creating a Darwin app folder.
  2. # In practice, this is used for Mac OS X; I'm not sure all of it applies to
  3. # other Darwin-based systems.
  4. # Does platform support symlinks?
  5. USE_SYMLINK:=true
  6. # The app folder will set a hi-res icon, so the openMSX process should not
  7. # replace this with its own low-res icon.
  8. SET_WINDOW_ICON:=false
  9. # Compile for the selected CPU.
  10. ifeq ($(OPENMSX_TARGET_CPU),x86)
  11. TARGET_FLAGS+=-arch i386
  12. else
  13. TARGET_FLAGS+=-arch $(OPENMSX_TARGET_CPU)
  14. endif
  15. # File name extension of executables.
  16. EXEEXT:=
  17. LIBRARYEXT:=.so
  18. # Select the OS X version we want to be compatible with.
  19. # In theory it is possible to compile against an OS X version number lower
  20. # than the SDK version number, but in practice this doesn't seem to work
  21. # since libraries such as libxml2 can change soname between OS X versions.
  22. # Clang as shipped with Xcode requires OS X 10.7 or higher for compiling with
  23. # libc++, when compiling Clang and libc++ from source 10.6 works as well.
  24. OSX_VER:=10.7
  25. TARGET_FLAGS+=-mmacosx-version-min=$(OSX_VER)
  26. # Select Clang as the compiler and libc++ as the standard library.
  27. CXX:=clang++
  28. TARGET_FLAGS+=-stdlib=libc++
  29. # Link against system frameworks.
  30. LINK_FLAGS+= \
  31. -framework CoreFoundation -framework CoreServices \
  32. -framework ApplicationServices -framework CoreMIDI