#
# 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/Euro.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 Euro.prc Euro

#
#  Rule for building sourcefile main.c
#
./Debug/main.o : main.c
	@echo "Compiling main.c..." && \
	m68k-palmos-gcc -palmos3.5 -g -o ./Debug/main.o -c main.c

#
#  Rule for building sourcefile Menu.c
#
./Debug/Menu.o : Menu.c
	@echo "Compiling Menu.c..." && \
	m68k-palmos-gcc -palmos3.5 -g -o ./Debug/Menu.o -c Menu.c

#
#  Rule for building sourcefile frmMain.c
#
./Debug/frmMain.o : frmMain.c
	@echo "Compiling frmMain.c..." && \
	m68k-palmos-gcc -palmos3.5 -g -o ./Debug/frmMain.o -c frmMain.c

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

#
#  Rule for Linking the project
#
./Debug/Euro : ./Debug/main.o ./Debug/Menu.o ./Debug/frmMain.o
	@echo "Linking..." && \
	m68k-palmos-gcc ./Debug/main.o ./Debug/Menu.o ./Debug/frmMain.o -g -o "$@"

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

./Debug/code0001.Euro.bin : ./Debug/code0000.Euro.bin

./Debug/data0000.Euro.bin : ./Debug/code0000.Euro.bin

#
#  Rule for building PRCFile
#
./Debug/Euro.prc : ./Debug/main.o ./Debug/Menu.o ./Debug/frmMain.o ./Debug/bin.res ./Debug/code0000.Euro.bin ./Debug/code0001.Euro.bin ./Debug/data0000.Euro.bin
	@echo "Building program file ./Debug/Euro.prc..." && \
	cd ./Debug/ && \
	build-prc Euro.prc "Euro" EuRo *.grc *.bin
