added target: serdump

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@515 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-10-14 22:05:12 +00:00
parent a6cf47015c
commit eafadbfa05
+9 -1
View File
@@ -18,7 +18,7 @@ all: $(PROG)
libsys: startup.S kernel.S libsys.c xcpt.c irq.c
$(CC) $(CFLAGS) -G 0 -c startup.S -o startup.o
$(CC) $(CFLAGS) -G 0 -c kernel.S -o kernel.o
$(CC) $(CFLAGS) -G 0 -DSTDERR_FUNCTION=_cg_putchar -DSTDOUT_FUNCTION=_putchar -c libsys.c -o libsys.o
$(CC) $(CFLAGS) -G 0 -DSTDERR_FUNCTION=_ser_putchar -DSTDOUT_FUNCTION=_ser_putchar -D_putchar=_ser_putchar -c libsys.c -o libsys.o
$(CC) $(CFLAGS) -G 0 -c xcpt.c -o xcpt.o
$(CC) $(CFLAGS) -G 0 -c irq.c -o irq.o
$(CC) $(CFLAGS) -G 0 -c dbg.c -o dbg.o
@@ -188,5 +188,13 @@ jman_polys: $(JMAN_SRC) jman/main_polypin.c jman/polys.c
$(OBJCOPY) -O srec $@.elf $@.srec
$(FLASHGEN) $@.bin $(ENDIAN_FLAGS)
serdump: serdump.c
$(CC) $(CFLAGS) -O3 -o $@.elf -O2 serdump.c $(LIBS) >$@.map
$(OBJDUMP) -d $@.elf > $@.dis
$(OBJCOPY) $@.elf -O binary $@.bin
$(OBJCOPY) -O srec $@.elf $@.srec
$(FLASHGEN) $@.bin $(ENDIAN_FLAGS)
clean:
rm -rf *.a *.o *.bin *.map *.dis *.srec *.elf $(PROG) > /dev/null