diff --git a/lib/CPUs/MIPS/bsp/examples/Makefile b/lib/CPUs/MIPS/bsp/examples/Makefile index 15bfe3a..163c4b4 100644 --- a/lib/CPUs/MIPS/bsp/examples/Makefile +++ b/lib/CPUs/MIPS/bsp/examples/Makefile @@ -11,7 +11,7 @@ OBJDUMP=mipsel-elf-objdump OBJCOPY=mipsel-elf-objcopy FLASHGEN=flashgen_el -PROG = hello testbench test_irq dhry queens stanford paranoia rmd160_test Bessel whet phrasen dttl richards_benchmark +PROG = hello testbench test_irq dhry queens stanford paranoia rmd160_test Bessel whet phrasen dttl richards_benchmark test_exception all: $(PROG) @@ -23,7 +23,7 @@ libsys: startup.S init.S kernel.S libsys.c xcpt.c irq.c $(CC) $(CFLAGS) -G 0 -c xcpt.c -o xcpt.o $(CC) $(CFLAGS) -G 0 -c irq.c -o irq.o $(AR) -r libsys.a init.o libsys.o xcpt.o irq.o - + hello: hello.c $(CC) $(CFLAGS) -c hello.c $(LD) $(LFLAGS) $(LIB_DIRS) hello.o -o $@.elf $(LIBS) >$@.map @@ -128,5 +128,13 @@ richards_benchmark: richards_benchmark.c $(OBJCOPY) -O srec $@.elf $@.srec $(FLASHGEN) $@.bin +test_exception: test_exception.c + $(CC) $(CFLAGS) -O1 -c test_exception.c + $(LD) $(LFLAGS) $(LIB_DIRS) test_exception.o -o $@.elf $(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