2022-08-03 18:41:06 +00:00
|
|
|
include("plat/build.lua")
|
|
|
|
|
|
|
|
ackfile {
|
|
|
|
name = "boot",
|
|
|
|
srcs = { "./boot.s" },
|
|
|
|
vars = { plat = "msdos386" }
|
|
|
|
}
|
|
|
|
|
2022-08-09 21:49:18 +00:00
|
|
|
ackfile {
|
|
|
|
name = "stub",
|
|
|
|
srcs = { "./stub.s" },
|
2022-08-26 17:20:56 +00:00
|
|
|
deps = { "plat/msdos386/libsys+headers" },
|
2022-08-09 21:49:18 +00:00
|
|
|
vars = { plat = "msdos386" }
|
|
|
|
}
|
|
|
|
|
|
|
|
normalrule {
|
|
|
|
name = "stub_aout",
|
|
|
|
ins = {
|
|
|
|
"util/led+led",
|
|
|
|
"+stub"
|
|
|
|
},
|
|
|
|
outleaves = { "stub.aout" },
|
|
|
|
commands = { "%{ins[1]} %{ins[2]} -o %{outs[1]}" }
|
|
|
|
}
|
|
|
|
|
|
|
|
normalrule {
|
|
|
|
name = "stub_exe",
|
|
|
|
ins = {
|
|
|
|
"util/amisc+aslod",
|
|
|
|
"+stub_aout"
|
|
|
|
},
|
|
|
|
outleaves = { "stub.exe" },
|
|
|
|
commands = { "%{ins[1]} %{ins[2]} %{outs[1]}" }
|
|
|
|
}
|
|
|
|
|
2022-08-03 18:41:06 +00:00
|
|
|
build_plat_libs {
|
|
|
|
name = "libs",
|
|
|
|
arch = "i386",
|
|
|
|
plat = "msdos386",
|
|
|
|
}
|
|
|
|
|
|
|
|
installable {
|
|
|
|
name = "pkg",
|
|
|
|
map = {
|
|
|
|
"+tools",
|
|
|
|
"+libs",
|
|
|
|
"./include+pkg",
|
|
|
|
["$(PLATIND)/msdos386/boot.o"] = "+boot",
|
2022-08-09 21:49:18 +00:00
|
|
|
["$(PLATIND)/msdos386/stub.exe"] = "+stub_exe",
|
2022-08-03 18:41:06 +00:00
|
|
|
["$(PLATIND)/msdos386/libsys.a"] = "./libsys+lib",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|