Rev 9288 | Rev 9789 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8495 | maxcodehac | 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") |
||
9288 | turbocat | 5 | INCLUDES = INCLUDES .. " -I. -I../include -Ihermes -Iaudio -Ivideo -Ievents -Ijoystick -Icdrom -Ithread -Itimer -Iendian -Ifile -ISYSCALL/include" |
8495 | maxcodehac | 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_KOLIBRIOS -DNO_SIGNAL_H -DDISABLE_STDIO -DNEED_SDL_GETENV' |
||
10 | CFLAGS = CFLAGS .. ' -DENABLE_FILE -UDISABLE_FILE -D__KOLIBRIOS__ -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/", |
||
9787 | turbocat | 23 | "video/kolibrios/", |
9288 | turbocat | 24 | "SYSCALL/src/" |
8495 | maxcodehac | 25 | } |
26 | |||
27 | for i,v in ipairs(FOLDERS) do |
||
28 | compile_gcc(v .. "*.c", v .. "%B.o") |
||
29 | tup.append_table(OBJS, |
||
9288 | turbocat | 30 | tup.foreach_rule(v .. "*.asm", "nasm -f coff -Ihermes -o %o %f", v .. "%B.o") |
8495 | maxcodehac | 31 | ) |
32 | end |
||
33 | tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../../lib/libSDLn.a", "../../../lib/ |