2017-04-10 03:36:04 +00:00
|
|
|
|
|
|
|
all: cp437.mw8080.c c64.mw8080.c baddies-horiz.rot.c scrappy.rot.c
|
|
|
|
|
2017-04-15 04:12:21 +00:00
|
|
|
# convert DOS CP437 font (256 chars)
|
2017-04-10 17:39:48 +00:00
|
|
|
cp437.mw8080.c: ../fonts/cp437-8x8.bdf
|
2017-04-10 03:36:04 +00:00
|
|
|
python ../parsebdf8.py $< -f -r -C > $@
|
|
|
|
|
2017-04-15 04:12:21 +00:00
|
|
|
# convert C64 font (63 chars)
|
2017-04-10 17:39:48 +00:00
|
|
|
c64.mw8080.c: ../fonts/c64.bdf
|
2017-04-10 03:36:04 +00:00
|
|
|
python ../parsebdf8.py $< -f -r -C -s 32 -e 94 > $@
|
|
|
|
|
|
|
|
%.h:
|
|
|
|
cat $* | hexdump -v -e '"\n" 128/1 "0x%02x,"'
|
|
|
|
|
2017-04-15 04:12:21 +00:00
|
|
|
# convert PBM bitmap to C array
|
2017-04-10 03:36:04 +00:00
|
|
|
%.c: %.pbm
|
|
|
|
python ../pbm_to_c.py $< > $@
|
|
|
|
|
|
|
|
#%.rot.pbm: %.pbm
|
|
|
|
# convert $< -transpose -bordercolor white -border 4x4 $@
|
|
|
|
|
2017-04-15 04:12:21 +00:00
|
|
|
# rotate and dither example bitmaps
|
|
|
|
|
2017-04-10 17:39:48 +00:00
|
|
|
baddies-horiz.rot.pbm: ../images/baddies-horiz.png
|
2017-04-10 03:36:04 +00:00
|
|
|
convert $< +dither -brightness-contrast 50x50 -fill black -transpose -negate $@
|
|
|
|
|
2017-04-10 17:39:48 +00:00
|
|
|
scrappy.rot.pbm: ../images/scrappy48x64.pbm
|
2017-04-10 03:36:04 +00:00
|
|
|
convert $< -transpose -bordercolor white -border 4x4 $@
|
|
|
|
|