platform-mingw-w64.mk 693 B

1234567891011121314151617181920212223242526
  1. # Configuration for MinGW-w64.
  2. # Don't be fooled by the name: it can compile to both 32-bit and 64-bit Windows.
  3. # http://mingw-w64.sourceforge.net/
  4. include build/platform-mingw32.mk
  5. # File name extension of executables.... AGAIN.
  6. # Workaround because the makevar parsing doesn't do includes
  7. EXEEXT:=.exe
  8. ifeq ($(OPENMSX_TARGET_CPU),x86)
  9. MINGW_CPU:=i686
  10. else
  11. MINGW_CPU:=$(OPENMSX_TARGET_CPU)
  12. endif
  13. CXX:=$(MINGW_CPU)-w64-mingw32-g++
  14. # Native windres is not prefixed; just use default from main.mk there.
  15. ifeq ($(filter MINGW%,$(shell uname -s)),)
  16. WINDRES?=$(MINGW_CPU)-w64-mingw32-windres
  17. endif
  18. # make sure the threading lib is also included in the exe
  19. LINK_FLAGS:= -static $(LINK_FLAGS)