Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
5124 clevermous 1
if tup.getconfig("NO_GCC") ~= "" then return end
2
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
3
tup.include(HELPERDIR .. "/use_gcc.lua")
8501 maxcodehac 4
tup.include(HELPERDIR .. "/use_newlib.lua")
5124 clevermous 5
 
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
8501 maxcodehac 10
LIBS = "-lsupc++ -lstdc++ " .. LIBS
11
LDFLAGS = LDFLAGS .. " --subsystem native"
5124 clevermous 12
CFLAGS = CFLAGS .. " -D_KOLIBRI -DAUTOBUILD -D" .. C_LANG .. " -DNO_FILES -fwhole-program"
13
 
14
compile_gcc{"checkers.cpp"}
15
link_gcc("checkers")