2020-04-01 19:11:08 +00:00
|
|
|
.POSIX:
|
2018-09-10 13:41:12 +00:00
|
|
|
|
2020-04-01 19:11:08 +00:00
|
|
|
ASM=$(wildcard src/*.asm)
|
2020-04-01 23:13:10 +00:00
|
|
|
RES=res.bin/amour.sid res.bin/levels.bin
|
2020-04-01 19:11:08 +00:00
|
|
|
|
|
|
|
.PHONY: debug env clean
|
|
|
|
|
2020-04-01 23:13:10 +00:00
|
|
|
bin/snake.prg: env $(ASM) $(RES)
|
2020-04-01 19:11:08 +00:00
|
|
|
dasm src/main.asm -Isrc/ -DSYSTEM=64 -DDEBUG=0 -obin/snake.prg
|
|
|
|
|
|
|
|
clean:
|
2020-04-01 23:13:10 +00:00
|
|
|
rm -rf {build,bin,res.bin}
|
2020-04-01 19:11:08 +00:00
|
|
|
|
|
|
|
env:
|
2020-04-01 23:13:10 +00:00
|
|
|
mkdir -p {build,bin,res.bin}
|
2020-04-01 19:11:08 +00:00
|
|
|
|
2020-04-01 23:13:10 +00:00
|
|
|
debug: $(ASM) $(RES)
|
2020-04-01 19:11:08 +00:00
|
|
|
g++ -o bin/explodefont util/explodefont.cpp
|
|
|
|
dasm src/main.asm -Isrc/ -DSYSTEM=64 -DDEBUG=1 -sbuild/symbols.txt -obin/snake.prg
|
2018-09-05 20:03:20 +00:00
|
|
|
|
2020-04-01 23:13:10 +00:00
|
|
|
res.bin/amour.sid:
|
|
|
|
cp res.org/amour.sid res.bin/amour.sid
|
|
|
|
|
|
|
|
res.bin/levels.bin: bin/level res.org/levels.txt
|
|
|
|
bin/level < res.org/levels.txt > res.bin/levels.bin
|
|
|
|
|
|
|
|
bin/level: util/rlevel.cpp
|
|
|
|
g++ -o bin/level util/rlevel.cpp
|
|
|
|
|
|
|
|
|