osd-contiki/platform/redbee-econotag/Makefile.redbee-econotag
Robert Quattlebaum 5afcbf6fff Makefiles: Allow setting UIP_CONF_IPV6=0 to work as expected.
Setting UIP_CONF_IPV6 to zero from the make build command line is
something that seems like it should ensure that IPv6 is disabled, but in
fact it actually *enables* IPv6. This seems counter intuitive, so this
patch changes the behavior of the makefiles to handle this case
properly.
2013-01-14 22:03:42 -08:00

33 lines
694 B
Makefile

# -*- makefile -*-
define nl
endef
ifndef ALLOW_OLD_PLATFORMS
${error $(nl)$(nl)**** This platform is old and will soon be removed **** $(nl)$(nl)\
please use TARGET=econotag instead.$(nl)$(nl) \
(or set ALLOW_OLD_PLATFORMS=1 to proceed)$(nl)$(nl) }
endif
CONTIKI_TARGET_DIRS = . dev apps net
CONTIKI_CORE=contiki-mc1322x-main
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
CONTIKI_TARGET_SOURCEFILES += contiki-mc1322x-main.c clock.c button-sensor.c sensors.c slip.c light-sensor.c tmp102-sensor.c
CONTIKIMC1322X=$(CONTIKI)/cpu/mc1322x
CONTIKIBOARD=.
CONTIKI_PLAT_DEFS =
MCU=arm7tdmi-s
ifeq ($(UIP_CONF_IPV6),1)
CFLAGS += -DWITH_UIP6=1
endif
include $(CONTIKIMC1322X)/Makefile.mc1322x