From 248b6c4a7b605d2946473bb7a86e130d892cefef Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 2 Jan 2015 11:14:50 +0000 Subject: [PATCH] Kernel: allow the user to set an environment variable for the sdcc libs --- Kernel/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Kernel/Makefile b/Kernel/Makefile index 30fbc942..b8638e80 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -29,10 +29,14 @@ export BINEXT = .rel # Adjust this as needed for your platform (or contribute a script # to look in the usual places !) # -ifeq ($(UNAME_S),Darwin) -export LIBZ80=/usr/local/share/sdcc/lib/$(CPU) +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=/usr/share/sdcc/lib/$(CPU) + export LIBZ80=$(SDCC_LIB)/$(CPU) endif else ifeq ($(CPU),6502) export CROSS_AS=ca65 -- 2.34.1