Subversion Repositories Kolibri OS

Rev

Blame | 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.  
  6. CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -DHAVE_CONFIG "
  7.  
  8. INCLUDES = INCLUDES .. " -Iinclude -I../libogg-1.3.5/include -Ilib "
  9.  
  10. compile_gcc{
  11.     "lib/block.c",
  12.     "lib/sharedbook.c",
  13.     "lib/vorbisenc.c",
  14.     "lib/info.c",
  15.     "lib/registry.c",
  16.     "lib/psy.c",
  17.     "lib/window.c",
  18.     "lib/lpc.c",
  19.     "lib/tone.c",
  20.     "lib/smallft.c",
  21.     "lib/barkmel.c",
  22.     "lib/mdct.c",
  23.     "lib/bitrate.c",
  24.     "lib/analysis.c",
  25.     "lib/vorbisfile.c",
  26.     "lib/res0.c",
  27.     "lib/lookup.c",
  28.     "lib/lsp.c",
  29.     "lib/floor1.c",
  30.     "lib/floor0.c",
  31.     "lib/codebook.c",
  32.     "lib/envelope.c",
  33.     "lib/mapping0.c",
  34.     "lib/synthesis.c"
  35. }
  36. tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libvorbis.a", "../../lib/<libvorbis>"})
  37.