TARGET = c64 COMPILER = cc65 ASSEMBLER = ca65 LINKER = ld65 default: @echo 'Targets:' @echo ' build' @echo ' clean' build: hello hello: hello.o text.o $(LINKER) -o hello -t $(TARGET) hello.o text.o $(TARGET).lib hello.o: hello.s $(ASSEMBLER) hello.s text.o: text.s $(ASSEMBLER) -t $(TARGET) text.s hello.s: hello.c $(COMPILER) -O -t $(TARGET) hello.c clean: @rm -f hello.s @rm -f *.o @rm -f hello