2017-05-21 21:34:57 +00:00
|
|
|
|
2017-11-07 21:41:07 +00:00
|
|
|
CC65FLAGS=-I/home/hugg/compilers/cc65/include -I/home/hugg/compilers/cc65/include/nes -L/home/hugg/compilers/cc65/lib --cfg-path /home/hugg/compilers/cc65/cfg/ -v
|
2017-05-21 21:34:57 +00:00
|
|
|
|
|
|
|
all: \
|
|
|
|
default_neslib.neslib.nes default_conio.conio.nes \
|
|
|
|
default_neslib.neslib.lzg default_conio.conio.lzg
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.s *.o *.nes *.lzg
|
|
|
|
|
|
|
|
#%.s: %.c
|
|
|
|
# cc65 $*.c
|
|
|
|
# ca65 $*.s
|
|
|
|
|
|
|
|
%.neslib.nes: %.c
|
|
|
|
cl65 $(CC65FLAGS) -o $@ -t nes -C neslib.cfg $*.c neslib.lib nes.lib
|
|
|
|
|
|
|
|
%.conio.nes: %.c
|
|
|
|
cl65 $(CC65FLAGS) -o $@ -t nes $*.c nes.lib
|
|
|
|
|
|
|
|
%.rom: %.s
|
2017-11-07 21:41:07 +00:00
|
|
|
time ld65 -o $@ -C atarivec.cfg $*.o atari2600.lib
|
2017-05-21 21:34:57 +00:00
|
|
|
|
|
|
|
%.lzg: %.nes
|
|
|
|
lzg $< | hexdump -v -e '"\n" 32/1 "%u,"' > $@
|