From 46a3812550f2bb1083ea8de8166492d2e1740d84 Mon Sep 17 00:00:00 2001 From: superturbocat2001 Date: Mon, 4 Jan 2021 21:06:24 +0000 Subject: [PATCH] - Added "whois" to autobuild git-svn-id: svn://kolibrios.org@8516 a494cfbc-eb01-0410-851d-a64ba20cac60 --- data/Tupfile.lua | 3 +++ programs/network/whois/Tupfile.lua | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 programs/network/whois/Tupfile.lua diff --git a/data/Tupfile.lua b/data/Tupfile.lua index ed9a9d9212..0df25f3f2b 100644 --- a/data/Tupfile.lua +++ b/data/Tupfile.lua @@ -686,6 +686,9 @@ end -- tup.getconfig('NO_MSVC') ~= 'full' -- Programs that require TCC to compile. if tup.getconfig('NO_TCC') ~= 'full' then +tup.append_table(img_files, { + {"NETWORK/WHOIS", PROGS .. "/network/whois/whois"}, +}) tup.append_table(extra_files, { {"kolibrios/utils/thashview", PROGS .. "/other/TinyHashView/thashview"}, {"kolibrios/develop/TinyBasic/", PROGS .. "/develop/tinybasic/TinyBasic"}, diff --git a/programs/network/whois/Tupfile.lua b/programs/network/whois/Tupfile.lua new file mode 100644 index 0000000000..fcb467f435 --- /dev/null +++ b/programs/network/whois/Tupfile.lua @@ -0,0 +1,10 @@ +if tup.getconfig("NO_TCC") ~= "" then return end + +TCC="kos32-tcc" + +CFLAGS = "-I../../develop/ktcc/trunk/libc/include" +LDFLAGS = "-nostdlib ../../develop/ktcc/trunk/bin/lib/start.o -L../../develop/ktcc/trunk/bin/lib" +LIBS = "-lck -lnetwork" + +COMMAND=string.format("%s %s %s %s %s ", TCC, CFLAGS, "%f -o %o", LDFLAGS, LIBS) +tup.rule("whois.c", COMMAND .. tup.getconfig("KPACK_CMD"), "whois")