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:48:41 +01:00
|
|
|
CFLAGS = CFLAGS .. " -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")
|