Unify all tests to use same common makefile includes

This commit is contained in:
Toby Jaffey 2025-12-13 17:27:24 +00:00
parent 125c79176e
commit 1e5555f66d
14 changed files with 76 additions and 278 deletions

View file

@ -1,13 +1,2 @@
TOPDIR=../../../
PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
all: all_common
@# Convert ROM to C file and header
@xxd -i ${PROJECT}.bin > ${PROJECT}-header.c
@echo "extern unsigned char ${PROJECT}_bin[]; extern int ${PROJECT}_bin_len;" > ${PROJECT}-header.h
test: test_common
clean: clean_common
rm -f ${PROJECT}-header.h ${PROJECT}-header.c
include ${TOPDIR}/apps/common/makefile.common
TOPDIR=../../..
include ${TOPDIR}/test/common/makefile-rom.common