2021-02-10 20:02:54 +00:00
|
|
|
if tup.getconfig("NO_TCC") ~= "" then return end
|
|
|
|
|
2021-06-10 16:08:44 +00:00
|
|
|
TCC="kos32-tcc"
|
2021-06-10 15:06:01 +00:00
|
|
|
CFLAGS = "-I../../develop/ktcc/trunk/libc.obj/include"
|
2021-06-10 16:08:44 +00:00
|
|
|
LDFLAGS = "-nostdlib -L../../develop/ktcc/trunk/bin/lib ../../develop/ktcc/trunk/bin/lib/crt0.o"
|
2021-02-10 20:02:54 +00:00
|
|
|
|
2021-05-23 17:21:26 +00:00
|
|
|
LIBS = "-ltcc -limg -lhttp -lc.obj"
|
2021-02-10 20:02:54 +00:00
|
|
|
|
2021-06-10 16:32:10 +00:00
|
|
|
COMMAND = string.format("%s %s %s %s %s ", TCC, CFLAGS, LDFLAGS, "%f -o %o", LIBS)
|
2021-05-23 17:21:26 +00:00
|
|
|
tup.rule({"weather.c", "json/json.c"}, COMMAND .. tup.getconfig("KPACK_CMD"), "weather")
|