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