From: Alan Cox Date: Fri, 2 Jan 2015 10:03:27 +0000 (+0000) Subject: libclean: Search for SDCC in the same places as kernel/Makefile X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=86010f002d59ba40efa0ca61b07b674b7b6535bf;p=FUZIX.git libclean: Search for SDCC in the same places as kernel/Makefile From: Sergio L. Pascual --- diff --git a/Library/tools/libclean b/Library/tools/libclean index 12df92c0..f7d99dfd 100755 --- a/Library/tools/libclean +++ b/Library/tools/libclean @@ -4,7 +4,15 @@ # IMHO beats forking the library or building a private copy. # # -cp /opt/sdcc/share/sdcc/lib/z80/z80.lib tmp.lib +UNAME_S=`uname -s` + +if [ "${UNAME_S}" = "Darwin" ]; then + SDCC_LIB="/usr/local/share/sdcc/lib" +else + SDCC_LIB="/usr/share/sdcc/lib" +fi + +cp ${SDCC_LIB}/z80/z80.lib tmp.lib # # Scrub the functions we don't want to inherit # Need to review setjmp and maybe a couple of others