2020-12-02 08:02:45 +01:00
|
|
|
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
|
2020-12-03 18:48:03 +01:00
|
|
|
CFLAGS = CFLAGS .. " -std=c99 -Wall -Wextra"
|
|
|
|
INCLUDES = INCLUDES .. " -I../../../contrib/C_Layer/INCLUDE"
|
|
|
|
table.insert(LIBDEPS, "../../../contrib/C_Layer/OBJ/<C_Layer>")
|
2024-05-21 16:45:21 +02:00
|
|
|
LIBS = LIBS .. " " .. tup.getvariantdir() .. "/../../../contrib/C_Layer/OBJ/loadlibimg.o "
|
2020-12-02 08:02:45 +01:00
|
|
|
|
2020-12-12 17:49:35 +01:00
|
|
|
-- Subsystem native
|
|
|
|
LDFLAGS = LDFLAGS .. " --subsystem native"
|
|
|
|
|
2020-12-02 08:02:45 +01:00
|
|
|
compile_gcc{"fridge.c"}
|
|
|
|
link_gcc("fridge")
|