Rev 6381 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6381 | Rev 6386 | ||
---|---|---|---|
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' |
11 | FOLDERS = { |
11 | FOLDERS = { |
12 | "", |
12 | "", |
13 | "audio/", |
13 | "audio/", |
14 | "endian/", |
14 | "endian/", |
15 | "events/", |
15 | "events/", |
16 | "file/", |
16 | "file/", |
17 | "hermes/", |
17 | "hermes/", |
18 | "joystick/", |
18 | "joystick/", |
19 | "thread/", |
19 | "thread/", |
20 | "timer/", |
20 | "timer/", |
21 | "timer/dummy/", |
21 | "timer/dummy/", |
22 | "video/", |
22 | "video/", |
23 | "video/menuetos/", |
23 | "video/menuetos/", |
24 | } |
24 | } |
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 |
32 | tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../../lib/libSDL.a", "../../../lib/ |
32 | tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../../lib/libSDL.a", "../../../lib/ |