MIPS/resources/soft/memory_game/lib/Makefile
Paul Pan 7b33e4213a a big update
1. add test soft
2. modify verilator (TODO: crossbar need to replace)
3. fix CP0: now CU0 is always 1
4. Controller: cacheop
5. Controller: fix TEN
6. mycpu_top fix CP0_i
7. fix AXI.sv
8. fix AXIReader.sv
9. fix AXIWriter.sv: getting the correct data and length
10. MU: fix cache writeback, fix mem data mux, fix writer address, fix read request
2022-07-29 18:25:58 +08:00

22 lines
842 B
Makefile

CFLAGS := -D_KERNEL -DCONFIG_PAGE_SIZE_16KB -fno-builtin -mips1 -DCACHELOCK_MEM
CFLAGS += -DCPU_COUNT_PER_US=100 -I include -include common.h -DAPB_CLK=33333333
CFLAGS += -DLS1FSOC -DCPU_MULT=6 -DDDR_MULT=6 -msoft-float -EL
CFLAGS += $(MEM_DEF)
.SUFFIXES: .o64 .elf64 .bin64
objs= malloc.o stdio.o printf.o udelay.o now.o putchar.o puts.o printhex.o printbase.o memcmp.o strcat.o strchr.o strcmp.o strtok.o strspn.o strcspn.o getchar.o testchar.o vsprintf.o atob.o sprintf.o strtoupp.o toupper.o string.o str_fmt.o strcpy.o strichr.o strncmp.o strncpy.o newprintf.o cache.o cmdline.o irq.o guess.o strtoul.o time.o exception.o sscanf.o
objs64=$(objs:.o=.o64)
libtinyc.a: $(objs)
$(CROSS_COMPILE)ar -cr $@ $^
libtinyc64.a: $(objs64)
$(CROSS_COMPILE)ar -cr $@ $^
clean:
rm -f *.o *.a *.s *.o64 *.bin64 *.elf64
-include rules.make