-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
69 lines (55 loc) · 3.3 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
65
66
67
68
69
CARTBIN=./examples/IKplus_contrib_beta1_player_only.bin
#VERBOSE=--verbose
#VERBOSE=--verbose --verbose
#TESTING=-DTESTING
all: ikconv
ikconv: Makefile main.c lrc.c ultrastar.c ikmod.c sid.c karaoke.h Makefile
$(CC) $(TESTING) -O3 -W -Wall -Wextra -Wno-unused-result -o ikconv main.c
.PHONY: test
test: testikmod testlrc testusc
testikmod: ikconv
mkdir -p ./test
# ./ikconv $(VERBOSE) --readikmod ./examples/01-aces_high.mod --writeikmod ./test/aces_high-1.mod
./ikconv $(VERBOSE) --readikmod ./examples/01-aces_high.mod --writesid ./test/aces_high.sid --writeikasm ./test/aces_high.asm
acme --initmem 255 -o ./test/aces_high-asm.mod ./test/aces_high.asm
testlrc: ikconv
mkdir -p ./test
./ikconv $(VERBOSE) --readlrc ./examples/Break_Free.lrc --writelrc ./test/Break_Free.lrc
./ikconv $(VERBOSE) --readlrc ./examples/Break_Free.lrc --writeusc ./test/Break_Free-2.usc
./ikconv $(VERBOSE) --readsid ./examples/Break_Free.sid --readlrc ./examples/Break_Free.lrc --writeikmod ./test/Break_Free-lrc.mod
# ./ikconv $(VERBOSE) --readikmod ./test/01-aces_high.mod --writelrc ./test/aces_high.lrc --writesid ./test/aces_high.sid
# ./ikconv $(VERBOSE) --readsid ./test/aces_high.sid --readlrc ./test/aces_high.lrc --writeikmod ./test/aces_high-2.mod
testusc: ikconv
mkdir -p ./test
./ikconv $(VERBOSE) --readusc "./examples/Queen - I want to break free.txt" --writeusc ./test/Break_Free.usc
./ikconv $(VERBOSE) --readsid ./examples/Break_Free.sid --readusc "./examples/Queen - I want to break free.txt" --writeikmod ./test/Break_Free-usc.mod --writeikasm ./test/Break_Free-usc.asm
acme --initmem 255 -o ./test/Break_Free-usc-asm.mod ./test/Break_Free-usc.asm
# ./ikconv $(VERBOSE) --readikmod ./test/01-aces_high.mod --writeusc ./test/aces_high.usc --writesid ./test/aces_high-1.sid
# ./ikconv $(VERBOSE) --readikmod ./test/Break_Free-usc.mod --writeusc ./test/Break_Free-1.usc --writesid ./test/Break_Free-1.sid
./ikconv $(VERBOSE) --readikmod ./test/Break_Free-usc-asm.mod --writesid ./test/Break_Free-2.sid --writeikasm ./test/Break_Free-2.asm
testcartik: testikmod
mkdir -p ./test
cp $(CARTBIN) ./test/IKplus_v3_test.bin
cat ./test/aces_high-asm.mod >> ./test/IKplus_v3_test.bin
dd if=/dev/null of=./test/IKplus_v3_test.bin bs=1 count=0 seek=1048576
x64sc -carteasy ./test/IKplus_v3_test.bin
testcartusc: ikconv
mkdir -p ./test
./ikconv $(VERBOSE) --readsid ./examples/Break_Free.sid --readusc "./examples/Queen - I want to break free.txt" --writeikmod ./test/Break_Free-usc.mod
./ikconv $(VERBOSE) --readsid ./examples/Break_Free.sid --readusc "./examples/Queen - I want to break free.txt" --writeikasm ./test/Break_Free-usc.asm
acme --initmem 255 -o ./test/Break_Free-usc-asm.mod ./test/Break_Free-usc.asm
cp $(CARTBIN) ./test/IKplus_v3_test.bin
diff ./test/Break_Free-usc.mod ./test/Break_Free-usc-asm.mod
# cat ./test/Break_Free-usc.mod >> ./test/IKplus_v3_test.bin
cat ./test/Break_Free-usc-asm.mod >> ./test/IKplus_v3_test.bin
dd if=/dev/null of=./test/IKplus_v3_test.bin bs=1 count=0 seek=1048576
x64sc -carteasy ./test/IKplus_v3_test.bin
testcartlrc: testlrc
mkdir -p ./test
cp $(CARTBIN) ./test/IKplus_v3_test.bin
cat ./test/Break_Free-lrc.mod >> ./test/IKplus_v3_test.bin
dd if=/dev/null of=./test/IKplus_v3_test.bin bs=1 count=0 seek=1048576
x64sc -carteasy ./test/IKplus_v3_test.bin
clean:
rm -f ikconv
rm -f ./test/*