-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.htm
116 lines (109 loc) · 4.04 KB
/
compile.htm
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>How to Compile MAME Plus!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link title=1 href="seven.css" type=text/css rel=stylesheet />
<link title=2 href="emu9.css" type=text/css rel=stylesheet />
<link title=0 href="plus.css" type=text/css rel=stylesheet />
<style>
a {font:12px arial; color:#0b4ea0; text-decoration:underline}
a:hover {color:#091977; text-decoration:underline}
h1 {font: bold 16px Arial;}
p, li {font: 12px Arial;}
td {font: 10px Arial; padding:4px;}
th {font: italic 10px Arial; padding:4px;}
table {border:0; background-color: #EEEEEE}
.doscmd {font:12px Courier New; color:#E0E0E0; padding:2px 2px 2px 20px; margin-bottom:10px}
.bluestyle {color: #0000FF;}
</style>
<base target="_blank">
<script type="text/javascript" src="lang.js"></script>
<script type="text/javascript" src="ui.js"></script>
</head>
<body onLoad="iframeInit()">
<h1>I. Preparing compile utilities</h1>
<ul>
<li>create a root directory for compile utilities; generally, this is called <em>mingw</em></li>
<li>extract official MAME Development Tools <a href="http://www.mamedev.org/tools/">mingw-mame-20100102.exe</a> into your <em>mingw</em> directory</li>
</ul>
<h1>II. Preparing official MAME source</h1>
<ul>
<li>create a root directory for mame source code; generally, this is called <em>mamesrc</em></li>
<li> extract official <a href="http://mamedev.org/release.html">MAME</a> source to <em>mamesrc</em></li>
<li> extract official MAME source diff to <em>mamesrc</em>, when <a href="http://mamedev.org/updates.html">intermediate updates</a> are available</li>
</ul>
<table>
<tr>
<th>- File List - </th>
</tr>
<tr>
<td>[MinGW]<br>
[mingw64-w32]<br>
[bin]<br>
[mingw64-w64]<br>
[bin]<br>
... <br>
[mamesrc]<br>
<span class="bluestyle">
[src]<br>
[build]<br>
[emu]<br>
makefile
<br>
0136u1.diff<br />
0136u2.diff<br />
</span></td>
</tr>
</table>
<ul>
<li> apply official patch:<br>
<div class="doscmd" style="background-color:#000000;">
D:\mamesrc>patch -p0 -E <0136u1.diff<br>
D:\mamesrc>patch -p0 -E <0136u2.diff<br />
...</div></li>
<li>extract MAME Plus! source diff (<strong>EXACTLY THE SAME VERSION INCLUDING INTERMEDIATE UPDATES AS OFFICIAL MAME</strong>) on top of <em>mamesrc</em></li>
</ul>
<table>
<tr>
<th>- File List - </th>
</tr>
<tr>
<td>[MinGW]<br>
... <br>
[mamesrc]<br>
<span class="bluestyle">
[src]<br>
makefile<br>
config.def<br>
mkgcc-w32.cmd<br>
mkgcc-w64.cmd
</span></td>
</tr>
</table>
<h1>III. Compile </h1>
<ul>
<li>32-bit<br><br>
Edit "mkgcc-w32.cmd" file, modify PATH to your <em>mingw</em> directory:
<div class="doscmd" style="background-color:#000080;">
set PATH=D:\MinGW\mingw64-w32\bin;%PATH%</div>
Run "mkgcc-w32.cmd" file to compile. warnings are expected:
<div class="doscmd" style="background-color:#000000;">
D:\mamesrc>mkgcc-w32.cmd<br>
D:\mamesrc>make
</div>
</li>
<li>64-bit<br><br>
Edit "mkgcc-w64.cmd" file, modify PATH to your <em>mingw</em> directory:
<div class="doscmd" style="background-color:#000080;">
set PATH=D:\MinGW\mingw64-w64\bin;%PATH%</div>
Run "mkgcc-w64.cmd" file to compile. warnings are expected:
<div class="doscmd" style="background-color:#000000;">
D:\mamesrc>mkgcc-w64.cmd<br>
D:\mamesrc>make
</div>
</li>
</ul>
</body>
</html>
<br><br><br>