@rem The variable CC65_HOME should point to the cc65 directory
@set CC65_HOME=c:\cc65

@path=%path%;%CC65_HOME%\bin

@set CC65_ASMINC=%CC65_HOME%\asminc
@set AS=ca65 -t lynx
@set CC=cc65 -t lynx -Oirs
@set CL=cl65 -t lynx -Oirs
@set CP=copy
@set SPRPCK=sprpck

@REM %AS% -I "%CC65_ASMINC%" -l -o %AFLAGS% *.s

@%AS% -I "%CC65_ASMINC%" directory.s
@%AS% -I "%CC65_ASMINC%" encrypt1024.s
@%AS% -I "%CC65_ASMINC%" lnxhdr.s
@%AS% -I "%CC65_ASMINC%" title.s

@%CL% -o catkanoid.lnx -m cart.map -C lynxcart.cfg lnxhdr.o encrypt1024.o directory.o title.o ..\resident\resident.o ..\resident\lynx-stdjoy.o ..\resident\lynx-160-102-16.o ..\resident\fileexec.o ..\resident\fileload.o ..\resident\filedir.o ..\resident\filehelp.o ..\resident\abcmusic.o ..\resident\vbl.o ..\resident\irq.o ..\resident\fadein.o ..\resident\fadeout.o ..\intro\intro.o ..\maingame\maingame.o lynx.lib 