2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_NASM") ~= "" then return end
|
|
|
|
-- tup.rule is too unmannerly to %define
|
|
|
|
tup.definerule{
|
2024-05-21 16:45:21 +02:00
|
|
|
command = "echo %%define lang '" .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. "'> %o",
|
2014-09-12 17:15:23 +02:00
|
|
|
outputs = {"lang_nasm.inc"}
|
|
|
|
}
|
2024-05-21 17:44:29 +02:00
|
|
|
tup.rule({"c4.asm", extra_inputs = {"lang_nasm.inc"}}, "nasm -I" .. tup.getvariantdir() .. "/ -f bin -o %o %f " .. tup.getconfig("KPACK_CMD"), "c4")
|