ssl_client1 example: fixed Tupfile.lua

git-svn-id: svn://kolibrios.org@9083 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-07-24 22:02:48 +00:00
parent 1d002754bb
commit 12edd8bcf5

View File

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