nasm requires a slash for include directories. At least its man says so. On some platforms it worked, on some didn't. Maybe old versions of nasm are more strict. Now it should work everywhere. git-svn-id: svn://kolibrios.org@10006 a494cfbc-eb01-0410-851d-a64ba20cac60
35 lines
1.3 KiB
Lua
Executable File
35 lines
1.3 KiB
Lua
Executable File
if tup.getconfig("NO_GCC") ~= "" or tup.getconfig("NO_NASM") ~= "" then return end
|
|
tup.include("../../../../../programs/use_gcc.lua")
|
|
tup.include("../../../../../programs/use_newlib.lua")
|
|
tup.include("../../../../../programs/use_sound.lua")
|
|
INCLUDES = INCLUDES .. " -I. -I../include -Ihermes -Iaudio -Ivideo -Ievents -Ijoystick -Icdrom -Ithread -Itimer -Iendian -Ifile -ISYSCALL/include"
|
|
|
|
CFLAGS = CFLAGS_OPTIMIZE_SPEED
|
|
CFLAGS = CFLAGS .. ' -D_REENTRANT -DPACKAGE=\"SDL\" -DVERSION=\"1.2.2\"'
|
|
CFLAGS = CFLAGS .. ' -DENABLE_AUDIO -UDISABLE_AUDIO -DDISABLE_JOYSTICK'
|
|
CFLAGS = CFLAGS .. ' -DDISABLE_CDROM -DDISABLE_THREADS -DENABLE_TIMERS'
|
|
CFLAGS = CFLAGS .. ' -DUSE_ASMBLIT -DENABLE_KOLIBRIOS -DNO_SIGNAL_H -DDISABLE_STDIO -DNEED_SDL_GETENV'
|
|
CFLAGS = CFLAGS .. ' -DENABLE_FILE -UDISABLE_FILE -D__KOLIBRIOS__ -DDEBUG_VIDEO -UWIN32'
|
|
FOLDERS = {
|
|
"",
|
|
"audio/",
|
|
"endian/",
|
|
"events/",
|
|
"file/",
|
|
"hermes/",
|
|
"joystick/",
|
|
"thread/",
|
|
"timer/",
|
|
"timer/dummy/",
|
|
"video/",
|
|
"video/kolibrios/",
|
|
}
|
|
|
|
for i,v in ipairs(FOLDERS) do
|
|
compile_gcc(v .. "*.c", v .. "%B.o")
|
|
tup.append_table(OBJS,
|
|
tup.foreach_rule(v .. "*.asm", "nasm -f coff -Ihermes/ -o %o %f", v .. "%B.o")
|
|
)
|
|
end
|
|
tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../../lib/libSDLn.a", "../../../lib/<libSDLn>"})
|