- added hello_sim
git-svn-id: http://moon:8086/svn/mips@19 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+9
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user