Subversion Repositories Kolibri OS

Rev

Go to most recent revision | 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_menuetlibc.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. CFLAGS = CFLAGS .. " -D_KOLIBRI -DAUTOBUILD -D" .. C_LANG .. " -DNO_FILES -fwhole-program"
  11.  
  12. compile_gcc{"checkers.cpp"}
  13. link_gcc("checkers")
  14.