Subversion Repositories Kolibri OS

Rev

Rev 6381 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6381 Rev 6386
Line 1... Line 1...
1
if tup.getconfig("NO_GCC") ~= "" or tup.getconfig("NO_NASM") ~= "" then return end
1
if tup.getconfig("NO_GCC") ~= "" or tup.getconfig("NO_NASM") ~= "" then return end
2
tup.include("../../../../../programs/use_gcc.lua")
2
tup.include("../../../../../programs/use_gcc.lua")
3
tup.include("../../../../../programs/use_newlib.lua")
3
tup.include("../../../../../programs/use_menuetlibc.lua")
4
tup.include("../../../../../programs/use_sound.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"
5
INCLUDES = INCLUDES .. " -I. -I../include -Ihermes -Iaudio -Ivideo -Ievents -Ijoystick -Icdrom -Ithread -Itimer -Iendian -Ifile"
6
CFLAGS = CFLAGS .. ' -D_REENTRANT -DPACKAGE=\"SDL\" -DVERSION=\"1.2.2\"'
6
CFLAGS = CFLAGS .. ' -D_REENTRANT -DPACKAGE=\"SDL\" -DVERSION=\"1.2.2\"'
7
CFLAGS = CFLAGS .. ' -DENABLE_AUDIO -UDISABLE_AUDIO -DDISABLE_JOYSTICK'
7
CFLAGS = CFLAGS .. ' -DENABLE_AUDIO -UDISABLE_AUDIO -DDISABLE_JOYSTICK'
8
CFLAGS = CFLAGS .. ' -DDISABLE_CDROM -DDISABLE_THREADS -DENABLE_TIMERS'
8
CFLAGS = CFLAGS .. ' -DDISABLE_CDROM -DDISABLE_THREADS -DENABLE_TIMERS'
9
CFLAGS = CFLAGS .. ' -DUSE_ASMBLIT -DENABLE_MENUETOS -DNO_SIGNAL_H -DDISABLE_STDIO -DNEED_SDL_GETENV'
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'
10
CFLAGS = CFLAGS .. ' -DENABLE_FILE -UDISABLE_FILE -D__MENUETOS__ -DDEBUG_VIDEO -UWIN32'
Line 24... Line 24...
24
}
24
}
Line 25... Line 25...
25
 
25
 
26
for i,v in ipairs(FOLDERS) do
26
for i,v in ipairs(FOLDERS) do
27
  compile_gcc(v .. "*.c", v .. "%B.o")
27
  compile_gcc(v .. "*.c", v .. "%B.o")
28
  tup.append_table(OBJS,
28
  tup.append_table(OBJS,
29
    tup.foreach_rule(v .. "*.asm", "nasm -f win32 -o %o %f", v .. "%B.o")
29
    tup.foreach_rule(v .. "*.asm", "nasm -f coff -o %o %f", v .. "%B.o")
30
  )
30
  )
31
end
31
end