-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (32 loc) · 867 Bytes
/
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
CC65 = cc65
CA65 = ca65
LD65 = ld65
CL65 = cl65
NAME = menu
CFG = nes.cfg
.PHONY: default clean
$menu: $(NAME).c
$(CC65) -Oir -Cl -t nes $(NAME).c
$(CC65) -Oir -Cl -t nes appList.c
$(CA65) $(NAME).s
$(CA65) crt0.s
$(CA65) interrupt.s
$(CA65) jumpToApp.s
$(CA65) appList.s
$(LD65) -C target.cfg crt0.o interrupt.o jumpToApp.o appList.o $(NAME).o nes.lib -o output.bin
python buildCHR.py
cat romdump_sup400in1_E7E0_init.bin output.bin apps.bin > output_final.bin
cat romdump_sup400in1_E7E0_init_swapBits45.bin output.bin apps.bin > output_final_swapBits45.bin
cat nesHeader.bin output_final.bin > output_final_nes.nes
clean:
rm $(NAME).o
rm $(NAME).s
rm appList.s
rm crt0.o
rm interrupt.o
rm jumpToApp.o
rm appList.o
rm output.bin
rm output_final.bin
rm output_final_swapBits45.bin
rm output_final_nes.nes