projects
/
ld45_start_nothing
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foo
[ld45_start_nothing]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
6d20b28
..
90ea9da
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,4
+1,5
@@
src = $(wildcard src/*.asm)
src = $(wildcard src/*.asm)
+data = data/sprsheet.inc
bin = game
QEMU_FLAGS = -fda floppy.img -serial file:serial.log -soundhw sb16 -d guest_errors
bin = game
QEMU_FLAGS = -fda floppy.img -serial file:serial.log -soundhw sb16 -d guest_errors
@@
-9,7
+10,7
@@
all: floppy.img
bootldr: src/boot/boot.asm $(bin)
nasm -o $@ -f bin -DBINSIZE=`ls -l $(bin) | awk '{print $$5}'` $<
bootldr: src/boot/boot.asm $(bin)
nasm -o $@ -f bin -DBINSIZE=`ls -l $(bin) | awk '{print $$5}'` $<
-$(bin): $(src)
+$(bin): $(src) $(data)
nasm -o $@ -f bin -i src/ src/main.asm
boot.img: bootldr $(bin)
nasm -o $@ -f bin -i src/ src/main.asm
boot.img: bootldr $(bin)
@@
-19,6
+20,9
@@
floppy.img: boot.img
dd of=$@ if=/dev/zero bs=512 count=2880
dd of=$@ if=$< bs=1 conv=notrunc
dd of=$@ if=/dev/zero bs=512 count=2880
dd of=$@ if=$< bs=1 conv=notrunc
+data/sprsheet.inc: data/sprsheet.png
+ img2tiles -o $@ -n -t 32x32 $<
+
.PHONY: clean
clean:
rm -f $(bin) bootldr floppy.img boot.img
.PHONY: clean
clean:
rm -f $(bin) bootldr floppy.img boot.img