TOPDIR=../../../
PROJECT:=$(shell basename ${PWD})
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S
OPT=-O0
CFLAGS=-DUVM32_MEMORY_SIZE=16384
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
