Subversion Repositories Kolibri OS

Rev

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

  1. if tup.getconfig("NO_GCC") ~= "" then return end
  2. if tup.getconfig("HELPERDIR") == ""
  3. then
  4.   if tup.getconfig("NO_NASM") ~= "" then return end
  5.   HELPERDIR = "../../"
  6. end
  7. tup.include(HELPERDIR .. "/use_gcc.lua")
  8. tup.include(HELPERDIR .. "/use_newlib.lua")
  9. tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
  10.  
  11. CFLAGS = CFLAGS_OPTIMIZE_SPEED
  12. LDFLAGS = LDFLAGS .. " --subsystem native"
  13. INCLUDES = INCLUDES .. " -Isdl -I. -Iscale2x"
  14.  
  15. compile_gcc {
  16.   "romload.c",
  17.   "ckvp.c",
  18.   "system.c",
  19.   "fm.c",
  20.   "decode.c",
  21.   "main.cpp",
  22.   "joystick.cpp",
  23.   "mdfr.cpp",
  24.   "rc.cpp",
  25.   "myfm.cpp",
  26.   "graph.cpp",
  27.   "md.cpp",
  28.   "mem.cpp",
  29.   "ras.cpp",
  30.   "vdp.cpp",
  31.   "save.cpp",
  32.   "getopt.c",
  33.   "sn76496.c",
  34.   "cpp_dep.cpp"
  35. }
  36.  
  37. compile_gcc {
  38.   "sdl/font.cpp",
  39.   "sdl/dgenfont_8x13.cpp",
  40.   "sdl/sdl.cpp",
  41.   "sdl/dgenfont_16x26.cpp",
  42.   "sdl/dgenfont_7x5.cpp",
  43.   "sdl/prompt.c"
  44. }
  45.  
  46. compile_gcc {
  47.   "scale2x/scalebit.c",
  48.   "scale2x/scale2x.c",
  49.   "scale2x/scale3x.c"
  50. }
  51.  
  52. compile_gcc {
  53.   "cz80/cz80.c"
  54. }
  55.  
  56. compile_gcc {
  57.   "musa/m68kcpu.c",
  58.   "musa/m68kops.c"
  59. }
  60.  
  61. ASM_SRC = {"x86_memcpy.asm", "x86_ctv.asm", "x86_mmx_memcpy.asm", "x86_tiles.asm", "mz80/x86-mz80.asm", "star/starcpu.asm"}
  62.  
  63. tup.append_table(OBJS,
  64.   tup.foreach_rule(ASM_SRC, "nasm -f coff --prefix _ %f -o %o", "%B.o")
  65. )
  66.  
  67. link_gcc("dgen")
  68.