kolibrios-gitea/programs/games/fridge/Tupfile.lua
Ivan Baravy 8f444289e0 Trigger tup-0.8 autobuild (minor Tupfile.lua changes)
git-svn-id: svn://kolibrios.org@10043 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-21 14:55:01 +00:00

17 lines
597 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")
-- C_Layer
CFLAGS = CFLAGS .. " -std=c99 -Wall -Wextra"
INCLUDES = INCLUDES .. " -I../../../contrib/C_Layer/INCLUDE"
table.insert(LIBDEPS, "../../../contrib/C_Layer/OBJ/<C_Layer>")
LIBS += " " .. tup.getvariantdir() .. "/../../../contrib/C_Layer/OBJ/loadlibimg.o "
-- Subsystem native
LDFLAGS = LDFLAGS .. " --subsystem native"
compile_gcc{"fridge.c"}
link_gcc("fridge")