From 27d5e2338ab541ec7926d305aec12558f3abe1b2 Mon Sep 17 00:00:00 2001 From: nifi Date: Tue, 9 Feb 2010 07:34:37 +0000 Subject: [PATCH] Added convenient flag to include codeprop --- platform/esb/Makefile.esb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/platform/esb/Makefile.esb b/platform/esb/Makefile.esb index 92dcd8074..0c372b974 100644 --- a/platform/esb/Makefile.esb +++ b/platform/esb/Makefile.esb @@ -1,4 +1,4 @@ -# $Id: Makefile.esb,v 1.13 2010/02/09 07:04:11 nifi Exp $ +# $Id: Makefile.esb,v 1.14 2010/02/09 07:34:37 nifi Exp $ SENSORS = sensors.c irq.c button-sensor.c pir-sensor.c vib-sensor.c \ sound-sensor.c radio-sensor.c ctsrts-sensor.c battery-sensor.c \ @@ -17,6 +17,15 @@ CONTIKI_TARGET_SOURCEFILES += $(SENSORS) $(ESB) \ contiki-esb-default-init-lowlevel.c \ contiki-esb-default-init-apps.c \ rs232.c rs232-putchar.c fader.c $(CONTIKI_TARGET_MAIN) + +ifdef WITH_CODEPROP +CONTIKI_TARGET_DIRS += ../../apps/codeprop +CONTIKI_TARGET_SOURCEFILES += codeprop-tmp.c +ifndef NETSTACK +NETSTACK = uip +endif +endif + ifeq ($(NETSTACK),uip) CONTIKI_TARGET_SOURCEFILES += contiki-esb-init-net-uip.c uip-ipchksum.c else