From 12edd8bcf5c80f6fb95bd7d8d05bf24960f1a0dd Mon Sep 17 00:00:00 2001 From: turbocat Date: Sat, 24 Jul 2021 22:02:48 +0000 Subject: [PATCH] ssl_client1 example: fixed Tupfile.lua git-svn-id: svn://kolibrios.org@9083 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../libraries/kos_mbedtls/programs/ssl/Tupfile.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 programs/develop/libraries/kos_mbedtls/programs/ssl/Tupfile.lua diff --git a/programs/develop/libraries/kos_mbedtls/programs/ssl/Tupfile.lua b/programs/develop/libraries/kos_mbedtls/programs/ssl/Tupfile.lua new file mode 100644 index 0000000000..c6c47a8d94 --- /dev/null +++ b/programs/develop/libraries/kos_mbedtls/programs/ssl/Tupfile.lua @@ -0,0 +1,13 @@ +if tup.getconfig("NO_FASM") ~= "" then return end +if tup.getconfig("NO_TCC") ~= "" then return end + +TCC="kos32-tcc" + +CFLAGS = "-I../../../../ktcc/trunk/libc.obj/include -I../../include" +LDFAGS = "-nostdlib -L../../../../ktcc/trunk/bin/lib ../../../../ktcc/trunk/bin/lib/crt0.o -stack=10000 " + +LIBS = "-ltcc -lnetwork -lc.obj " + +COMMAND=string.format("%s %s %s %s %s", TCC, CFLAGS, LDFAGS, "%f -o %o", LIBS) +tup.rule("load_mbedtls.asm", "fasm %f %o ", "load_mbedtls.o") +tup.rule({"ssl_client1.c", "load_mbedtls.o"}, COMMAND .. tup.getconfig("KPACK_CMD"), "ssl_client1")