2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("NO_CMM") ~= "" then return end
|
2022-02-18 19:41:31 +01:00
|
|
|
if tup.getconfig("NO_TCC") ~= "" then return end
|
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_tcc.lua")
|
|
|
|
|
2014-09-12 17:15:23 +02:00
|
|
|
if tup.getconfig("LANG") == "ru"
|
|
|
|
then C_LANG = "LANG_RUS"
|
|
|
|
else C_LANG = "LANG_ENG" -- this includes default case without config
|
|
|
|
end
|
2022-02-18 19:41:31 +01:00
|
|
|
|
|
|
|
LFLAGS = LFLAGS .. " -stack=20480"
|
2024-05-21 16:55:01 +02:00
|
|
|
LIBS += " ../../develop/ktcc/trunk/bin/lib/tiny.o -nostdlib -lbox_lib -lini -limg"
|
2022-02-18 19:41:31 +01:00
|
|
|
|
2024-05-21 16:45:21 +02:00
|
|
|
tup.rule("Eolite.c", "c-- -coff /D=" .. C_LANG .. " /OPATH=%o %f", "%B.obj")
|
2022-02-18 19:41:31 +01:00
|
|
|
tup.rule("Eolite.obj", "objconv -felf32 %f %o", "%B.o")
|
|
|
|
link_tcc("Eolite.o", "%B.com")
|