Makezmac.~1.1.~
上传用户:joranyuan
上传日期:2022-06-23
资源大小:3306k
文件大小:1k
- #
- # Makefile to be included by each application's Makefile for S-MAC
- # Author: Wei Ye
- #
- ifndef TOSDIR
- $(error TOSDIR is not defined)
- endif
- ifndef ZMACDIR
- ZMACDIR := ../../tos
- $(warning ZMACDIR is not defined, assuming $(ZMACDIR).)
- endif
- INCLUDE := -I.
- PLATALL = mica mica2 mica2dot emstar
- PLATFORM = $(filter $(PLATALL), $(MAKECMDGOALS))
- ifeq ($(PLATFORM),mica)
- INCLUDE += -I$(ZMACDIR)/platform/mica
- else
- ifeq ($(PLATFORM),mica2)
- INCLUDE += -I$(ZMACDIR)/platform/mica2
- else
- ifeq ($(PLATFORM),mica2dot)
- INCLUDE += -I$(ZMACDIR)/platform/mica2dot -I$(ZMACDIR)/platform/mica2
- else
- ifeq ($(PLATFORM),emstar)
- INCLUDE += -I$(ZMACDIR)/platform/emstar
- endif
- endif
- endif
- endif
- INCLUDE += -I$(ZMACDIR)/interfaces -I$(ZMACDIR)/system
- CFLAGS += $(INCLUDE)
- #disable nesC warning messages
- NESC_FLAGS = -Wall
- include $(TOSDIR)/../apps/Makerules
- PFLAGS := -DSEND_RATE=$(SEND_RATE) -DSINK_ADDRESS=$(SINKA) -DNO_TWO_HOP=$(NT) -DPOWER=$(POWER) -DSELECTHCL=$(HCL) -DSELECTNDC=$(NDC) $(PFLAGS)