2014-12-01 12:16:20 +01:00
|
|
|
if tup.getconfig("NO_GCC") ~= "" then return end
|
|
|
|
if tup.getconfig("HELPERDIR") == ""
|
|
|
|
then
|
|
|
|
if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation
|
|
|
|
HELPERDIR = "../../../programs"
|
|
|
|
end
|
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
2021-01-05 18:23:43 +01:00
|
|
|
tup.include(HELPERDIR .. "/use_newlib.lua")
|
|
|
|
tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
|
2014-12-01 12:16:20 +01:00
|
|
|
CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -std=c99 -U_WIN32 -fwhole-program"
|
|
|
|
compile_gcc{"8086tiny.c"}
|
|
|
|
link_gcc("8086tiny")
|