diff --git a/programs/other/tte/Tupfile.lua b/programs/other/tte/Tupfile.lua new file mode 100755 index 0000000000..9a75da524d --- /dev/null +++ b/programs/other/tte/Tupfile.lua @@ -0,0 +1,10 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") + +CFLAGS = CFLAGS .. " -DGCC_BUILD" +LDFLAGS = LDFLAGS .. " --subsystem native" + +compile_gcc{"tte.c", "notify.c", "getline.c"} +link_gcc("tte")