# User makefiles include this one to setup the tinyos environment for this # instance of the TinyOS source tree and build scripts. # # The pro of this approach is that we don't need any environment support for # doing make-ish things in TinyOS. The con is that things that run outside # of make break, like tos-check-env, tos-deluge, and tos-bsl (the latter if # under Cygwin and using cp2103 based motes). # Set TOSROOT to the directory in which this include file is located this := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) export TOSROOT := $(shell dirname $(this)) # Build an updated CLASSPATH ifeq (,$(CLASSPATH)) tmpCLASS := $(TOSROOT)/support/sdk/java else tmpCLASS := $(CLASSPATH):$(TOSROOT)/support/sdk/java endif export TOSDIR = $(TOSROOT)/tos export CLASSPATH = $(tmpCLASS) export MAKERULES = $(TOSROOT)/support/make/Makerules include $(MAKERULES)