2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_MSVC") ~= "" then return end
|
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
|
2017-12-20 01:51:00 +01:00
|
|
|
tup.include(HELPERDIR .. "/use_fasm.lua")
|
2014-09-12 17:15:23 +02:00
|
|
|
tup.include(HELPERDIR .. "/use_msvc.lua")
|
|
|
|
compile_msvc{"*.c"}
|
2017-12-20 01:51:00 +01:00
|
|
|
tup.append_table(OBJS, tup.rule("pow.asm", FASM .. " %f %o", "pow.obj"))
|
2014-09-12 17:15:23 +02:00
|
|
|
tup.rule(OBJS, "link.exe /lib /out:%o %f", "mpg.lib")
|