From: Alan Cox Date: Wed, 21 Oct 2015 09:13:45 +0000 (+0100) Subject: libclean: find the libraries properly X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ec07467de9f5ea4425c6b7ddd584f4bdc5a2583d;p=FUZIX.git libclean: find the libraries properly --- diff --git a/Library/tools/libclean b/Library/tools/libclean index 1a9fb044..662d6e22 100755 --- a/Library/tools/libclean +++ b/Library/tools/libclean @@ -4,17 +4,10 @@ # IMHO beats forking the library or building a private copy. # # -UNAME_S=`uname -s` +CPU=z80 +LIBZ80=$(shell tools/findsdcc $(CPU)) -if [ x"$SDCC_LIB" = "x" ]; then - if [ "${UNAME_S}" = "Darwin" ]; then - SDCC_LIB="/usr/local/share/sdcc/lib" - else - SDCC_LIB="/usr/share/sdcc/lib" - fi -fi - -cp ${SDCC_LIB}/z80/z80.lib tmp.lib +cp $(LIBZ80)/$(CPU)/$(CPU).lib tmp.lib # # Scrub the functions we don't want to inherit # Need to review setjmp and maybe a couple of others