2020-12-24 22:00:00 +01:00
|
|
|
if tup.getconfig("NO_TCC") ~= "" then return end
|
|
|
|
|
|
|
|
TCC="kos32-tcc"
|
|
|
|
|
|
|
|
CFLAGS = "-I../ktcc/trunk/libc/include"
|
2021-06-10 18:19:45 +02:00
|
|
|
LDFLAGS = "-nostdlib ../ktcc/trunk/bin/lib/crt0.o -L../ktcc/trunk/bin/lib"
|
2020-12-24 22:00:00 +01:00
|
|
|
LIBS = "-lck"
|
|
|
|
|
|
|
|
COMMAND=string.format("%s %s %s %s %s ", TCC, CFLAGS, "%f -o %o", LDFLAGS, LIBS)
|
|
|
|
tup.rule("TinyBasic.c", COMMAND .. tup.getconfig("KPACK_CMD"), "TinyBasic")
|