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