Rev 5203 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5203 | Rev 8523 | ||
---|---|---|---|
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 |
4 | if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation |
5 | HELPERDIR = "../../../programs" |
5 | HELPERDIR = "../../../programs" |
6 | end |
6 | end |
7 | tup.include(HELPERDIR .. "/use_gcc.lua") |
7 | tup.include(HELPERDIR .. "/use_gcc.lua") |
8 | tup.include(HELPERDIR .. "/use_menuetlibc.lua") |
8 | tup.include(HELPERDIR .. "/use_newlib.lua") |
9 | tup.include(HELPERDIR .. "/use_sdl.lua") |
9 | tup.include(HELPERDIR .. "/use_sdl_newlib.lua") |
10 | CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -std=c99 -U_WIN32 -fwhole-program" |
10 | CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -std=c99 -U_WIN32 -fwhole-program" |
11 | compile_gcc{"8086tiny.c"} |
11 | compile_gcc{"8086tiny.c"} |
12 | link_gcc("8086tiny") |
12 | link_gcc("8086tiny") |