2021-01-04 22:06:24 +01:00
|
|
|
if tup.getconfig("NO_TCC") ~= "" then return end
|
|
|
|
|
2021-06-10 18:13:29 +02:00
|
|
|
TCC="kos32-tcc"
|
2021-06-10 16:56:44 +02:00
|
|
|
|
|
|
|
CFLAGS = "-I../../develop/ktcc/trunk/libc.obj/include"
|
2021-06-10 18:13:29 +02:00
|
|
|
LDFAGS = "-nostdlib -L../../develop/ktcc/trunk/bin/lib ../../develop/ktcc/trunk/bin/lib/crt0.o"
|
2021-01-04 22:06:24 +01:00
|
|
|
|
2021-05-23 17:44:58 +02:00
|
|
|
LIBS = "-ltcc -lnetwork -lc.obj"
|
2021-01-04 22:06:24 +01:00
|
|
|
|
2021-06-10 18:15:44 +02:00
|
|
|
COMMAND=string.format("%s %s %s %s %s", TCC, CFLAGS, LDFAGS, "%f -o %o", LIBS)
|
2021-01-04 22:06:24 +01:00
|
|
|
tup.rule("whois.c", COMMAND .. tup.getconfig("KPACK_CMD"), "whois")
|