all:
	arm-gdcproject-linux-gnueabi-as -mcpu=arm926ej-s -g startup.s -o startup.o
	arm-gdcproject-linux-gnueabi-gdc -frelease -fno-exceptions -c -mcpu=arm926ej-s -g object.d -o object.o
	arm-gdcproject-linux-gnueabi-gdc -frelease -fno-exceptions -c -mcpu=arm926ej-s -g hello.d -o hello.o
	arm-gdcproject-linux-gnueabi-ld -T linker.ld hello.o startup.o object.o -o hello.elf
	arm-gdcproject-linux-gnueabi-objcopy -O binary hello.elf hello.bin
	# the following command runs it
	# qemu-system-arm -M versatilepb -m 128M -kernel hello.bin -sdl
