2014-12-08 19:32:05 +01:00
|
|
|
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("NO_GCC") ~= "" then return end
|
2014-12-19 18:29:02 +01:00
|
|
|
-- tup.rule("echo \"#define LANG_" .. ((tup.getconfig("LANG") == "") and "en" or tup.getconfig("LANG")) .. "\" > lang.h", {"lang.h"})
|
2014-12-08 19:32:05 +01:00
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
|
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
|
|
|
tup.include(HELPERDIR .. "/use_sound.lua")
|
|
|
|
LDFLAGS = LDFLAGS .. " -T kolibri.ld"
|
|
|
|
tup.append_table(OBJS, tup.rule("start.asm", "fasm %f %o", "start.o"))
|
2014-12-19 18:29:02 +01:00
|
|
|
|
2024-06-02 05:51:22 +02:00
|
|
|
if tup.getconfig("LANG") == "ru_RU"
|
2014-12-19 18:29:02 +01:00
|
|
|
then C_LANG = "LANG_RU"
|
|
|
|
|
2024-06-02 05:51:22 +02:00
|
|
|
elseif tup.getconfig("LANG") == "es_ES"
|
2014-12-19 18:29:02 +01:00
|
|
|
then C_LANG = "LANG_SP" -- just for example, other languages are not implemented
|
|
|
|
|
|
|
|
else C_LANG = "LANG_EN" -- default language is English
|
|
|
|
end
|
|
|
|
|
2014-12-30 19:04:09 +01:00
|
|
|
CFLAGS = CFLAGS .. " -Werror=implicit -DRS_KOS -D" .. C_LANG .. " "
|
2014-12-19 18:29:02 +01:00
|
|
|
|
2014-12-30 19:04:09 +01:00
|
|
|
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/rssoundgen.c", "game/rsgame.c", "game/rsgamedraw.c", "game/rsgamelogic.c", "game/rskos.c", "game/rsgametext.c", "game/rsgamemenu.c"}
|
2014-12-19 18:29:02 +01:00
|
|
|
link_gcc ("heliothryx")
|