2020-06-09 20:16:54 +02:00
|
|
|
if tup.getconfig("NO_GCC") ~= "" then return end
|
|
|
|
if tup.getconfig("HELPERDIR") == ""
|
|
|
|
then
|
2020-06-09 20:18:43 +02:00
|
|
|
HELPERDIR = "../../../programs"
|
2020-06-09 20:16:54 +02:00
|
|
|
end
|
|
|
|
tup.include(HELPERDIR .. "/use_gcc.lua")
|
2020-06-09 21:36:34 +02:00
|
|
|
NEWLIB_INCLUDE = "../../sdk/sources/newlib/libc/include"
|
|
|
|
INCLUDES = INCLUDES .. " -I" .. NEWLIB_INCLUDE
|
2020-06-09 22:02:49 +02:00
|
|
|
CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -nostdlib -fwhole-program"
|
|
|
|
compile_gcc("minimp3.c", "minimp3.obj")
|