gb_test2

annotate Makefile @ 5:be6f719279b6

better chessboard
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Jan 2019 08:02:38 +0200
parents d63782badb6b
children
rev   line source
nuclear@0 1 src = test.asm
nuclear@0 2 obj = test.o
nuclear@0 3 bin = test
nuclear@0 4 img = test.gb
nuclear@0 5
nuclear@0 6 $(img): $(bin)
nuclear@0 7 cp $< $@
nuclear@0 8 rgbfix -v -p 0 $@
nuclear@0 9
nuclear@0 10 $(bin): $(obj)
nuclear@0 11 rgblink -o $@ $(obj)
nuclear@0 12
nuclear@0 13 %.o: %.asm
nuclear@0 14 rgbasm -o $@ $<
nuclear@0 15
nuclear@0 16 test.o: test.asm sin.inc logo.tiles logo.tilemap
nuclear@0 17
nuclear@0 18 .PHONY: clean
nuclear@0 19 clean:
nuclear@0 20 rm -f $(obj) $(bin) $(img)
nuclear@0 21
nuclear@1 22 .PHONY: run
nuclear@1 23 run: $(img)
nuclear@1 24 sameboy $<
nuclear@1 25
nuclear@0 26 logo.tiles: logo.png
nuclear@0 27 rgbgfx -T -u -o $@ $<
nuclear@0 28
nuclear@1 29 sin.inc: gensine
nuclear@0 30 ./gensine >$@
nuclear@4 31
nuclear@4 32 test2k.rom: $(img)
nuclear@4 33 dd if=$< of=$@ bs=1 count=2048
nuclear@4 34
nuclear@4 35 .PHONY: program
nuclear@4 36 program: test2k.rom
nuclear@4 37 minipro -p 'AT28C16E @DIP24' -w $<