From: Alan Cox Date: Sat, 22 Aug 2015 08:21:34 +0000 (+0100) Subject: cpu-z80: use the findsdcc script X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=853bddec8dbd2fb4fdf993dd38ee76d6b9058ca9;p=FUZIX.git cpu-z80: use the findsdcc script --- diff --git a/Kernel/cpu-z80/rules.mk b/Kernel/cpu-z80/rules.mk index 233197a4..8de241ae 100644 --- a/Kernel/cpu-z80/rules.mk +++ b/Kernel/cpu-z80/rules.mk @@ -16,15 +16,4 @@ export ASMEXT = .s export BINEXT = .rel export BITS=16 # -# Adjust this as needed for your platform (or contribute a script -# to look in the usual places !) -# -ifeq ($(SDCC_LIB),) - ifeq ($(UNAME_S),Darwin) - export LIBZ80=/usr/local/share/sdcc/lib/$(CPU) - else - export LIBZ80=/usr/share/sdcc/lib/$(CPU) - endif -else - export LIBZ80=$(SDCC_LIB)/$(CPU) -endif +export LIBZ80=$(shell tools/findsdcc $(CPU))