# 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
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))