2020-12-29 15:32:46 +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")
|
2021-01-06 14:31:58 +01:00
|
|
|
tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
|
2020-12-29 15:32:46 +01:00
|
|
|
|
|
|
|
CFLAGS = CFLAGS .. " -std=c99"
|
|
|
|
|
|
|
|
-- Subsystem native
|
|
|
|
LDFLAGS = LDFLAGS .. " --subsystem native"
|
|
|
|
|
|
|
|
compile_gcc{"SDLTest.c"}
|
|
|
|
link_gcc("SDLTest")
|