Subversion Repositories Kolibri OS

Rev

Rev 5124 | 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.  
  6. if tup.getconfig("LANG") == "ru"
  7. then C_LANG = "LANG_RUS"
  8. else C_LANG = "LANG_ENG" -- this includes default case without config
  9. end
  10. LIBS = "-lsupc++ -lstdc++ " .. LIBS
  11. LDFLAGS = LDFLAGS .. " --subsystem native"
  12. CFLAGS = CFLAGS .. " -D_KOLIBRI -DAUTOBUILD -D" .. C_LANG .. " -DNO_FILES -fwhole-program"
  13.  
  14. compile_gcc{"checkers.cpp"}
  15. link_gcc("checkers")
  16.