2011-08-09 05:55:19 +02:00
|
|
|
CONTIKI_PROJECT=webserver6
|
|
|
|
all: $(CONTIKI_PROJECT) $(WITH_WEBSERVER)
|
2011-07-24 17:59:28 +02: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)
|
|
|
|
WITH_WEBSERVER=webserver-nano
|
|
|
|
else ifeq ($(TARGET),avr-raven)
|
|
|
|
WITH_WEBSERVER=raven-webserver
|
|
|
|
endif
|
|
|
|
#
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(WITH_WEBSERVER),)
|
|
|
|
APPS = $(WITH_WEBSERVER)
|
2011-07-24 18:54:12 +02:00
|
|
|
ifeq ($(WITH_WEBSERVER),raven-webserver)
|
|
|
|
APPS+=raven-lcd-interface
|
|
|
|
endif
|
2011-07-24 17:59:28 +02:00
|
|
|
#copy output to e.g. webserver-nano.sky, raven-webserver.avr-raven
|
2011-08-09 05:55:19 +02:00
|
|
|
$(WITH_WEBSERVER) : $(CONTIKI_PROJECT)
|
|
|
|
cp $(CONTIKI_PROJECT).$(TARGET) $(WITH_WEBSERVER).$(TARGET)
|
2011-07-24 17:59:28 +02:00
|
|
|
else
|
2008-10-14 18:50:11 +02:00
|
|
|
APPS=webserver
|
2011-07-24 17:59:28 +02:00
|
|
|
endif
|
2008-10-14 12:01:52 +02:00
|
|
|
|
2008-10-14 18:50:11 +02:00
|
|
|
UIP_CONF_IPV6=1
|
2010-02-01 12:52:52 +01:00
|
|
|
DEFINES=WITH_UIP6
|
2008-10-14 18:50:11 +02:00
|
|
|
CONTIKI = ../..
|
|
|
|
include $(CONTIKI)/Makefile.include
|