Subversion Repositories Kolibri OS

Rev

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

Rev 5226 Rev 5243
Line 1... Line 1...
1
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_GCC") ~= "" then return end
1
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_GCC") ~= "" then return end
-
 
2
-- tup.rule("echo \"#define LANG_" .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. "\" > lang.h", {"lang.h"})
2
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
3
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
3
tup.include(HELPERDIR .. "/use_gcc.lua")
4
tup.include(HELPERDIR .. "/use_gcc.lua")
4
tup.include(HELPERDIR .. "/use_sound.lua")
5
tup.include(HELPERDIR .. "/use_sound.lua")
5
LDFLAGS = LDFLAGS .. " -T kolibri.ld"
6
LDFLAGS = LDFLAGS .. " -T kolibri.ld"
6
tup.append_table(OBJS, tup.rule("start.asm", "fasm %f %o", "start.o"))
7
tup.append_table(OBJS, tup.rule("start.asm", "fasm %f %o", "start.o"))
-
 
8
 
-
 
9
if tup.getconfig("LANG") == "ru"
-
 
10
then C_LANG = "LANG_RU"
-
 
11
 
-
 
12
elseif tup.getconfig("LANG") == "sp"
-
 
13
then C_LANG = "LANG_SP" -- just for example, other languages are not implemented
-
 
14
 
-
 
15
else C_LANG = "LANG_EN" -- default language is English
-
 
16
end
-
 
17
 
-
 
18
CFLAGS = CFLAGS .. " -DRS_KOS -D" .. C_LANG .. " "
-
 
19
 
7
compile_gcc{"system/kolibri.c", "game/rs/rsmicrolibc.c", "game/rs/rsplatform_kos.c", "game/rs/rsmx.c", "game/rsnoise.c", "game/rsgentex.c", "game/rsmain.c",  "game/rsgame.c", "game/rsgamedraw.c", "game/rskos.c", "game/rsgametext.c", "game/rsgamemenu.c"}
20
compile_gcc{ "system/kolibri.c", "game/rs/rsmicrolibc.c", "game/rs/rsplatform_kos.c", "game/rs/rsmx.c", "game/rsnoise.c", "game/rsgentex.c",  "game/rsgame.c", "game/rsgamedraw.c", "game/rskos.c", "game/rsgametext.c", "game/rsgamemenu.c"}
8
link_gcc("heliothryx")
21
link_gcc ("heliothryx")