LD = ../bin/ld65 AS = ../bin/ca65 CC = ../bin/cc65 AL = ../bin/align DA = /home/astoria/bin/da65 CINCLUDE = -I../include CFLAGS = -t none --cpu $(CPU) LFLAGS = -C ../lib/rpc8e.cfg LLIBS = ../lib/rpc8e.lib #gonna leave this here for now CPU = 65c02 IMAGES = test_iox.img .PHONY: all all: $(IMAGES) %.s: %.c $(CC) $(CFLAGS) $(CINCLUDE) $< %.o: %.s $(AS) $(CFLAGS) $< %.img: %.o conio.o $(LD) $(LFLAGS) $< conio.o $(LLIBS) -o $@ $(AL) $@ clean: rm *.o *.s .PHONY: testemu testemu: test_iox.img emu65el02 test_iox.img .PHONY: testgame testgame: test_iox.img touch /home/astoria/.local/share/PolyMC/instances/WOAHITSBACK/.minecraft/saves/New\ World-/redpower/disk_09e74aca3d58e92a.img rm /home/astoria/.local/share/PolyMC/instances/WOAHITSBACK/.minecraft/saves/New\ World-/redpower/disk_09e74aca3d58e92a.img cp test_iox.img /home/astoria/.local/share/PolyMC/instances/WOAHITSBACK/.minecraft/saves/New\ World-/redpower/disk_09e74aca3d58e92a.img .PHONY: devgame devgame: test_iox.img touch /home/astoria/Downloads/redpower/saves/New\ World/redpower/disk_b2f279b88ec3d8f5.img rm /home/astoria/Downloads/redpower/saves/New\ World/redpower/disk_b2f279b88ec3d8f5.img cp test_iox.img /home/astoria/Downloads/redpower/saves/New\ World/redpower/disk_b2f279b88ec3d8f5.img .SUFFIXES: