Subversion Repositories Kolibri OS

Rev

Rev 8495 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  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")
  5. tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
  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")
  14.