mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +00:00
26 lines
628 B
Makefile
26 lines
628 B
Makefile
|
|
||
|
CC65FLAGS=-I/home/huggvey/compilers/cc65/include -I/home/huggvey/compilers/cc65/include/nes -L/home/huggvey/compilers/cc65/lib --cfg-path /home/huggvey/compilers/cc65/cfg/
|
||
|
|
||
|
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
|
||
|
ld65 -o $@ -C atarivec.cfg $*.o atari2600.lib
|
||
|
|
||
|
%.lzg: %.nes
|
||
|
lzg $< | hexdump -v -e '"\n" 32/1 "%u,"' > $@
|