diff options
author | B. Watson <urchlay@slackware.uk> | 2025-04-29 16:27:27 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-04-29 16:27:27 -0400 |
commit | 67a4bf8f3fe0f01d3a7399eb5898c1a19f9a7699 (patch) | |
tree | 9868dcebb44f45f248218c1b2b21a3f480ea0672 /Makefile | |
parent | ebadf07af3c4c04bf2929ec406fd3b3c581e10fc (diff) | |
download | atari8-self-relocator-67a4bf8f3fe0f01d3a7399eb5898c1a19f9a7699.tar.gz |
Makefile: cleanup, use variables for cl65 and axe.
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 |