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 .. " -DOGG_MUSIC"
  7.  
  8. INCLUDES = INCLUDES .. " -I../newlib/libc/include/ -I../SDL-1.2.2_newlib/include -I../libogg-1.3.5/include -I.. -I../libvorbis-1.3.7/include "
  9.  
  10. compile_gcc{
  11.     "effect_stereoreverse.c",
  12.     "effect_position.c",
  13.     "effects_internal.c",
  14.     "music.c",
  15.     "mixer.c",
  16.     "load_ogg.c",
  17.     "music_ogg.c",
  18.     "dynamic_ogg.c",
  19.     "wavestream.c",
  20.     "load_aiff.c",
  21.     "load_voc.c",
  22. }
  23. tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libSDL_mixer.a", "../../lib/<libSDL_mixer>"})
  24.