2018-06-05 08:45:00 +00:00
|
|
|
cprogram {
|
|
|
|
name = "m68kmake",
|
|
|
|
srcs = {
|
|
|
|
"./musashi/m68kmake.c"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
normalrule {
|
|
|
|
name = "m68k_engine",
|
|
|
|
ins = {
|
|
|
|
"+m68kmake",
|
|
|
|
"./musashi/m68k_in.c",
|
|
|
|
"./musashi/m68kcpu.h",
|
2020-05-28 12:06:08 +00:00
|
|
|
"./musashi/m68kmmu.h",
|
2018-06-05 08:45:00 +00:00
|
|
|
"./m68kconf.h",
|
|
|
|
"./musashi/m68kcpu.c",
|
2020-05-28 12:06:08 +00:00
|
|
|
"./musashi/m68kfpu.c",
|
2018-06-05 08:45:00 +00:00
|
|
|
"./musashi/m68kdasm.c",
|
2018-06-06 13:39:43 +00:00
|
|
|
"./musashi/m68k.h",
|
2020-05-28 12:06:08 +00:00
|
|
|
"./musashi/softfloat",
|
2018-06-05 08:45:00 +00:00
|
|
|
},
|
|
|
|
outleaves = {
|
|
|
|
"m68kops.c",
|
|
|
|
"m68kops.h",
|
|
|
|
"m68kcpu.h",
|
|
|
|
"m68kconf.h",
|
|
|
|
"m68kcpu.c",
|
|
|
|
"m68kdasm.c",
|
2018-06-06 13:39:43 +00:00
|
|
|
"m68k.h",
|
2018-06-05 08:45:00 +00:00
|
|
|
},
|
|
|
|
commands = {
|
2020-05-28 12:06:08 +00:00
|
|
|
"cp -R %{ins[2]} %{ins[3]} %{ins[4]} %{ins[5]} %{ins[6]} %{ins[7]} %{ins[8]} %{ins[9]} %{ins[10]} %{dir}",
|
2018-06-05 08:45:00 +00:00
|
|
|
"cd %{dir} && %{ins[1]}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
clibrary {
|
|
|
|
name = "headers",
|
|
|
|
srcs = {},
|
|
|
|
hdrs = {
|
|
|
|
matching(filenamesof("+m68k_engine"), "%.h$"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
cprogram {
|
|
|
|
name = "emu68k",
|
|
|
|
vars = {
|
|
|
|
["+cflags"] = {"-DM68K_COMPILE_FOR_MAME=0"}
|
|
|
|
},
|
|
|
|
srcs = {
|
|
|
|
"./sim.c",
|
|
|
|
matching(filenamesof("+m68k_engine"), "%.c$"),
|
2020-05-28 12:06:08 +00:00
|
|
|
"./musashi/softfloat/softfloat.c",
|
2018-06-05 08:45:00 +00:00
|
|
|
},
|
|
|
|
deps = {
|
|
|
|
"+headers",
|
|
|
|
}
|
|
|
|
}
|