Rev 8495 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8495 | maxcodehac | 1 | if tup.getconfig("NO_GCC") ~= "" then return end |
2 | HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR") |
||
3 | tup.include(HELPERDIR .. "/use_gcc.lua") |
||
4 | tup.include(HELPERDIR .. "/use_newlib.lua") |
||
8524 | maxcodehac | 5 | tup.include(HELPERDIR .. "/use_sdl_newlib.lua") |
8495 | maxcodehac | 6 | |
7 | CFLAGS = CFLAGS .. " -std=c99" |
||
8 | |||
9 | -- Subsystem native |
||
10 | LDFLAGS = LDFLAGS .. " --subsystem native" |
||
11 | |||
12 | compile_gcc{"SDLTest.c"} |
||
13 | link_gcc("SDLTest") |