#
# This MAKEFILE was automatically built with Falch.net DeveloperStudio, and
# any changes you make in this file will be overwritten the next time you
# build this project.
#
# To edit this file manually, turn off "Automatically rebuild makefile on each
# build" in the "Project Properties" dialog ("Project" -> "Properties" ->
# "Advanced" Tab)
#

#  
#  Target ALL
#  
all : ./Release/RoNDi.prc tags

#  
#  Target Remove temporary files
#  
temp : 
	cd ./Release/ && \
	rm -f clean ./Release/Menu.o ./Release/frmMain.o ./Release/video.o ./Release/tools.o ./Release/game.o ./Release/main.o ./Release/init.o ./Release/libgamemisc.o ./Release/libgamerandom.o ./Release/libgamesystem.o ./Release/libgamesetup.o ./Release/tape.o ./Release/screens.o ./Release/files.o ./Release/events.o ./Release/p_gfxinit.o ./Release/RoNDi.ro ./Release/RoNDi-sections.o ./Release/RoNDi-sections.s ./Release/RoNDi tags

#  
#  Target Clean
#  
clean : 
	rm -f ./Release/Menu.o ./Release/frmMain.o ./Release/video.o ./Release/tools.o ./Release/game.o ./Release/main.o ./Release/init.o ./Release/libgamemisc.o ./Release/libgamerandom.o ./Release/libgamesystem.o ./Release/libgamesetup.o ./Release/tape.o ./Release/screens.o ./Release/files.o ./Release/events.o ./Release/p_gfxinit.o ./Release/RoNDi.ro ./Release/RoNDi-sections.o ./Release/RoNDi-sections.s ./Release/RoNDi tags ./Release/RoNDi.prc

#  
#  Rule for building sourcefile Menu.c
#  
./Release/Menu.o : Menu.c
	@echo "Compiling Menu.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/Menu.o -c Menu.c -MD
	@mv  Menu.d ./Release/Menu.d

#  
#  Rule for building sourcefile frmMain.c
#  
./Release/frmMain.o : frmMain.c
	@echo "Compiling frmMain.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/frmMain.o -c frmMain.c -MD
	@mv  frmMain.d ./Release/frmMain.d

#  
#  Rule for building sourcefile video.c
#  
./Release/video.o : video.c
	@echo "Compiling video.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/video.o -c video.c -MD
	@mv  video.d ./Release/video.d

#  
#  Rule for building sourcefile tools.c
#  
./Release/tools.o : tools.c
	@echo "Compiling tools.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/tools.o -c tools.c -MD
	@mv  tools.d ./Release/tools.d

#  
#  Rule for building sourcefile game.c
#  
./Release/game.o : game.c
	@echo "Compiling game.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/game.o -c game.c -MD
	@mv  game.d ./Release/game.d

#  
#  Rule for building sourcefile main.c
#  
./Release/main.o : main.c
	@echo "Compiling main.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/main.o -c main.c -MD
	@mv  main.d ./Release/main.d

#  
#  Rule for building sourcefile init.c
#  
./Release/init.o : init.c
	@echo "Compiling init.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/init.o -c init.c -MD
	@mv  init.d ./Release/init.d

#  
#  Rule for building sourcefile libgamemisc.c
#  
./Release/libgamemisc.o : libgamemisc.c
	@echo "Compiling libgamemisc.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/libgamemisc.o -c libgamemisc.c -MD
	@mv  libgamemisc.d ./Release/libgamemisc.d

#  
#  Rule for building sourcefile libgamerandom.c
#  
./Release/libgamerandom.o : libgamerandom.c
	@echo "Compiling libgamerandom.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/libgamerandom.o -c libgamerandom.c -MD
	@mv  libgamerandom.d ./Release/libgamerandom.d

#  
#  Rule for building sourcefile libgamesystem.c
#  
./Release/libgamesystem.o : libgamesystem.c
	@echo "Compiling libgamesystem.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/libgamesystem.o -c libgamesystem.c -MD
	@mv  libgamesystem.d ./Release/libgamesystem.d

#  
#  Rule for building sourcefile libgamesetup.c
#  
./Release/libgamesetup.o : libgamesetup.c
	@echo "Compiling libgamesetup.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/libgamesetup.o -c libgamesetup.c -MD
	@mv  libgamesetup.d ./Release/libgamesetup.d

#  
#  Rule for building sourcefile tape.c
#  
./Release/tape.o : tape.c
	@echo "Compiling tape.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/tape.o -c tape.c -MD
	@mv  tape.d ./Release/tape.d

#  
#  Rule for building sourcefile screens.c
#  
./Release/screens.o : screens.c
	@echo "Compiling screens.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/screens.o -c screens.c -MD
	@mv  screens.d ./Release/screens.d

#  
#  Rule for building sourcefile files.c
#  
./Release/files.o : files.c
	@echo "Compiling files.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/files.o -c files.c -MD
	@mv  files.d ./Release/files.d

#  
#  Rule for building sourcefile events.c
#  
./Release/events.o : events.c
	@echo "Compiling events.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/events.o -c events.c -MD
	@mv  events.d ./Release/events.d

#  
#  Rule for building sourcefile p_gfxinit.c
#  
./Release/p_gfxinit.o : p_gfxinit.c
	@echo "Compiling p_gfxinit.c..." && \
	m68k-palmos-gcc -palmos5.0 -Wall  -O3 -o./Release/p_gfxinit.o -c p_gfxinit.c -MD
	@mv  p_gfxinit.d ./Release/p_gfxinit.d

#  
#  Rule for building resources
#  
./Release/RoNDi.ro : RoNDi.rcp
	@pilrc -q -ro RoNDi.rcp ./Release/RoNDi.ro

#  
#  Rule for building assembler stub
#  
./Release/RoNDi-sections.o : ./Release/RoNDi-sections.s
	@echo "Building Assembler Stub..." && \
	m68k-palmos-gcc -palmos5.0 -o ./Release/RoNDi-sections.o -c ./Release/RoNDi-sections.s

#  
#  Rule for building linker script
#  
./Release/RoNDi-sections.s : RoNDi.def
	@echo "Building Linker Script..." && \
	multigen RoNDi.def -b ./Release/RoNDi-sections

#  
#  Rule for Linking the project
#  
./Release/RoNDi : ./Release/Menu.o ./Release/frmMain.o ./Release/video.o ./Release/tools.o ./Release/game.o ./Release/main.o ./Release/init.o ./Release/libgamemisc.o ./Release/libgamerandom.o ./Release/libgamesystem.o ./Release/libgamesetup.o ./Release/tape.o ./Release/screens.o ./Release/files.o ./Release/events.o ./Release/p_gfxinit.o ./Release/RoNDi-sections.o RoNDi.FNP
	@echo "Linking..." && \
	m68k-palmos-gcc ./Release/Menu.o ./Release/frmMain.o ./Release/video.o ./Release/tools.o ./Release/game.o ./Release/main.o ./Release/init.o ./Release/libgamemisc.o ./Release/libgamerandom.o ./Release/libgamesystem.o ./Release/libgamesetup.o ./Release/tape.o ./Release/screens.o ./Release/files.o ./Release/events.o ./Release/p_gfxinit.o ./Release/RoNDi-sections.o ./Release/RoNDi-sections.ld -palmos5.0 -o "$@"
	m68k-palmos-objdump --section-headers ./Release/RoNDi

#  
#  Create ctags file
#  
tags : Menu.c frmMain.c video.c tools.c game.c main.c init.c libgamemisc.c libgamerandom.c libgamesystem.c libgamesetup.c tape.c screens.c files.c events.c p_gfxinit.c RoNDi.h RoNDi_res.h video.h init.h main_.h libgamesystem.h libgamelibgame.h libgamemisc.h libgametypes.h libgamerandom.h libgamesetup.h tape.h tools.h screens.h game.h conf_chr.h files.h libgametext.h conf_gfx.h events.h p_gfxinit.h code_sections.h conf_e2g.h
	@echo "Building tags file..." && \
	ctags --excmd=number --fields=ikmns --c-types=+px --file-scope $^

#  
#  Rule for building Palm OS Program File
#  
./Release/RoNDi.prc : ./Release/RoNDi.ro ./Release/RoNDi ./Release/RoNDi
	@echo "Building program file ./Release/RoNDi.prc..." && \
	build-prc -o ./Release/RoNDi.prc RoNDi.def ./Release/RoNDi.ro ./Release/RoNDi
