Compiling MAME, how to specifically use the SUBTARGET and SOURCEFILTER parameters. #206
-
Does SUBTARGET default to searching for .lua, .lst, and .flt files in /script/target/mame/ and /src/mame/? What is the difference between .lst and .flt, and how should .flt be defined? I used make subtarget=whatever sourcefilter=myflt.flt, and then wrote the following in myflt.flt: +nes +snes, but no games were compiled. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
https://docs.mamedev.org/initialsetup/compilingmame.html#all-platforms |
Beta Was this translation helpful? Give feedback.
-
In .flt, writing it this way works fine. but writing it this way cannot be recognized. |
Beta Was this translation helpful? Give feedback.
-
I have already reviewed the document, but I still don't quite understand some of the details, such as the questions above. Then I wanted to ask whether the principle of subtarget is to first find the .lua script and then look for the .lst or .flt files in /src/mame for filtering. |
Beta Was this translation helpful? Give feedback.
-
In general SUBTARGET provides couple presets (e.g. tiny buld). If you just set custom subtarget, the only effect you'll get - renamed executable. |
Beta Was this translation helpful? Give feedback.
-
If you provide the If you set |
Beta Was this translation helpful? Give feedback.
If you provide the
SOURCES=...
orSOURCEFILTER=...
it will use that directly.If you set
SUBTARGET
but don’t set don’t setSOURCES
orSOURCEFILTER
, it will look for corresponding Lua and lst files (e.g. see howSUBTARGET=tiny
uses scripts/target/mame/tiny.lua and src/mame/tiny.lst). If that fails, it will look for a corresponding flt file (e.g. see howSUBTARGET=virtual
uses src/mame/virtual.flt – there are no corresponding Lua and lst files).