From 39c28a6750c8a22af37b42ae8587561531219a90 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sat, 23 May 2015 08:00:39 +0000 Subject: [PATCH] - added hello_sim git-svn-id: http://moon:8086/svn/mips@19 a8ebac50-d88d-4704-bea3-6648445a41b3 --- src/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d18c15a..e7816c2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -27,7 +27,7 @@ else endif PACKHEX=$(MIPS_HOME)/tools/packhex -LIBS=-lm -lsys +LIBS=-lm -lc -lsys AS=mipsel-elf-as AR=mipsel-elf-ar @@ -65,6 +65,14 @@ hello.elf: hello.c libsys.a $(FLASHGEN) $@.bin $(ENDIAN_FLAGS) cat $@.srec | $(PACKHEX) > $@.pack +hello_sim.elf: hello.c libsys_sim.a + $(CC) $(CFLAGS) -o $@ -Os hello.c -lsys_sim >$@.map + $(OBJDUMP) -d $@ > $@.dis + $(OBJCOPY) $@ -O binary $@.bin + $(OBJCOPY) -O srec $@ $@.srec + $(FLASHGEN) $@.bin $(ENDIAN_FLAGS) + cat $@.srec | $(PACKHEX) > $@.pack + blittertest.elf: blittertest.c libsys.a $(CC) $(CFLAGS) -o $@ -Os blittertest.c $(LIBS) >$@.map $(OBJDUMP) -d $@ > $@.dis