summaryrefslogtreecommitdiff
path: root/firmware/test/kernel/Makefile
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-04-22 19:12:37 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-04-22 19:12:37 +0000
commit1f563bfd290b56ebf1865fbe950c276dfb8018e5 (patch)
treebe20726a274e9991ae74ca4aaf14ed082a5651d3 /firmware/test/kernel/Makefile
parent34f026eb479806c0698437cc66f028ccaa995f57 (diff)
downloadrockbox-1f563bfd290b56ebf1865fbe950c276dfb8018e5.zip
rockbox-1f563bfd290b56ebf1865fbe950c276dfb8018e5.tar.gz
rockbox-1f563bfd290b56ebf1865fbe950c276dfb8018e5.tar.bz2
rockbox-1f563bfd290b56ebf1865fbe950c276dfb8018e5.tar.xz
First version
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@175 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/test/kernel/Makefile')
-rw-r--r--firmware/test/kernel/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/firmware/test/kernel/Makefile b/firmware/test/kernel/Makefile
new file mode 100644
index 0000000..fdeb9b1
--- /dev/null
+++ b/firmware/test/kernel/Makefile
@@ -0,0 +1,42 @@
+CC = sh-elf-gcc
+LD = sh-elf-ld
+AR = sh-elf-ar
+AS = sh-elf-as
+OC = sh-elf-objcopy
+
+INCLUDES=-I../../
+
+CFLAGS = -O -Wall -m1 -save-temps -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns -fno-builtin $(INCLUDES)
+AFLAGS += -small -relax
+
+OBJS= crt0.o main.o ../../thread.o ../../debug.o
+
+%.o: %.S
+ $(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $<
+
+
+all : archos.mod
+
+archos.elf : $(OBJS) app.lds
+ $(CC) -nostartfiles -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
+
+archos.mod.gz : archos.mod
+ gzip -f 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 *~
+
+install:
+ mount /mnt/archos; cp archos.mod /mnt/archos; umount /mnt/archos