From 78f0a17ba9813ab8fcd3ce5e976789b3834a5fa0 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Sun, 27 Dec 2020 16:28:20 +0000 Subject: [PATCH] Add udcli disassembler to autobuild git-svn-id: svn://kolibrios.org@8487 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/other/udcli/Tupfile.lua | 14 ++++++++++++++ contrib/other/udcli/libudis86/Tupfile.lua | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100755 contrib/other/udcli/Tupfile.lua create mode 100755 contrib/other/udcli/libudis86/Tupfile.lua diff --git a/contrib/other/udcli/Tupfile.lua b/contrib/other/udcli/Tupfile.lua new file mode 100755 index 0000000000..c2efba7dc6 --- /dev/null +++ b/contrib/other/udcli/Tupfile.lua @@ -0,0 +1,14 @@ +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") + +LDFLAGS = LDFLAGS .. " -Llibudis86" +LIBS = "-ludis86 " .. LIBS +table.insert(LIBDEPS, "libudis86/") +INCLUDES = INCLUDES .. " -Ilibudis86" +CFLAGS = CFLAGS .. " -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32" + +compile_gcc{"udcli.c"} +link_gcc("udcli") + diff --git a/contrib/other/udcli/libudis86/Tupfile.lua b/contrib/other/udcli/libudis86/Tupfile.lua new file mode 100755 index 0000000000..3d402e081e --- /dev/null +++ b/contrib/other/udcli/libudis86/Tupfile.lua @@ -0,0 +1,10 @@ +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", ""})