2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_FASM") ~= "" or (tup.getconfig("NO_MSVC") ~= "" and tup.getconfig("NO_GCC") ~= "") then return end
|
2017-12-20 01:51:00 +01:00
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_fasm.lua")
|
2014-09-12 17:15:23 +02:00
|
|
|
|
2017-12-20 01:51:00 +01:00
|
|
|
OBJS = tup.foreach_rule("*.asm", FASM .. " %f %o", "%B.obj")
|
2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_GCC") == ""
|
|
|
|
then tup.rule(OBJS, "kos32-ar rcs %o %f", "sound.lib")
|
|
|
|
else tup.rule(OBJS, "link.exe /lib /out:%o %f", "sound.lib")
|
|
|
|
end
|