-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
64 lines (43 loc) · 2.76 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CC=gcc
all: font_view font16_ext rom_patch bdf_fix msg_dump bdf_fix bdf16_fix
roms: sango2_cht_zpix.nes sango2_cht_cubic.nes sango2_cht_fusion.nes sango2_cht_fireflyR12.nes sango2_cht_wqy.nes
tabs: char_list_u16.txt replace_u16.txt large_char_list_big5.txt
font_view: font_view.c
$(CC) -o $@ $^
font16_ext: font16_ext.c
$(CC) -o $@ $^
rom_patch: rom_patch.c
$(CC) -g -o $@ $^
bdf_fix: bdf_fix.c
$(CC) -o $@ $^
bdf16_fix: bdf16_fix.c
$(CC) -o $@ $^
msg_dump: msg_dump.c
$(CC) -o $@ $^
sango2_cht_zpix.nes: rom_patch char_list_u16.txt replace_u16.txt large_char_list_big5.txt
./rom_patch -b zpix.bdf -f taipei16_fix.bdf -c char_list_u16.txt -l large_char_list_big5.txt -s sango2_chs.nes -j sango2_jpn.nes -r replace_u16.txt -o $@
mkdir sango2_cht_zpix; cp $@ sango2_cht_zpix/; zip -r sango2_cht_zpix.zip sango2_cht_zpix
sango2_cht_cubic.nes: rom_patch char_list_u16.txt replace_u16.txt large_char_list_big5.txt
./rom_patch -b cubic11_11_80.bdf -f taipei16_fix.bdf -c char_list_u16.txt -l large_char_list_big5.txt -s sango2_chs.nes -j sango2_jpn.nes -r replace_u16.txt -o $@
mkdir sango2_cht_cubic; cp $@ sango2_cht_cubic/; cp OFL.txt sango2_cht_cubic/; zip -r sango2_cht_cubic.zip sango2_cht_cubic
sango2_cht_fusion.nes: rom_patch char_list_u16.txt replace_u16.txt large_char_list_big5.txt
./rom_patch -b fusion-pixel-11px-monospaced-zh_hant.bdf -f taipei16_fix.bdf -c char_list_u16.txt -l large_char_list_big5.txt -s sango2_chs.nes -j sango2_jpn.nes -r replace_u16.txt -o $@
mkdir sango2_cht_fusion; cp $@ sango2_cht_fusion/; cp LICENSE-OFL sango2_cht_fusion/; zip -r sango2_cht_fusion.zip sango2_cht_fusion
sango2_cht_fireflyR12.nes: rom_patch char_list_u16.txt replace_u16.txt large_char_list_big5.txt
./rom_patch -b fireflyR12.bdf -f taipei16_fix.bdf -c char_list_u16.txt -l large_char_list_big5.txt -s sango2_chs.nes -j sango2_jpn.nes -r replace_u16.txt -o $@
mkdir sango2_cht_firefly; cp $@ sango2_cht_firefly/; cp ARPHICPL.TXT sango2_cht_firefly/; zip -r sango2_cht_firefly.zip sango2_cht_firefly
sango2_cht_wqy.nes: rom_patch char_list_u16.txt replace_u16.txt large_char_list_big5.txt
./rom_patch -b wqysong9.bdf -f taipei16_fix.bdf -c char_list_u16.txt -l large_char_list_big5.txt -s sango2_chs.nes -j sango2_jpn.nes -r replace_u16.txt -o $@
char_list_u16.txt: char_list.txt
iconv -f UTF-8 -t UTF-16LE $< > $@
replace_u16.txt: replace.txt
iconv -f UTF-8 -t UTF-16LE $< > $@
large_char_list_big5.txt: large_char_list.txt
iconv -f UTF-8 -t BIG5 $< > $@
iconv -f UTF-8 -t UTF-16LE $< > large_char_list_u16.txt
clean:
rm -f font_view font16_ext rom_patch bdf_fix msg_dump
clean_roms:
rm -f sango2_cht_zpix.nes sango2_cht_cubic.nes sango2_cht_fusion.nes sango2_cht_fireflyR12.nes sango2_cht_wqy.nes
clean_tabs:
rm -f char_list_u16.txt replace_u16.txt large_char_list_big5.txt