1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-27 01:51:35 +00:00
8bitworkshop/cc65/Makefile

26 lines
624 B
Makefile
Raw Normal View History

2017-05-21 21:34:57 +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
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,"' > $@