- added hello_sim

git-svn-id: http://moon:8086/svn/mips@19 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2015-05-23 08:00:39 +00:00
parent 38cf4f2e70
commit 39c28a6750
+9 -1
View File
@@ -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