diff --git a/lib/CPUs/MIPS/bsp/examples/Makefile b/lib/CPUs/MIPS/bsp/examples/Makefile index dddd447..aeac376 100644 --- a/lib/CPUs/MIPS/bsp/examples/Makefile +++ b/lib/CPUs/MIPS/bsp/examples/Makefile @@ -11,14 +11,14 @@ OBJDUMP=mipsel-elf-objdump OBJCOPY=mipsel-elf-objcopy FLASHGEN=flashgen -PROG = hello testbench test_irq dhry queens stanford paranoia rmd160_test Bessel whet phrasen dttl richards_benchmark test_exception life r3 gunzip basic_math jman_patches jman_patchmeshes jman_polys +PROG = hello testbench test_irq dhry queens stanford paranoia rmd160_test Bessel whet phrasen dttl richards_benchmark test_exception life r3 gunzip basic_math jman_patches jman_patchmeshes jman_polys test_hpi 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=_ser_putchar -DSTDOUT_FUNCTION=_ser_putchar -D_putchar=_ser_putchar -c libsys.c -o libsys.o + $(CC) $(CFLAGS) -G 0 -DSTDERR_FUNCTION=_cg_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 @@ -195,6 +195,27 @@ serdump: serdump.c $(OBJCOPY) -O srec $@.elf $@.srec $(FLASHGEN) $@.bin $(ENDIAN_FLAGS) +pppi: pppissue/test1.c pppissue/utils.c pppissue/pppd.h + $(CC) $(CFLAGS) -O2 -o $@.elf -O2 pppissue/test1.c pppissue/utils.c $(LIBS) >$@.map + $(OBJDUMP) -d $@.elf > $@.dis + $(OBJCOPY) $@.elf -O binary $@.bin + $(OBJCOPY) -O srec $@.elf $@.srec + $(FLASHGEN) $@.bin $(ENDIAN_FLAGS) + +lwl: lwl.c + $(CC) $(CFLAGS) -O2 -o $@.elf lwl.c $(LIBS) >$@.map + $(OBJDUMP) -d $@.elf > $@.dis + $(OBJCOPY) $@.elf -O binary $@.bin + $(OBJCOPY) -O srec $@.elf $@.srec + $(FLASHGEN) $@.bin $(ENDIAN_FLAGS) + +test_hpi: hpi.c test_hpi.c cfiflash.c + $(CC) $(CFLAGS) -o $@.elf -g hpi.c test_hpi.c cfiflash.c $(LIBS) >$@.map + $(OBJDUMP) -d $@.elf > $@.dis + $(OBJCOPY) $@.elf -O binary $@.bin + $(OBJCOPY) -O srec $@.elf $@.srec + $(FLASHGEN) $@.bin + clean: rm -rf *.a *.o *.bin *.map *.dis *.srec *.elf $(PROG) > /dev/null