Subversion Repositories Kolibri OS

Rev

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

  1. if tup.getconfig("NO_GCC") ~= "" or tup.getconfig("NO_NASM") ~= "" then return end
  2. tup.include("../../../../../programs/use_gcc.lua")
  3. tup.include("../../../../../programs/use_newlib.lua")
  4. tup.include("../../../../../programs/use_sound.lua")
  5. INCLUDES = INCLUDES .. " -I. -I../include -I../../newlib/libc/include/ -Ihermes -Iaudio -Ivideo -Ievents -Ijoystick -Icdrom -Ithread -Itimer -Iendian -Ifile"
  6. CFLAGS = CFLAGS .. ' -D_REENTRANT -DPACKAGE=\"SDL\" -DVERSION=\"1.2.2\"'
  7. CFLAGS = CFLAGS .. ' -DENABLE_AUDIO -UDISABLE_AUDIO -DDISABLE_JOYSTICK'
  8. CFLAGS = CFLAGS .. ' -DDISABLE_CDROM -DDISABLE_THREADS -DENABLE_TIMERS'
  9. CFLAGS = CFLAGS .. ' -DUSE_ASMBLIT -DENABLE_MENUETOS -DNO_SIGNAL_H -DDISABLE_STDIO -DNEED_SDL_GETENV'
  10. CFLAGS = CFLAGS .. ' -DENABLE_FILE -UDISABLE_FILE -D__MENUETOS__ -DDEBUG_VIDEO -UWIN32'
  11. FOLDERS = {
  12.   "",
  13.   "audio/",
  14.   "endian/",
  15.   "events/",
  16.   "file/",
  17.   "hermes/",
  18.   "joystick/",
  19.   "thread/",
  20.   "timer/",
  21.   "timer/dummy/",
  22.   "video/",
  23.   "video/menuetos/",
  24. }
  25.  
  26. for i,v in ipairs(FOLDERS) do
  27.   compile_gcc(v .. "*.c", v .. "%B.o")
  28.   tup.append_table(OBJS,
  29.     tup.foreach_rule(v .. "*.asm", "nasm -f win32 -o %o %f", v .. "%B.o")
  30.   )
  31. end
  32. tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../../lib/libSDL.a", "../../../lib/<libSDL>"})
  33.