2024-05-21 16:45:21 +02:00
|
|
|
MELIBC_CWD = tup.getcwd() .. "/develop/libraries/menuetlibc"
|
|
|
|
MELIBC_VAR = tup.getvariantdir() .. "/develop/libraries/menuetlibc"
|
2014-09-12 17:15:23 +02:00
|
|
|
|
2024-05-21 16:45:21 +02:00
|
|
|
INCLUDES = INCLUDES .. " -I" .. MELIBC_CWD .. "/include"
|
|
|
|
STARTUP = MELIBC_VAR .. "/stub/crt0.o"
|
2017-11-18 04:24:17 +01:00
|
|
|
CFLAGS_c = " -fgnu89-inline"
|
2024-05-21 16:45:21 +02:00
|
|
|
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"
|
2014-09-18 13:46:53 +02:00
|
|
|
|
|
|
|
function use_dynamic_stack()
|
2024-05-21 16:45:21 +02:00
|
|
|
STARTUP = MELIBC_VAR .. "/stub/crt0_dynstack.o"
|
2014-09-18 13:46:53 +02:00
|
|
|
end
|