mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
18 lines
521 B
Makefile
18 lines
521 B
Makefile
PROJECT=zigdoom
|
|
TOPDIR=../..
|
|
|
|
HEAP_SIZE=$(shell echo "1024 * 1024 * 8" | bc)
|
|
HOST_EXTRA=-e ${HEAP_SIZE} -i 9999999
|
|
|
|
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 -Dheapsize=${HEAP_SIZE} && ${PREFIX}objcopy zig-out/bin/${PROJECT} -O binary ${PROJECT}.bin
|
|
|
|
clean: clean_common
|
|
rm -rf zig-out .zig-cache
|
|
|
|
test: all
|
|
${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PROJECT}.bin
|
|
|
|
include ${TOPDIR}/apps/makefile.common
|