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")