26 lines
397 B
Makefile
26 lines
397 B
Makefile
|
ID=uxncore
|
||
|
DIR=~/roms
|
||
|
ASM=uxncli ${DIR}/drifblim.rom
|
||
|
LIN=uxncli ${DIR}/uxnlin.rom
|
||
|
EMU=uxncli
|
||
|
ROM=bin/${ID}.rom
|
||
|
|
||
|
all: ${ROM}
|
||
|
|
||
|
lint:
|
||
|
@ ${LIN} src/${ID}.tal
|
||
|
run: all
|
||
|
@ ${EMU} ${ROM}
|
||
|
clean:
|
||
|
@ rm -f ${ROM} ${ROM}.sym
|
||
|
install: ${ROM}
|
||
|
@ cp ${ROM} ${DIR}
|
||
|
uninstall:
|
||
|
@ rm -f ${DIR}/${ID}.rom
|
||
|
|
||
|
.PHONY: all clean lint run install uninstall
|
||
|
|
||
|
${ROM}: src/*
|
||
|
@ mkdir -p bin
|
||
|
@ ${ASM} src/${ID}.tal ${ROM}
|