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")
|
|
|
|
|
2020-12-02 08:10:29 +01:00
|
|
|
CFLAGS = "-c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -std=c99"
|
2020-12-02 08:09:19 +01:00
|
|
|
|
2020-12-02 08:02:45 +01:00
|
|
|
-- C_Layer
|
2020-12-02 08:09:19 +01:00
|
|
|
CFLAGS = CFLAGS .. " -I ../../../contrib/C_Layer/INCLUDE"
|
2020-12-02 08:02:45 +01:00
|
|
|
LDFLAGS = LDFLAGS .. " ../../../contrib/C_Layer/OBJ/loadlibimg.obj"
|
|
|
|
|
|
|
|
compile_gcc{"fridge.c"}
|
|
|
|
link_gcc("fridge")
|