home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / IYONIX / MANICMINER / SOURCE.ZIP / manicminer-1.6.3 / Makefile.riscos < prev    next >
Encoding:
Makefile  |  2006-10-26  |  1.8 KB  |  77 lines

  1. # Makefile to build with gcc on RISC OS
  2.  
  3. CC    = gcc
  4. AS    = gcc
  5. LINK    = gcc
  6.  
  7. Cflags = -c -O3 -I. -IOSLib: -mpoke-function-name -mthrowback -mlibscl -DDIRECTSCREEN -c90
  8. Linkflags = -mlibscl  -o $@
  9. ASflags = -mthrowback -c 
  10.  
  11. all:    manic
  12.  
  13. .SUFFIXES: .c .s .o
  14. .s.o:; $(AS) $(ASflags) $<
  15. .c.o:; $(CC) $(Cflags) $<
  16.  
  17. DATA_OBJ = miscdata.o.end miscdata.o.misc
  18.  
  19. GAME_OBJ = o.cmdline o.core o.demo o.end o.game o.graph o.loading o.main \
  20.        o.manic o.misc o.titles o.version
  21.  
  22. RO_OBJ    = o.init o.frontend o.ROsound o.ROsupport o.mm-anim
  23.  
  24. OBJ    = $(RO_OBJ) $(GAME_OBJ)
  25. LIBS    = -lOSLib:o.OSLib32
  26.  
  27. manic:    $(OBJ)
  28.     $(LINK) $(Linkflags) $(OBJ) $(LIBS)
  29.  
  30. clean:
  31.     ifthere o.* then wipe o.* ~cfr~v
  32.     remove manic
  33.  
  34. # User-editable dependencies:
  35. systems.riscos.data.ColTable systems.riscos.data.VolScale:
  36.     run systems.riscos.data.MakeTables
  37.  
  38. o.mm-anim:
  39.     datatoaof -f systems.riscos.data.mm-anim -o o.mm-anim -D mm_anim -N -R -DP
  40.  
  41. o.end:        miscdata.c.end
  42.     $(CC) $(Cflags) miscdata.c.end
  43. o.misc:        miscdata.c.misc
  44.     $(CC) $(Cflags) miscdata.c.misc
  45. o.init:        systems.riscos.c.init
  46.     $(CC) $(Cflags) systems.riscos.c.init
  47. o.frontend:    systems.riscos.c.frontend
  48.     $(CC) $(Cflags) systems.riscos.c.frontend
  49. o.ROsound:    systems.riscos.c.ROsound
  50.     $(CC) $(Cflags) systems.riscos.c.ROsound
  51. o.ROsupport:    systems.riscos.s.ROsupport systems.riscos.data.ColTable
  52.     $(AS) $(ASflags) systems.riscos.s.ROsupport
  53.  
  54. o.cmdline:    c.cmdline
  55.     $(CC) $(Cflags) c.cmdline
  56. o.core:    c.core
  57.     $(CC) $(Cflags) c.core
  58. o.demo:    c.demo
  59.     $(CC) $(Cflags) c.demo
  60. o.game:    c.game
  61.     $(CC) $(Cflags) c.game
  62. o.graph:    c.graph
  63.     $(CC) $(Cflags) c.graph
  64. o.loading:    c.loading
  65.     $(CC) $(Cflags) c.loading
  66. o.main:    c.main
  67.     $(CC) $(Cflags) c.main
  68. o.manic:    c.manic
  69.     $(CC) $(Cflags) c.manic
  70. o.titles:    c.titles
  71.     $(CC) $(Cflags) c.titles
  72. o.version:    c.version
  73.     $(CC) $(Cflags) c.version
  74.  
  75.  
  76. # Dynamic dependencies:
  77.