diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 23 insertions, 28 deletions
@@ -1,46 +1,41 @@ +CL65=cl65 +AXE=axe + all: reloc.atr reloc25.atr native.atr reloc25.atr: reloc.atr cp dos25_4drives.atr reloc25.atr - axe -w autorun.sys reloc25.atr + $(AXE) -w autorun.sys reloc25.atr -reloc.atr: reloc.xex hello40.xex hello41.xex autorun.sys +reloc.atr: reloc.xex lo.xex hi.xex autorun.sys cp dos_20s.atr reloc.atr - axe -w autorun.sys reloc.atr + $(AXE) -w autorun.sys reloc.atr native.atr: mkreloc.xex reloc.xex autorun.sys cp dos_20s.atr 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 hello40.xex hello41.xex mkreloc - cp hello40.xex lo.xex - cp hello41.xex hi.xex + $(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 mkrelocxex.pl - cl65 -t none -o reloc.xex reloc.s +reloc.xex: reloc.s mkreloc + $(CL65) -t none -o reloc.xex reloc.s mkreloc.xex: mkreloc.c - cl65 -t atari -o mkreloc.xex mkreloc.c + $(CL65) -t atari -o mkreloc.xex -Wl -D__SYSTEM_CHECK__=1 mkreloc.c -#reloc.atr: reloc.xex hello40.xex hello41.xex mkrelocxex.pl autorun.sys -# cp dos_20s.atr reloc.atr -# axe -w autorun.sys reloc.atr -# -#autorun.sys: reloc.xex hello40.xex hello41.xex -# ./mkrelocxex.pl hello40.xex hello41.xex autorun.sys -# -#reloc.xex: reloc.s mkrelocxex.pl -# cl65 -t none -o reloc.xex reloc.s +mkreloc: mkreloc.c + $(CC) $(CFLAGS) -Wall -o mkreloc mkreloc.c -hello40.xex: hello.s - cl65 -t none -o hello40.xex --asm-define start_addr=0x4000 hello.s +lo.xex: hello.s + $(CL65) -t none -o lo.xex --asm-define start_addr=0x4000 hello.s -hello41.xex: hello.s - cl65 -t none -o hello41.xex --asm-define start_addr=0x4100 hello.s +hi.xex: hello.s + $(CL65) -t none -o hi.xex --asm-define start_addr=0x4100 hello.s clean: - rm -f reloc.atr hello40.xex hello41.xex reloc.xex mkreloc mkreloc.xex native.atr reloc25.atr *.o + rm -f reloc.atr lo.xex hi.xex reloc.xex mkreloc mkreloc.xex native.atr reloc25.atr *.o |