Subversion Repositories Kolibri OS

Rev

Rev 9667 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. TCC = "kos32-tcc -B" .. tup.getcwd().. "/develop/ktcc/trunk/bin"
  2.  
  3. CFLAGS = "-I" .. tup.getcwd().. "/develop/ktcc/trunk/libc.obj/include "
  4. LFLAGS = ""
  5. LIBS = ""
  6.  
  7. OBJS = {}
  8.  
  9. function compile_tcc(input, output)
  10.   if not output then output = '%B.o' end
  11.   tup.append_table(OBJS,
  12.         tup.foreach_rule(input, TCC .. " -c " .. CFLAGS .. " %f -o %o", output)
  13.   )
  14. end
  15.  
  16. function link_tcc(input, output)
  17.   if not output then input,output = OBJS,input end
  18.   tup.rule(input, TCC .. " " .. CFLAGS .. " " .. LFLAGS .. " %f -o %o " .. LIBS .. " " .. tup.getconfig("KPACK_CMD"), output)
  19. end
  20.