Do .bin inclusion in C code at build

This commit is contained in:
Toby Jaffey 2025-12-11 12:48:41 +00:00
parent 809f8ce115
commit 1213c5673f
8 changed files with 64 additions and 55 deletions

View file

@ -2,7 +2,9 @@ TOPDIR=../../
PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S ${TOPDIR}/uvm32/uvm32.c
CFLAGS=-DUVM32_MEMORY_SIZE=8192 -DCUSTOM_STDLIB_H=\"uvm32_target.h\" -I../../uvm32
all: all_common
all:
xxd -n mandel -i ${TOPDIR}/precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h
make all_common
test: test_common
clean: clean_common
include ${TOPDIR}/apps/makefile.common