@REM THIS SETTING SHOULD BE ALL YOU NEED TO CHANGE
@set CC65_HOME=c:\cc65

@path=%path%;%CC65_HOME%\bin
@set LINK_OPTIONS=-C %CC65_HOME%\lib\nes_chr-ram.cfg %CC65_HOME%\modifiedneslib\crt0_chr-ram.o %CC65_HOME%\lib\rNES.o %CC65_HOME%\modifiedneslib\nes.lib

@cls
@REM Clean
@del *.nes
@del *.o
@del *.s

@REM Compile, assemble, and link
cc65 -t nes invaders.c
cc65 -t nes graphics\tiles.c

ca65 -t nes -l invaders.s
ca65 -t nes -l graphics\tiles.s

ld65 -o invaders.nes invaders.o graphics\tiles.o %LINK_OPTIONS% 

@REM run