# All shared dirs and other inter-contrib stuff needs to go here # Potentially HOSTMOTEDIR can be placed here as well ifndef TOSDIR $(error TOSDIR UNDEFINED) else ifdef MAKERULES include $(MAKERULES) else include $(TOSDIR)/../apps/Makerules endif endif PROGRAMMER_EXTRA_FLAGS := -dno-poll -v=2 CFLAGS += -I../../../include ifdef EMSTAR_ROOT CFLAGS += -I$(EMSTAR_ROOT) -I$(EMSTAR_ROOT)/include endif CFLAGS += $(patsubst %, -I../../../%/tos/interfaces, $(CONTRIB_INCLUDES)) \ $(patsubst %, -I../../../%/tos/platform/$(PLATFORM), $(CONTRIB_INCLUDES)) \ $(patsubst %, -I../../../%/tos/system, $(CONTRIB_INCLUDES)) \ $(patsubst %, -I../../../%/tos/lib, $(CONTRIB_INCLUDES)) \ $(patsubst %, -I../../../%/tos/sensorboards/$(SENSORBOARD), $(CONTRIB_INCLUDES)) \