Subversion Repositories Kolibri OS

Rev

Rev 8832 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8832 Rev 9624
Line 1... Line 1...
1
if tup.getconfig("NO_TCC") ~= "" then return end
1
if tup.getconfig("NO_TCC") ~= "" then return end
-
 
2
if tup.getconfig("HELPERDIR") == ""
2
 
3
then
3
TCC="kos32-tcc"
-
 
4
CFLAGS  = "-I../../develop/ktcc/trunk/libc.obj/include"
4
  HELPERDIR = "../../../programs"
-
 
5
end
5
LDFLAGS = "-nostdlib ../../develop/ktcc/trunk/bin/lib/crt0.o -L../../develop/ktcc/trunk/bin/lib"
6
tup.include(HELPERDIR .. "/use_tcc.lua")
Line 6... Line 7...
6
 
7
 
7
if tup.getconfig("LANG") == "ru"
8
if tup.getconfig("LANG") == "ru"
8
then C_LANG = "LANG_RUS"
9
then C_LANG = "LANG_RUS"
9
else C_LANG = "LANG_ENG" -- this includes default case without config
10
else C_LANG = "LANG_ENG" -- this includes default case without config
Line 14... Line 15...
14
then tup.rule('echo #define ' .. C_LANG .. ' 1 > %o', {"lang.h"})
15
then tup.rule('echo #define ' .. C_LANG .. ' 1 > %o', {"lang.h"})
15
-- on unix '#' should be escaped
16
-- on unix '#' should be escaped
16
else tup.rule('echo "#define" ' .. C_LANG .. ' 1 > %o', {"lang.h"})
17
else tup.rule('echo "#define" ' .. C_LANG .. ' 1 > %o', {"lang.h"})
17
end
18
end
Line 18... Line 19...
18
 
19
 
19
LIBS = "-ltcc -lc.obj"
-
 
Line 20... Line -...
20
COMMAND=string.format("%s %s %s %s %s", TCC, CFLAGS, LDFLAGS , "%f -o %o",  LIBS)
-
 
21
 
20
LIBS = ""
-
 
21