Rev 5098 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5098 | Rev 10042 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | if tup.getconfig("NO_FASM") ~= "" then return end |
1 | if tup.getconfig("NO_FASM") ~= "" then return end |
- | 2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../.." or tup.getconfig("HELPERDIR") |
|
- | 3 | tup.include(HELPERDIR .. "/use_fasm.lua") |
|
- | 4 | add_include(tup.getvariantdir()) |
|
- | 5 | ||
2 | tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > lang.inc", {"lang.inc"}) |
6 | tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"}) |
3 | tup.rule({"ir.asm", extra_inputs = {"lang.inc"}}, "fasm %f %o " .. tup.getconfig("KPACK_CMD"), "ir") |
7 | tup.rule({"ir.asm", extra_inputs = {"lang.inc"}}, FASM .. " %f %o " .. tup.getconfig("KPACK_CMD"), "ir") |