kolibrios-fun/contrib/other/udcli/libudis86/Tupfile.lua
maxcodehack 78f0a17ba9 Add udcli disassembler to autobuild
git-svn-id: svn://kolibrios.org@8487 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-27 16:28:20 +00:00

11 lines
477 B
Lua
Executable File

if tup.getconfig("NO_GCC") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
CFLAGS = CFLAGS .. " -std=c99"
INCLUDES = INCLUDES .. " -I ."
compile_gcc{"syn-att.c", "decode.c", "syn.c", "itab.c", "syn-intel.c", "udis86.c", "input.c"}
tup.rule(OBJS, "kos32-ar rcs %o %f", {"libudis86.a", "<libudis86>"})