Repository navigation
Expand file tree
/
Copy pathmakefile
More file actions
135 lines (93 loc) · 3.52 KB
/
Copy pathmakefile
File metadata and controls
135 lines (93 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Main Makefile for FBNeo, execute an appropriate system-specific makefile
export
#
# Declare variables
#
# Make a special build, pass the quoted text as comment (use FORCE_UPDATE declaration below to force recompilation of resources)
# SPECIALBUILD = "This text will appear in the property sheet of the .exe file"
#
# Flags. Uncomment any of these declarations to enable their function.
#
# Include Unicode support
UNICODE = 1
# Build A68K ASM 68000 core
#BUILD_A68K = 1
# Include x86 Assembly routines
BUILD_X86_ASM = 1
# Include GCC optmisations for your CPU e.g use -march=native. WARNING: This might mean that the generated binaries will not run on other peoples (older) machines!
#BUILD_NATIVE = 1
# Build for x64 targets (MinGW64 and MSVC only, this will undefine BUILD_A68K and BUILD_X86_ASM)
#BUILD_X64_EXE = 1
# Build for Windows XP target (for use with Visual Studio 2012-15)
#BUILD_VS_XP_TARGET = 1
# Include 7-zip support
INCLUDE_7Z_SUPPORT = 1
# Include AVI recording support (uses Video For Windows)
INCLUDE_AVI_RECORDING = 1
# Include LUA support (on Windows Standalone, LUA is enabled regardless)
#INCLUDE_LUA_SUPPORT = 1
# Include symbols and other debug information in the executable
#SYMBOL = 1
# Include features for debugging drivers unless we are doing a release build
ifndef RELEASEBUILD
DEBUG = 1
endif
# Include rom set verifying features (comment this for release builds)
#ROM_VERIFY = 1
# Force recompilation of files that need it (i.e. use __TIME__, __DATE__, SPECIALBUILD).
FORCE_UPDATE = 1
# Use the __fastcall calling convention when interfacing with A68K/Musashi/Doze
FASTCALL = 1
# Compress executable with upx (the DEBUG option ignores this)
# COMPRESS = 1
# Perl is available
PERL = 1
# Endianness
LSB_FIRST = 1
# Include png.h from burner.h
INCLUDE_LIB_PNGH = 1
# Enable CRT resolution switching
# INCLUDE_SWITCHRES = 1
#
# execute an appropriate system-specific makefile
#
mingw345: FORCE
@$(MAKE) -s -f makefile.mingw GCC345=1
mingw452: FORCE
@$(MAKE) -s -f makefile.mingw GCC452=1
mingw471: FORCE
@$(MAKE) -s -f makefile.mingw GCC471=1
mingw510: FORCE
@$(MAKE) -s -f makefile.mingw GCC510=1
# MinGW w/gcc 5.1.x to gcc 11.x (present)
# note: BORKYCRT fixes swprintf() which MSYS2 broke some time 2021
mingw: FORCE
@$(MAKE) -s -f makefile.mingw GCC510=1 BORKYCRT=1
# Cross compile a 32 bits windows binary from linux
mingwcc: FORCE
@$(MAKE) -s -f makefile.mingw GCC510=1 BORKYCRT=1 HOST_CC=gcc HOST_CXX=g++ CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ WINDRES=i686-w64-mingw32-windres
# Cross compile a 64 bits windows binary from linux
mingwcc64: FORCE
@$(MAKE) -s -f makefile.mingw BUILD_X64_EXE=1 GCC510=1 BORKYCRT=1 HOST_CC=gcc HOST_CXX=g++ CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ WINDRES=x86_64-w64-mingw32-windres
# Native Windows ARM64 build with MSYS2 (CLANGARM64 environment)
# note: MSYS2 can't produce binaries for ARMv8.0
mingwarm64: FORCE
@$(MAKE) -s -f makefile.mingw BUILD_ARM64_EXE=1 GCC510=1 BORKYCRT=1
# Cross compile a windows ARM64 binary from linux (llvm-mingw)
mingwccarm64: FORCE
@$(MAKE) -s -f makefile.mingw BUILD_ARM64_EXE=1 GCC510=1 BORKYCRT=1 HOST_CC=gcc HOST_CXX=g++ CC=aarch64-w64-mingw32-clang CXX=aarch64-w64-mingw32-clang++ WINDRES=aarch64-w64-mingw32-windres
mamemingw: FORCE
@$(MAKE) -s -f makefile.mamemingw
sdl: FORCE
@$(MAKE) -s -f makefile.sdl
sdl2: FORCE
@$(MAKE) -s -f makefile.sdl2
headless: FORCE
@$(MAKE) -s -f makefile.headless
vc: FORCE
@$(MAKE) -s -f makefile.vc
vc18: FORCE
@$(MAKE) -s -f makefile.vc18
pi: FORCE
@$(MAKE) -s -f makefile.pi
FORCE: