Subversion Repositories Kolibri OS

Rev

Rev 9770 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. if tup.getconfig("NO_GCC") ~= "" then return end
  2. if tup.getconfig("HELPERDIR") == ""
  3. then
  4.   if tup.getconfig("NO_NASM") == "full" then return end -- required for SDL compilation
  5.   HELPERDIR = "../../../programs"
  6. end
  7. tup.include(HELPERDIR .. "/use_gcc.lua")
  8. tup.include(HELPERDIR .. "/use_newlib.lua")
  9. --use_dynamic_stack() -- default 64K are not sufficient
  10. tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
  11. CFLAGS = CFLAGS  .. [[ -DTYRIAN_DIR="\"."\" -D_GNU_SOURCE=1 -D_REENTRANT -DNDEBUG -Wno-missing-field-initializers ]]
  12.  
  13. LDFLAGS = LDFLAGS .. " --subsystem native"
  14.  
  15. -- Game src files --
  16. compile_gcc{
  17.         "./src/scroller.c",
  18.         "./src/config.c",
  19.         "./src/game_menu.c",
  20.         "./src/file.c",
  21.         "./src/opentyr.c",
  22.         "./src/sndmast.c",
  23.         "./src/sizebuf.c",
  24.         "./src/video_scale.c",
  25.         "./src/loudness.c",
  26.         "./src/palette.c",
  27.         "./src/joystick.c",
  28.         "./src/lds_play.c",
  29.         "./src/font.c",
  30.         "./src/config_file.c",
  31.         "./src/network.c",
  32.         "./src/helptext.c",
  33.         "./src/xmas.c",
  34.         "./src/keyboard.c",
  35.         "./src/jukebox.c",
  36.         "./src/picload.c",
  37.         "./src/shots.c",
  38.         "./src/setup.c",
  39.         "./src/mouse.c",
  40.         "./src/musmast.c",
  41.         "./src/nortvars.c",
  42.         "./src/backgrnd.c",
  43.         "./src/destruct.c",
  44.         "./src/lvllib.c",
  45.         "./src/video_scale_hqNx.c",
  46.         "./src/std_support.c",
  47.         "./src/mtrand.c",
  48.         "./src/sprite.c",
  49.         "./src/episodes.c",
  50.         "./src/arg_parse.c",
  51.         "./src/opl.c",
  52.         "./src/video.c",
  53.         "./src/editship.c",
  54.         "./src/vga_palette.c",
  55.         "./src/pcxload.c",
  56.         "./src/fonthand.c",
  57.         "./src/mainint.c",
  58.         "./src/tyrian2.c",
  59.         "./src/lvlmast.c",
  60.         "./src/animlib.c",
  61.         "./src/pcxmast.c",
  62.         "./src/menus.c",
  63.         "./src/starlib.c",
  64.         "./src/player.c",
  65.         "./src/nortsong.c",
  66.         "./src/vga256d.c",
  67.         "./src/varz.c",
  68.         "./src/params.c",
  69.         "./SDL/joystick_stub.c",
  70.         "./SDL/SDL_wave.c",
  71.         "./SDL/SDL_audiocvt.c",
  72. }
  73.  
  74. link_gcc("opentyrian")
  75.