Subversion Repositories Kolibri OS

Rev

Rev 6551 | Rev 8369 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. if tup.getconfig("NO_GCC") ~= "" then return end
  2. HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../programs" or tup.getconfig("HELPERDIR")
  3. tup.include(HELPERDIR .. "/use_gcc.lua")
  4. tup.include(HELPERDIR .. "/use_newlib.lua")
  5. CFLAGS = CFLAGS .. " -UWIN32 -U_WIN32 -U__WIN32__ -DLUA_COMPAT_ALL -DLUA_ANSI"
  6. LDFLAGS = LDFLAGS .. " --disable-runtime-pseudo-reloc"
  7. compile_gcc{
  8.   "lapi.c",
  9.   "lauxlib.c",
  10.   "lbaselib.c",
  11.   "lbitlib.c",
  12.   "lcode.c",
  13.   "lcorolib.c",
  14.   "lctype.c",
  15.   "ldblib.c",
  16.   "ldebug.c",
  17.   "ldo.c",
  18.   "ldump.c",
  19.   "lfunc.c",
  20.   "lgc.c",
  21.   "linit.c",
  22.   "liolib.c",
  23.   "llex.c",
  24.   "lmathlib.c",
  25.   "lmem.c",
  26.   "loadlib.c",
  27.   "lobject.c",
  28.   "lopcodes.c",
  29.   "loslib.c",
  30.   "lparser.c",
  31.   "lstate.c",
  32.   "lstring.c",
  33.   "lstrlib.c",
  34.   "ltable.c",
  35.   "ltablib.c",
  36.   "ltm.c",
  37.   "lua.c",
  38.   "lundump.c",
  39.   "lvm.c",
  40.   "lzio.c",
  41.   "kolibri.c"
  42. }
  43. link_gcc("lua")
  44.