LIBS = -lm
# Use __ as the separator - requires nesC 1.2.9 or later
-PFLAGS += -fnesc-separator=__
+ifneq ($(filter sim,$(GOALS)),sim)
+ifneq ($(filter sim-sf,$(GOALS)),sim-sf)
+ PFLAGS += -fnesc-separator=__
+endif
+endif
AMADDR = ActiveMessageAddressC__addr
BUILDDIR ?= build/$(PLATFORM)
MAIN_EXE = $(BUILDDIR)/main.exe
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))