]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/avr/avr.rules
Use /opt/local/etc/avrdude.conf for svrdude in MacOS.
[tinyos-2.x.git] / support / make / avr / avr.rules
index 02e11fc5479e9e83f7a675335eb23c57512d004f..c45ed74794471577aed4d40e41dac9b997ca7cc3 100644 (file)
@@ -37,7 +37,7 @@ LIBS = -lm
 
 # Use __ as the separator - requires nesC 1.2.9 or later
 ifneq ($(filter sim,$(GOALS)),sim)
-ifneq ($(filter sim-sim,$(GOALS)),sim-sim)
+ifneq ($(filter sim-sf,$(GOALS)),sim-sf)
        PFLAGS += -fnesc-separator=__
 endif
 endif
@@ -68,6 +68,9 @@ else
 endif
 
 ifeq ($(PROGRAMMER),avrdude)
+  ifeq ($(findstring darwin, $(OSTYPE)), darwin)
+    AVRDUDE_CONF ?= /opt/local/etc/avrdude.conf
+  endif
   AVRDUDE_CONF ?= /etc/avrdude/avrdude.conf
   ifeq ($(shell [ -f /bin/cygwin1.dll ] && echo cygwin),cygwin)
     AVRDUDE_CONF := $(shell cygpath -m $(AVRDUDE_CONF))