kolibrios/programs/use_menuetlibc.lua
Ivan Baravy e9e08c56b6 Update Tupfile.lua's for tup-0.8
git-svn-id: svn://kolibrios.org@10042 a494cfbc-eb01-0410-851d-a64ba20cac60
2024-05-21 14:45:21 +00:00

14 lines
631 B
Lua

MELIBC_CWD = tup.getcwd() .. "/develop/libraries/menuetlibc"
MELIBC_VAR = tup.getvariantdir() .. "/develop/libraries/menuetlibc"
INCLUDES = INCLUDES .. " -I" .. MELIBC_CWD .. "/include"
STARTUP = MELIBC_VAR .. "/stub/crt0.o"
CFLAGS_c = " -fgnu89-inline"
LDFLAGS = LDFLAGS .. " -T" .. MELIBC_CWD .. "/include/scripts/menuetos_app_v01.ld -L" .. MELIBC_VAR .. "/lib"
tup.append_table(LIBDEPS, {MELIBC_VAR .. "/<libc>", MELIBC_VAR .. "/<libm>", MELIBC_VAR .. "/<libcpp>"})
LIBS = LIBS .. " -L" .. tup.getvariantdir() .. " -lcpp -lm -lc"
function use_dynamic_stack()
STARTUP = MELIBC_VAR .. "/stub/crt0_dynstack.o"
end