X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fmake%2Fthreads.extra;h=b39a734fa9889104abb236e10ecd43c12975cd7a;hb=4f057e14d46beedf64d643bebd06ca3e7e903d1f;hp=50e21d3e95be35dde2edc0671a24ddb1d9b07a6d;hpb=6aa5152b73e4bfbd5b5e655e10cdb573ce4d4f06;p=tinyos-2.x.git diff --git a/support/make/threads.extra b/support/make/threads.extra index 50e21d3e..b39a734f 100644 --- a/support/make/threads.extra +++ b/support/make/threads.extra @@ -77,11 +77,25 @@ THREADS_EYES_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/platforms/eyesIFX #Shimmer specific include directories THREADS_SHIMMER_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/platforms/shimmer +#Epic specific include directories +THREADS_EPIC_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/platforms/epic + #Add CFLAGS for supported platforms ifneq ($(filter telos telosa telosb tmote,$(MAKECMDGOALS)),) CFLAGS += $(THREADS_MSP430_INCLUDE_DIRS) CFLAGS += $(THREADS_CC2420_INCLUDE_DIRS) CFLAGS += $(THREADS_TELOS_INCLUDE_DIRS) + + #Since Telosb has some sensors not on other platforms, this helps us figure out + #what components should be included + ifneq ($(filter telosb,$(MAKECMDGOALS)),) + CFLAGS += -DPLATFORM_TELOSB + endif +endif +ifneq ($(filter epic,$(MAKECMDGOALS)),) + CFLAGS += $(THREADS_MSP430_INCLUDE_DIRS) + CFLAGS += $(THREADS_CC2420_INCLUDE_DIRS) + CFLAGS += $(THREADS_EPIC_INCLUDE_DIRS) endif ifneq ($(filter mica2,$(MAKECMDGOALS)),) CFLAGS += $(THREADS_ATM128_INCLUDE_DIRS) @@ -120,4 +134,3 @@ ifneq ($(filter shimmer,$(MAKECMDGOALS)),) CFLAGS += $(THREADS_CC2420_INCLUDE_DIRS) CFLAGS += $(THREADS_SHIMMER_INCLUDE_DIRS) endif -