forked from KolibriOS/kolibrios
56dde6f46d
git-svn-id: svn://kolibrios.org@8469 a494cfbc-eb01-0410-851d-a64ba20cac60
15 lines
412 B
Lua
Executable File
15 lines
412 B
Lua
Executable File
if tup.getconfig("NO_GCC") ~= "" then return end
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR")
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
|
tup.include(HELPERDIR .. "/use_newlib.lua")
|
|
|
|
if tup.getconfig("LANG") == "ru"
|
|
then CFLAGS = CFLAGS .. " -Dlang_ru"
|
|
else CFLAGS = CFLAGS .. " -Dlang_en"
|
|
end
|
|
|
|
CFLAGS = CFLAGS .. " -std=c99"
|
|
|
|
compile_gcc{"Backy.c"}
|
|
link_gcc("Backy")
|