2011-08-09 03:55:19 +00:00
|
|
|
CONTIKI_PROJECT=webserver6
|
|
|
|
all: $(CONTIKI_PROJECT) $(WITH_WEBSERVER)
|
2011-07-24 15:59:28 +00:00
|
|
|
|
|
|
|
ifeq ($(WITH_WEBSERVER),)
|
|
|
|
#
|
|
|
|
#Set default webserver for different platforms
|
|
|
|
#Although Makefile.include sets the default target, we need to know it now.
|
|
|
|
#
|
|
|
|
ifeq ($(TARGET),)
|
|
|
|
-include Makefile.target
|
|
|
|
endif
|
|
|
|
ifeq ($(TARGET),sky)
|
2011-09-05 23:59:16 +00:00
|
|
|
SMALL=1
|
2011-07-24 15:59:28 +00:00
|
|
|
WITH_WEBSERVER=webserver-nano
|
|
|
|
else ifeq ($(TARGET),avr-raven)
|
|
|
|
WITH_WEBSERVER=raven-webserver
|
|
|
|
endif
|
|
|
|
#
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(WITH_WEBSERVER),)
|
|
|
|
APPS = $(WITH_WEBSERVER)
|
2011-07-24 16:54:12 +00:00
|
|
|
ifeq ($(WITH_WEBSERVER),raven-webserver)
|
|
|
|
APPS+=raven-lcd-interface
|
|
|
|
endif
|
2011-07-24 15:59:28 +00:00
|
|
|
#copy output to e.g. webserver-nano.sky, raven-webserver.avr-raven
|
2011-08-09 03:55:19 +00:00
|
|
|
$(WITH_WEBSERVER) : $(CONTIKI_PROJECT)
|
|
|
|
cp $(CONTIKI_PROJECT).$(TARGET) $(WITH_WEBSERVER).$(TARGET)
|
2011-08-31 15:50:14 +00:00
|
|
|
@if (test -n "$(ELF_SIZE)");then $(ELF_SIZE) $(WITH_WEBSERVER).$(TARGET);fi
|
2011-07-24 15:59:28 +00:00
|
|
|
else
|
2008-10-14 16:50:11 +00:00
|
|
|
APPS=webserver
|
2011-08-31 15:50:14 +00:00
|
|
|
|
|
|
|
all : $(CONTIKI_PROJECT)
|
|
|
|
@if (test -n "$(ELF_SIZE)");then $(ELF_SIZE) $(CONTIKI_PROJECT).$(TARGET);fi
|
2011-07-24 15:59:28 +00:00
|
|
|
endif
|
2008-10-14 10:01:52 +00:00
|
|
|
|
2014-11-12 09:18:29 +00:00
|
|
|
DEFINES=UIP_CONF_TCP=1
|
2012-05-28 14:01:34 +00:00
|
|
|
|
|
|
|
# Make no RPL the default for minimal-net builds
|
|
|
|
ifeq ($(TARGET),minimal-net)
|
2014-11-12 09:18:29 +00:00
|
|
|
ifndef CONTIKI_WITH_RPL
|
|
|
|
CONTIKI_WITH_RPL = 0
|
2012-05-28 14:01:34 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-10-14 16:50:11 +00:00
|
|
|
CONTIKI = ../..
|
2014-11-12 09:18:29 +00:00
|
|
|
CONTIKI_WITH_IPV6 = 1
|
2008-10-14 16:50:11 +00:00
|
|
|
include $(CONTIKI)/Makefile.include
|