From: Michel Pollet Date: Fri, 2 Mar 2012 14:27:52 +0000 (+0000) Subject: Makefile: OSX Update X-Git-Tag: v1.0b1~27 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=00ee1e92f04a7477cd2c5b1ba9374b4feb5f4f4c;p=sx%2Fsimavr.git Makefile: OSX Update Only add the MacPort dir if it's there. This removes a warning when linking Signed-off-by: Michel Pollet --- diff --git a/Makefile.common b/Makefile.common index d476d83..32edccc 100644 --- a/Makefile.common +++ b/Makefile.common @@ -40,7 +40,11 @@ ifeq (${shell uname}, Darwin) AVR_ROOT := "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/" AVR_INC := ${AVR_ROOT}/avr-4/ AVR := ${AVR_ROOT}/bin/avr- -LFLAGS += -L/opt/local/lib +# Thats for MacPorts libelf +ifeq (${shell test -d /opt/local && echo Exists}, Exists) +IPATH += /opt/local/include +LFLAGS = -L/opt/local/lib/ +endif else AVR_ROOT := /usr/lib/avr AVR_INC := ${AVR_ROOT}