Subversion Repositories Kolibri OS

Rev

Rev 9618 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9618 Rev 9657
Line 1... Line 1...
1
if tup.getconfig("NO_TCC") ~= "" then return end
1
if tup.getconfig("NO_TCC") ~= "" then return end
-
 
2
if tup.getconfig("HELPERDIR") == ""
-
 
3
then
-
 
4
  HELPERDIR = "../../../../programs"
-
 
5
end
-
 
6
tup.include(HELPERDIR .. "/use_tcc.lua")
Line 2... Line -...
2
 
-
 
3
TCC="kos32-tcc"
-
 
4
CFLAGS  = "-I../../../develop/ktcc/trunk/libc.obj/include"
-
 
5
LDFLAGS = "-nostdlib ../../../develop/ktcc/trunk/bin/lib/crt0.o -L../../../develop/ktcc/trunk/bin/lib"
-
 
6
LIBS = "-ltcc -lc.obj"
-
 
7
 
-
 
8
COMMAND=string.format("%s %s %s %s %s", TCC, CFLAGS, LDFLAGS , "%f -o %o",  LIBS)
-
 
9
 
-
 
10
tup.rule({"main.c"}, COMMAND .. tup.getconfig("KPACK_CMD"), "kmatrix")
7
 
-
 
8
link_tcc("main.c", "kmatrix");