mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-26 10:49:37 +03:00
143be8c69e
git-svn-id: svn://kolibrios.org@9696 a494cfbc-eb01-0410-851d-a64ba20cac60
20 lines
597 B
Lua
20 lines
597 B
Lua
TCC = "kos32-tcc -B" .. tup.getcwd().. "/develop/ktcc/trunk/bin"
|
|
|
|
CFLAGS = "-I" .. tup.getcwd().. "/develop/ktcc/trunk/libc.obj/include "
|
|
LFLAGS = ""
|
|
LIBS = ""
|
|
|
|
OBJS = {}
|
|
|
|
function compile_tcc(input, output)
|
|
if not output then output = '%B.o' end
|
|
tup.append_table(OBJS,
|
|
tup.foreach_rule(input, TCC .. " -c " .. CFLAGS .. " %f -o %o", output)
|
|
)
|
|
end
|
|
|
|
function link_tcc(input, output)
|
|
if not output then input,output = OBJS,input end
|
|
tup.rule(input, TCC .. " " .. CFLAGS .. " " .. LFLAGS .. " %f -o %o " .. LIBS .. " " .. tup.getconfig("KPACK_CMD"), output)
|
|
end
|