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-10-04 15:48:49 +00:00
|
|
|
RES=res.bin/amour.sid res.bin/levels.bin res.bin/unlzg.bin
|
2020-09-15 12:57:10 +00:00
|
|
|
|
2020-04-01 19:11:08 +00:00
|
|
|
.PHONY: debug env clean
|
|
|
|
|
2020-10-04 15:48:49 +00:00
|
|
|
bin/snake.bin: bin/snake.pack.lz
|
2020-10-04 18:58:08 +00:00
|
|
|
dasm src/cart.asm -Isrc/ -DVERBOSE=$(VERBOSE) -f3 -sbuild/cart.symbols.txt -obin/snake.bin
|
2020-10-04 15:48:49 +00:00
|
|
|
|
2020-11-14 18:12:10 +00:00
|
|
|
#bin/tape.prg: bin/snake.pack.lz.file
|
|
|
|
# dasm src/tape.asm -Isrc/ -DVERBOSE=$(VERBOSE) -f1 -sbuild/tape.sybols.txt -obin/tape.prg
|
|
|
|
|
|
|
|
#bin/snake.pack.lz.file: bin/snake.pack.lz
|
|
|
|
# echo -e "\x00\x80" > bin/snake.pack.lz.file
|
|
|
|
# cat bin/snake.pack.lz >> bin/snake.pack.lz.file
|
|
|
|
|
|
|
|
bin/snake.prg: bin/snake.pack
|
|
|
|
dasm src/prg.asm -Isrc/ -DVERBOSE=$(VERBOSE) -f1 -sbuild/prg.symbols.txt -obin/snake.prg
|
|
|
|
|
2020-10-04 15:48:49 +00:00
|
|
|
bin/snake.pack: env $(ASM) $(RES) bin/explodefont
|
|
|
|
dasm src/main.asm -Isrc/ -DSYSTEM=64 -DDEBUG=$(DEBUG) -DVERBOSE=$(VERBOSE) -DCARTRIDGE=$(CARTRIDGE) -f3 -sbuild/pack.symbols.txt -obin/snake.pack
|
|
|
|
|
|
|
|
bin/snake.pack.lz: bin/snake.pack liblzg/src/tools/lzg
|
|
|
|
liblzg/src/tools/lzg bin/snake.pack > bin/snake.pack.lz
|
|
|
|
|
|
|
|
liblzg/src/tools/lzg:
|
|
|
|
cd liblzg/src && make
|
2020-04-01 19:11:08 +00:00
|
|
|
|
|
|
|
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-09-15 12:57:10 +00:00
|
|
|
bin/explodefont: util/explodefont.cpp
|
2020-04-01 19:11:08 +00:00
|
|
|
g++ -o bin/explodefont util/explodefont.cpp
|
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
|
|
|
|
|
2020-10-04 15:48:49 +00:00
|
|
|
res.bin/unlzg.bin:
|
|
|
|
cp res.org/unlzg.bin res.bin/unlzg.bin
|
|
|
|
|
2020-04-01 23:13:10 +00:00
|
|
|
bin/level: util/rlevel.cpp
|
|
|
|
g++ -o bin/level util/rlevel.cpp
|
|
|
|
|
|
|
|
|