uxn-utils/cli/uxncore/makefile

31 lines
487 B
Makefile
Raw Normal View History

2024-06-29 13:11:47 -04:00
ID=uxncore
DIR=~/roms
ASM=uxncli ${DIR}/drifblim.rom
LIN=uxncli ${DIR}/uxnlin.rom
EMU=uxncli
ROM=bin/${ID}.rom
2024-06-29 23:10:10 -04:00
all: ${ROM} bin/main
2024-06-29 13:11:47 -04:00
lint:
@ ${LIN} src/${ID}.tal
run: all
@ ${EMU} ${ROM}
2024-06-29 23:10:10 -04:00
@ ./bin/main
@ rm ./bin/main
2024-06-29 13:11:47 -04:00
clean:
@ rm -f ${ROM} ${ROM}.sym
install: ${ROM}
@ cp ${ROM} ${DIR}
uninstall:
@ rm -f ${DIR}/${ID}.rom
2024-06-29 23:10:10 -04:00
.PHONY: all clean lint run install uninstall
bin/main: src/main.c
@ cc src/main.c -o bin/main
2024-06-29 13:11:47 -04:00
${ROM}: src/*
@ mkdir -p bin
@ ${ASM} src/${ID}.tal ${ROM}