2014-09-12 19:15:23 +04:00
|
|
|
MELIBC = tup.getcwd() .. "/develop/libraries/menuetlibc"
|
|
|
|
|
|
|
|
INCLUDES = INCLUDES .. " -I" .. MELIBC .. "/include"
|
2014-09-18 15:46:53 +04:00
|
|
|
STARTUP = MELIBC .. "/stub/crt0.o"
|
2017-11-18 06:24:17 +03:00
|
|
|
CFLAGS_c = " -fgnu89-inline"
|
2014-09-18 15:46:53 +04:00
|
|
|
LDFLAGS = LDFLAGS .. string.gsub(" -T$/include/scripts/menuetos_app_v01.ld -L$/lib", "%$", MELIBC)
|
|
|
|
tup.append_table(LIBDEPS, {MELIBC .. "/<libc>", MELIBC .. "/<libm>", MELIBC .. "/<libcpp>"})
|
2014-09-12 19:15:23 +04:00
|
|
|
LIBS = LIBS .. " -lcpp -lm -lc"
|
2014-09-18 15:46:53 +04:00
|
|
|
|
|
|
|
function use_dynamic_stack()
|
|
|
|
STARTUP = MELIBC .. "/stub/crt0_dynstack.o"
|
|
|
|
end
|