uvm32/hosts/host-parallel/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

11 lines
460 B
Makefile

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