From b3f33002919cd8295b0579f655054855aa7e9298 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 13 Jul 2009 19:17:41 +0000 Subject: Add some Makefile rules to demonstrate assembling, linking, converting to binary file and finally converting to a notes .htm file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21845 a1c6a512-1295-4272-9138-f99709370657 --- utils/ipod/bin2note/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'utils/ipod/bin2note/Makefile') diff --git a/utils/ipod/bin2note/Makefile b/utils/ipod/bin2note/Makefile index b5fd564d0a..985ed00da7 100644 --- a/utils/ipod/bin2note/Makefile +++ b/utils/ipod/bin2note/Makefile @@ -12,5 +12,17 @@ all: bin2note bin2note: bin2note.c gcc -W -Wall -o bin2note bin2note.c +test.htm: bin2note test.bin + ./bin2note test.bin test.htm + +test.o: test.S + arm-elf-as -o $@ $< + +test.elf: test.o + arm-elf-ld -e 0 -Ttext=0 -o $@ $< + +test.bin: test.elf + arm-elf-objcopy -O binary $< $@ + clean: - rm -f bin2note + rm -f bin2note test.o test.elf test.bin test.htm -- cgit v1.2.3