forked from KolibriOS/kolibrios
Implement autobuild for(this libs in [`programs/develop/ktcc/bin/lib/`](https://git.kolibrios.org/KolibriOS/kolibrios/src/branch/main/programs/develop/ktcc/bin/lib)): + `crt0.o` + `libtcc1.a` + `tiny.o` + `libshell.a` + `libcryptal.a` + `libsound.a` it autobuild for kolibrios image and programs build. `link_tcc` automatically add this libs to `extra_inputs` roots of this grow from #311 --------- Co-authored-by: Burer <burer@kolibrios.org> Reviewed-on: KolibriOS/kolibrios#339 Reviewed-by: Burer <burer@kolibrios.org> Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com> Co-authored-by: Егор <y.yarin@inbox.ru> Co-committed-by: Егор <y.yarin@inbox.ru>
24 lines
558 B
Lua
24 lines
558 B
Lua
if tup.getconfig("NO_TCC") ~= "" then return end
|
|
|
|
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../.." or tup.getconfig("HELPERDIR")
|
|
tup.include(HELPERDIR .. "/use_tcc.lua")
|
|
|
|
LIBC_INCLUDE = "../../libc.obj/include"
|
|
|
|
CFLAGS += "-c -I. -I" .. LIBC_INCLUDE
|
|
|
|
SOURCES = {
|
|
"*.c",
|
|
extra_inputs = {
|
|
"memory.h",
|
|
LIBC_INCLUDE .. "/cryptal/*",
|
|
LIBC_INCLUDE .. "/string.h",
|
|
LIBC_INCLUDE .. "/stdlib.h",
|
|
LIBC_INCLUDE .. "/stdio.h",
|
|
}
|
|
}
|
|
|
|
compile_tcc(SOURCES)
|
|
|
|
tup.rule(OBJS, "ar -rcs %o %f", "libcryptal.a")
|