gb_test2

view Makefile @ 5:be6f719279b6

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