2020-12-13 12:46:08 +01:00
|
|
|
if tup.getconfig("NO_GCC") ~= "" then return end
|
2020-12-13 12:47:17 +01:00
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
|
2020-12-13 12:46:08 +01:00
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
|
|
|
tup.include(HELPERDIR .. "/use_newlib.lua")
|
|
|
|
|
2020-12-13 12:50:48 +01:00
|
|
|
CFLAGS = CFLAGS .. " -Dasm=__asm__ -std=c99 -DGCC_BUILD"
|
2020-12-13 12:46:08 +01:00
|
|
|
LDFLAGS = LDFLAGS .. " --subsystem native"
|
|
|
|
|
|
|
|
compile_gcc{"tte.c", "notify.c", "getline.c"}
|
|
|
|
link_gcc("tte")
|