Rev 9099 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9099 | Rev 9797 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | if tup.getconfig("NO_GCC") ~= "" then return end |
1 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | if tup.getconfig("HELPERDIR") == "" |
2 | if tup.getconfig("HELPERDIR") == "" |
3 | then |
3 | then |
4 | if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation |
- | |
5 | HELPERDIR = "../../programs" |
4 | HELPERDIR = "../../programs" |
6 | end |
5 | end |
7 | tup.include(HELPERDIR .. "/use_gcc.lua") |
6 | tup.include(HELPERDIR .. "/use_gcc.lua") |
Line 8... | Line 7... | ||
8 | 7 | ||
Line 71... | Line 70... | ||
71 | "string/strrchr.S", |
70 | "string/strrchr.S", |
72 | "debug/chkstk.S" |
71 | "debug/chkstk.S" |
73 | } |
72 | } |
Line 74... | Line 73... | ||
74 | 73 | ||
75 | compile_gcc(DDK_SRC) |
74 | compile_gcc(DDK_SRC) |
76 | tup.rule(OBJS, "kos32-ar -crs %o %f", "libddk.a"); |
75 | tup.rule(OBJS, "kos32-ar -crs %o %f", {"libddk.a", extra_outputs={" |
77 | tup.rule("core.S", "kos32-as %f -o %o", "core.o"); |
76 | tup.rule("core.S", "kos32-as %f -o %o", "core.o"); |
78 | tup.rule("core.o", "kos32-ld -shared -s --out-implib %o --output-def core.def -o core.dll %f", {"libcore.a", extra_outputs={"core.def", "core.dll"}}); |
- | |
79 | - | ||
80 | - |