X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fmake%2Fthreads.extra;h=3961eb43f0360463bb228858cb820c6569a35f6a;hb=4bbaef97c9471e5d870e6a99d4a17de6df1de108;hp=04ed88fef05c6e88182bd2627ee6856a7c1c369c;hpb=2052eb08fc0e27ecca1f4140015dc6e87f959867;p=tinyos-2.x.git diff --git a/support/make/threads.extra b/support/make/threads.extra index 04ed88fe..3961eb43 100644 --- a/support/make/threads.extra +++ b/support/make/threads.extra @@ -1,5 +1,6 @@ # Extra threads Makefile target to enable thread support for tinyos # Kevin Klues May 16th, 2008 +# Chieh-Jan Mike Liang July 11th, 2008 #Set up flag signifying threads are enabled THREADS = THREADS @@ -28,11 +29,18 @@ THREADS_ATM128_INCLUDE_DIRS += -I$(THREADS_ATM128_DIR)/adc THREADS_ATM1281_DIR = $(TOS_THREADS_DIR)/chips/atm1281 THREADS_ATM1281_INCLUDE_DIRS = -I$(THREADS_ATM1281_DIR) +#CC2420 specific include directories on tested platforms +THREADS_CC2420_DIR = $(TOS_THREADS_DIR)/chips/cc2420 +THREADS_CC2420_INCLUDE_DIRS = -I$(THREADS_CC2420_DIR) + #Telos specific include directories THREADS_TELOS_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/platforms/telosa #Mica2 specific include directories -THREADS_MICA2_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/platforms/mica2/chips/cc1000 +THREADS_MICA2_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/chips/cc1000 -I$(TOS_THREADS_DIR)/platforms/mica2/chips/cc1000 -I$(TOS_THREADS_DIR)/platforms/mica2 + +#MicaZ specific include directories +THREADS_MICAZ_INCLUDE_DIRS = -I$(TOS_THREADS_DIR)/platforms/micaz #Add CFLAGS for supported platforms ifneq ($(filter telos telosa telosb tmote eyesIFX eyesIFXv2 shimmer,$(MAKECMDGOALS)),) @@ -48,8 +56,12 @@ ifneq ($(filter mica2,$(MAKECMDGOALS)),) endif ifneq ($(filter micaz,$(MAKECMDGOALS)),) CFLAGS += $(THREADS_ATM128_INCLUDE_DIRS) + CFLAGS += $(THREADS_MICAZ_INCLUDE_DIRS) endif ifneq ($(filter iris,$(MAKECMDGOALS)),) CFLAGS += $(THREADS_ATM1281_INCLUDE_DIRS) CFLAGS += $(THREADS_ATM128_INCLUDE_DIRS) endif +ifneq ($(filter telos telosa telosb tmote micaz shimmer,$(MAKECMDGOALS)),) + CFLAGS += $(THREADS_CC2420_INCLUDE_DIRS) +endif