home *** CD-ROM | disk | FTP | other *** search
Makefile | 2006-10-26 | 1.8 KB | 77 lines |
- # Makefile to build with gcc on RISC OS
-
- CC = gcc
- AS = gcc
- LINK = gcc
-
- Cflags = -c -O3 -I. -IOSLib: -mpoke-function-name -mthrowback -mlibscl -DDIRECTSCREEN -c90
- Linkflags = -mlibscl -o $@
- ASflags = -mthrowback -c
-
- all: manic
-
- .SUFFIXES: .c .s .o
- .s.o:; $(AS) $(ASflags) $<
- .c.o:; $(CC) $(Cflags) $<
-
- DATA_OBJ = miscdata.o.end miscdata.o.misc
-
- GAME_OBJ = o.cmdline o.core o.demo o.end o.game o.graph o.loading o.main \
- o.manic o.misc o.titles o.version
-
- RO_OBJ = o.init o.frontend o.ROsound o.ROsupport o.mm-anim
-
- OBJ = $(RO_OBJ) $(GAME_OBJ)
- LIBS = -lOSLib:o.OSLib32
-
- manic: $(OBJ)
- $(LINK) $(Linkflags) $(OBJ) $(LIBS)
-
- clean:
- ifthere o.* then wipe o.* ~cfr~v
- remove manic
-
- # User-editable dependencies:
- systems.riscos.data.ColTable systems.riscos.data.VolScale:
- run systems.riscos.data.MakeTables
-
- o.mm-anim:
- datatoaof -f systems.riscos.data.mm-anim -o o.mm-anim -D mm_anim -N -R -DP
-
- o.end: miscdata.c.end
- $(CC) $(Cflags) miscdata.c.end
- o.misc: miscdata.c.misc
- $(CC) $(Cflags) miscdata.c.misc
- o.init: systems.riscos.c.init
- $(CC) $(Cflags) systems.riscos.c.init
- o.frontend: systems.riscos.c.frontend
- $(CC) $(Cflags) systems.riscos.c.frontend
- o.ROsound: systems.riscos.c.ROsound
- $(CC) $(Cflags) systems.riscos.c.ROsound
- o.ROsupport: systems.riscos.s.ROsupport systems.riscos.data.ColTable
- $(AS) $(ASflags) systems.riscos.s.ROsupport
-
- o.cmdline: c.cmdline
- $(CC) $(Cflags) c.cmdline
- o.core: c.core
- $(CC) $(Cflags) c.core
- o.demo: c.demo
- $(CC) $(Cflags) c.demo
- o.game: c.game
- $(CC) $(Cflags) c.game
- o.graph: c.graph
- $(CC) $(Cflags) c.graph
- o.loading: c.loading
- $(CC) $(Cflags) c.loading
- o.main: c.main
- $(CC) $(Cflags) c.main
- o.manic: c.manic
- $(CC) $(Cflags) c.manic
- o.titles: c.titles
- $(CC) $(Cflags) c.titles
- o.version: c.version
- $(CC) $(Cflags) c.version
-
-
- # Dynamic dependencies:
-