uvm32/hosts/host-mini/Makefile
Toby Jaffey adec69e1d7 Attempt to enable RV32 C extension. c.lw and c.sw are definitely broken somehow wrt MMIO memory.
Examples built using C extensions, many fail in strange ways
2025-12-17 15:43:15 +00:00

12 lines
476 B
Makefile

TOPDIR=../..
all:
@echo "const unsigned char mandel[] = {" > mandel.h
@cat ${TOPDIR}/precompiled/mandel.bin | xxd -i >> mandel.h
@echo "};\nunsigned int mandel_len = " >> mandel.h
@wc -c ${TOPDIR}/precompiled/mandel.bin | awk '{print $$1}' >> mandel.h
@echo ";" >> mandel.h
gcc -Wall -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=512 -Wno-gnu-binary-literal -O2 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-mini ${TOPDIR}/uvm32/uvm32.c host-mini.c
clean:
rm -f host-mini