Subversion Repositories Kolibri OS

Rev

Rev 8949 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5098 clevermous 1
if tup.getconfig("NO_CMM") ~= "" then return end
9719 Coldy 2
if tup.getconfig("NO_TCC") ~= "" then return end
3
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
4
tup.include(HELPERDIR .. "/use_tcc.lua")
5
 
5098 clevermous 6
if tup.getconfig("LANG") == "ru"
7
then C_LANG = "LANG_RUS"
8
else C_LANG = "LANG_ENG" -- this includes default case without config
9
end
9719 Coldy 10
 
11
LFLAGS = LFLAGS .. " -stack=20480"
12
LIBS = LIBS .. " ../../develop/ktcc/trunk/bin/lib/tiny.o -nostdlib -lbox_lib -lini -limg"
13
 
14
tup.rule("Eolite.c", "c-- -coff /D=" .. C_LANG .. " %f %o", "%B.obj")
15
tup.rule("Eolite.obj", "objconv -felf32 %f %o", "%B.o")
16
link_tcc("Eolite.o", "%B.com")