2021-02-01 21:51:09 +01:00
|
|
|
if tup.getconfig("NO_TCC") ~= "" then return end
|
|
|
|
|
|
|
|
TCC="kos32-tcc"
|
|
|
|
|
2021-05-25 17:59:31 +02:00
|
|
|
|
|
|
|
CFLAGS = "-I../../develop/libraries/kolibri-libc/include -I../../develop/ktcc/trunk/libc/include"
|
|
|
|
LDFLAGS = "-nostdlib ../../develop/libraries/kolibri-libc/lib/crt0.o -L../../develop/libraries/kolibri-libc/lib -L../../develop/ktcc/trunk/bin/lib"
|
|
|
|
LIBS = "-ltcc -lbox -lc.obj"
|
2021-02-01 21:51:09 +01:00
|
|
|
|
|
|
|
COMMAND=string.format("%s %s %s %s %s ", TCC, CFLAGS, "%f -o %o", LDFLAGS, LIBS)
|
|
|
|
tup.rule("passwordgen.c", COMMAND .. tup.getconfig("KPACK_CMD"), "passwordgen")
|