#
# This MAKEFILE was automatically built with
# Falch.net developerStudio 2.0, and any
# changes you make in this file will be overwritten
# the next time you build this project.
#
# To edit this file manually, turn of Autobuild Makefile
# in the project settings dialog ( Project->Properties )
#

#
#  Target ALL
#
all : ./Debug/Razor.prc

#
#  Target Remove temporary files
#
temp : 
	cd ./Debug/ && \
	rm -f *.bin bin.res *~ *.grc *.o *.ld *.s

#
#  Target Clean
#
clean : 
	cd ./Debug/ && \
	rm -f *.bin bin.res *~ *.grc *.prc *.o *.ld *.s Razor.prc Razor

#
#  Rule for building sourcefile Src\Starter.cpp
#
./Debug/Starter.o : Src/Starter.cpp
	@echo "Compiling Src\Starter.cpp..." && \
	m68k-palmos-g++ -palmos3.5  -g -Wall -fno-rtti -fno-exceptions  -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL -o ./Debug/Starter.o -c Src/Starter.cpp

#
#  Rule for building sourcefile Src\HardKeyManager.cpp
#
./Debug/HardKeyManager.o : Src/HardKeyManager.cpp
	@echo "Compiling Src\HardKeyManager.cpp..." && \
	m68k-palmos-g++ -palmos3.5  -g -Wall -fno-rtti -fno-exceptions  -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL -o ./Debug/HardKeyManager.o -c Src/HardKeyManager.cpp

#
#  Rule for building sourcefile Src\SoundEngine.cpp
#
./Debug/SoundEngine.o : Src/SoundEngine.cpp
	@echo "Compiling Src\SoundEngine.cpp..." && \
	m68k-palmos-g++ -palmos3.5  -g -Wall -fno-rtti -fno-exceptions  -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL -o ./Debug/SoundEngine.o -c Src/SoundEngine.cpp

#
#  Rule for building sourcefile Src\CustomNew.cpp
#
./Debug/CustomNew.o : Src/CustomNew.cpp
	@echo "Compiling Src\CustomNew.cpp..." && \
	m68k-palmos-g++ -palmos3.5  -g -Wall -fno-rtti -fno-exceptions  -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL -o ./Debug/CustomNew.o -c Src/CustomNew.cpp

#
#  Rule for building sourcefile Src\MemLeak.cpp
#
./Debug/MemLeak.o : Src/MemLeak.cpp
	@echo "Compiling Src\MemLeak.cpp..." && \
	m68k-palmos-g++ -palmos3.5  -g -Wall -fno-rtti -fno-exceptions  -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL -o ./Debug/MemLeak.o -c Src/MemLeak.cpp

#
#  Rule for building sourcefile Src\Device.cpp
#
./Debug/Device.o : Src/Device.cpp
	@echo "Compiling Src\Device.cpp..." && \
	m68k-palmos-g++ -palmos3.5  -g -Wall -fno-rtti -fno-exceptions  -DERROR_CHECK_LEVEL=ERROR_CHECK_FULL -o ./Debug/Device.o -c Src/Device.cpp

#
#  Rule for building resources
#
./Debug/Starter.res : Rsc/Starter.rcp
	@echo "Compiling resource Rsc\Starter.rcp..." && \
	cd Rsc/ && \
	pilrc -q Starter.rcp ../Debug/

#
#  Rule for building resources
#
./Debug/Music.res : Rsc/music.rcp
	@echo "Compiling resource Rsc\music.rcp..." && \
	cd Rsc/ && \
	pilrc -q music.rcp ../Debug/

#
#  Rule for building resources
#
./Debug/Bitmaps.res : Rsc/bitmaps.rcp
	@echo "Compiling resource Rsc\bitmaps.rcp..." && \
	cd Rsc/ && \
	pilrc -q bitmaps.rcp ../Debug/

#
#  Rule for Linking the project
#
./Debug/Razor : ./Debug/Starter.o ./Debug/HardKeyManager.o ./Debug/SoundEngine.o ./Debug/CustomNew.o ./Debug/MemLeak.o ./Debug/Device.o
	@echo "Linking..." && \
	m68k-palmos-gcc ./Debug/Starter.o ./Debug/HardKeyManager.o ./Debug/SoundEngine.o ./Debug/CustomNew.o ./Debug/MemLeak.o ./Debug/Device.o -g -o "$@" -lnoexcept

#
#  Rule for postprosessing files
#
./Debug/code0000.Razor.bin : ./Debug/Razor
	@echo "Postprocessing files..." && \
	cd ./Debug/ && \
	obj-res Razor

./Debug/code0001.Razor.bin : ./Debug/code0000.Razor.bin

./Debug/data0000.Razor.bin : ./Debug/code0000.Razor.bin

#
#  Rule for building PRCFile
#
./Debug/Razor.prc : ./Debug/Starter.o ./Debug/HardKeyManager.o ./Debug/SoundEngine.o ./Debug/CustomNew.o ./Debug/MemLeak.o ./Debug/Device.o ./Debug/Starter.res ./Debug/Music.res ./Debug/Bitmaps.res ./Debug/code0000.Razor.bin ./Debug/code0001.Razor.bin ./Debug/data0000.Razor.bin
	@echo "Building program file ./Debug/Razor.prc..." && \
	cd ./Debug/ && \
	build-prc Razor.prc "Razor!" Razr *.grc *.bin
