OXYGENHUB
◆ main openmsx / build / platform-mingw-w64.mk
693 B · Makefile · last changed chore(): initial commit 1 month ago source blame history raw
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
ifeq ($(OPENMSX_TARGET_CPU),x86)
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
ifeq ($(filter MINGW%,$(shell uname -s)),)
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)