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

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

@set CC=cc65 -t lynx -Oirs
@set CO=co65
@set RM=rm -f
@set CP=copy
@set JOY_DRIVER=%CC65_HOME%\joy\lynx-stdjoy.joy
@set TGI_DRIVER=%CC65_HOME%\tgi\lynx-160-102-16.tgi
@set AS=ca65 -t lynx
@set CC65_ASMINC=%CC65_HOME%\asminc


@REM lynx-stdjoy.s :
	@%CP% "%JOY_DRIVER%" .
	@%CO% --code-label _lynxjoy lynx-stdjoy.joy

@REM lynx-160-102-16.s :
	@%CP% "%TGI_DRIVER%" .
	@%CO% --code-label _lynxtgi lynx-160-102-16.tgi

@REM resident.s: resident.c
	@%CC% *.c
	
@%AS% -I "%CC65_ASMINC%" fadein.s
@%AS% -I "%CC65_ASMINC%" abcmusic.s
@%AS% -I "%CC65_ASMINC%" fadeout.s
@%AS% -I "%CC65_ASMINC%" filedir.s
@%AS% -I "%CC65_ASMINC%" fileexec.s
@%AS% -I "%CC65_ASMINC%" filehelp.s
@%AS% -I "%CC65_ASMINC%" fileload.s
@%AS% -I "%CC65_ASMINC%" irq.s
@%AS% -I "%CC65_ASMINC%" serial.s
@%AS% -I "%CC65_ASMINC%" resident.s
@%AS% -I "%CC65_ASMINC%" lynx-stdjoy.s
@%AS% -I "%CC65_ASMINC%" lynx-160-102-16.s
