1 if tup
.getconfig("NO_FASM") ~= "" or tup
.getconfig("NO_GCC") ~= "" then return end
2 HELPERDIR
= (tup
.getconfig("HELPERDIR") == "") and "../.." or tup
.getconfig("HELPERDIR")
3 tup
.include(HELPERDIR
.. "/use_gcc.lua")
4 LDFLAGS
= LDFLAGS
.. " -T kolibri.ld"
5 tup
.append_table(OBJS
, tup
.rule("asm_code.asm", "fasm %f %o", "asm_code.o"))
6 compile_gcc
{"c_code.c", "system/kolibri.c", "system/stdlib.c", "system/string.c"}