uvm32/apps/zigtris/Makefile
Toby Jaffey da7f70c456 Initial test framework
Clean up makefiles
Everything buildable under docker (or natively)
2025-12-10 16:36:33 +00:00

15 lines
384 B
Makefile

PROJECT=zigtris
TOPDIR=../../
all:
@# zig's objcopy is broken, so use external tool
@# https://ziggit.dev/t/addobjcopy-producing-zero-padding-at-start-of-binary/13384
zig build && ${PREFIX}objcopy zig-out/bin/${PROJECT} -O binary ${PROJECT}.bin
clean: clean_common
rm -rf zig-out .zig-cache
test: all
${TOPDIR}/host/host ${PROJECT}.bin
include ${TOPDIR}/apps/makefile.common