17 lines
343 B
Makefile
17 lines
343 B
Makefile
.POSIX:
|
|
|
|
.PHONY: env
|
|
|
|
ASM=$(wildcard src/*asm)
|
|
|
|
xmasdemo.bin: env $(ASM) build/demo.raw
|
|
dasm src/main.asm -Isrc/ -f3 -T1 -sbuild/xmasdemo.prg.symbols.txt -obin/xmasdemo.bin
|
|
|
|
build/demo.raw: env src/demo.bas
|
|
petcat -w2 -l 1001 -o build/demo.prg -- src/demo.bas
|
|
dd if=build/demo.prg of=build/demo.raw bs=1 skip=2
|
|
|
|
env:
|
|
mkdir -p {bin,build}
|
|
|