From d6023a7adee17628e0ec4bad02e10199c1165bdb Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 27 Mar 2002 11:21:50 +0000 Subject: Initial version git-svn-id: svn://svn.rockbox.org/rockbox/trunk@34 a1c6a512-1295-4272-9138-f99709370657 --- www/example/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 www/example/Makefile (limited to 'www/example/Makefile') diff --git a/www/example/Makefile b/www/example/Makefile new file mode 100644 index 0000000000..7d8f2fdefd --- /dev/null +++ b/www/example/Makefile @@ -0,0 +1,40 @@ +HPATH = /usr/local/sh-gcc/bin +CC = $(HPATH)/sh-elf-gcc +LD = $(HPATH)/sh-elf-ld +AR = $(HPATH)/sh-elf-ar +AS = $(HPATH)/sh-elf-as +OC = $(HPATH)/sh-elf-objcopy + +INCLUDES=-I. + +CFLAGS = -Os -Wall -m1 -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns $(INCLUDES) +AFLAGS += -small -relax + +OBJS= start.o main.o + +%.o: %.s + $(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $< + + +all : archos.mod # archos.asm + +main.o: main.c + +archos.elf : $(OBJS) app.lds + $(CC) -nostdlib -o archos.elf $(OBJS) -lgcc -Tapp.lds -Wl,-Map,archos.map + +archos.bin : archos.elf + $(OC) -O binary archos.elf archos.bin + +archos.asm: archos.bin + sh2d -sh1 archos.bin > archos.asm + +archos.mod : archos.bin + scramble archos.bin archos.mod + +dist: + tar czvf dist.tar.gz Makefile main.c start.s app.lds + +clean: + -rm -f *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~ + -- cgit v1.2.3