@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 CP=copy
@set SPRPCK=sprpck -p1 -t6
@set ECHO=echo
@set CODE_SEGMENT=INTRO_CODE
@set DATA_SEGMENT=INTRO_DATA
@set RODATA_SEGMENT=INTRO_RODATA
@set BSS_SEGMENT=INTRO_BSS
@set CC65_ASMINC=%CC65_HOME%\asminc
@set AS=ca65 -t lynx
@set CL=cl65 -t lynx -Oirs
@set CP=copy
@set SPRPCK=sprpck


@REM intro.s: intro.c Makefile
	@%CC% --code-name %CODE_SEGMENT% --rodata-name %RODATA_SEGMENT% --bss-name %BSS_SEGMENT% --data-name %DATA_SEGMENT% *.c

@%AS% -I "%CC65_ASMINC%" intro.s