| 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 | |
| 5 | include build/platform-mingw32.mk |
| 6 | |
| 7 | # File name extension of executables.... AGAIN. |
| 8 | # Workaround because the makevar parsing doesn't do includes |
| 9 | EXEEXT:=.exe |
| 10 | |
| 11 | |
| 12 | MINGW_CPU:=i686 |
| 13 | else |
| 14 | MINGW_CPU:=$(OPENMSX_TARGET_CPU) |
| 15 | endif |
| 16 | |
| 17 | CXX:=$(MINGW_CPU)-w64-mingw32-g++ |
| 18 | |
| 19 | # Native windres is not prefixed; just use default from main.mk there. |
| 20 | |
| 21 | WINDRES?=$(MINGW_CPU)-w64-mingw32-windres |
| 22 | endif |
| 23 | |
| 24 | # make sure the threading lib is also included in the exe |
| 25 | LINK_FLAGS:= -static $(LINK_FLAGS) |