CL65=cl65 AXE=axe all: reloc.atr reloc25.atr native.atr reloc25.atr: reloc.atr cp dos25_sd.atr reloc25.atr $(AXE) -w autorun.sys reloc25.atr reloc.atr: reloc.xex lo.xex hi.xex autorun.sys cp dos_20s.atr reloc.atr $(AXE) -w autorun.sys reloc.atr native.atr: mkreloc.xex reloc.xex autorun.sys cp dos_20s.atr native.atr $(AXE) -D autorun.sys native.atr $(AXE) -w lo.xex native.atr $(AXE) -w hi.xex native.atr $(AXE) -w reloc.xex native.atr $(AXE) -w mkreloc.xex native.atr autorun.sys: reloc.xex lo.xex hi.xex mkreloc ./mkreloc reloc.xex: reloc.s mkreloc $(CL65) -t none -o reloc.xex reloc.s mkreloc.xex: mkreloc.c $(CL65) -t atari -o mkreloc.xex --start-addr 0x4000 -Wl -D__SYSTEM_CHECK__=1 mkreloc.c mkreloc: mkreloc.c $(CC) $(CFLAGS) -Wall -o mkreloc mkreloc.c lo.xex: hello.s $(CL65) -t none -o lo.xex --asm-define start_addr=0x4000 hello.s hi.xex: hello.s $(CL65) -t none -o hi.xex --asm-define start_addr=0x4100 hello.s clean: rm -f reloc.atr lo.xex hi.xex reloc.xex mkreloc mkreloc.xex native.atr reloc25.atr *.o