# --------------------------------
# makefile by bill buckels 2008
# --------------------------------
PRG=SILLY

$(PRG).sys: $(PRG).r
    LN65 +s +H 4000,6004 $(PRG).R $(CR65)samain.r -lSYSIO -lg2 -lc -ls -lm -lSYSIO -lg2 -lc -ls -lm
    del $(PRG).R
    MAKEPRO2 $(PRG) $(PRG).BIN
    del $(PRG)
    @echo $(PRG).SYS now created!

$(PRG).r: $(PRG).c
           c65 $(PRG).c

