diff --git a/lib/CPUs/MIPS/bsp/examples/libsys/Makefile b/lib/CPUs/MIPS/bsp/examples/libsys/Makefile index bce1f29..376b961 100644 --- a/lib/CPUs/MIPS/bsp/examples/libsys/Makefile +++ b/lib/CPUs/MIPS/bsp/examples/libsys/Makefile @@ -1,4 +1,4 @@ -ENDIAN_FLAGS=-EB +ENDIAN_FLAGS=-EL CFLAGS=$(ENDIAN_FLAGS) -msoft-float -O2 -march=r3000 -I. -Wl,-M AS=mipsel-elf-as @@ -13,7 +13,8 @@ SRCS=libsys.c xcpt.c syscalls.c irq.c dbg.c mips_dis.c mips_gfx.c mips_ps2.c OBJS=libsys.o xcpt.o syscalls.o irq.o dbg.o mips_dis.o mips_gfx.o mips_ps2.o all: libsys.a - + $(MAKE) -C eb + %.o : %.c %.h $(CC) $(CFLAGS) -G 0 -c $(SRCS) @@ -24,3 +25,5 @@ libsys.a: $(OBJS) clean: rm -rf *.a *.o *.map *.dis *.elf > /dev/null + $(MAKE) -C eb clean +