Add WITH_WEBSERVER=<webserver> options
This commit is contained in:
parent
05c11d362b
commit
031c45994b
4 changed files with 55 additions and 16 deletions
|
@ -1,5 +1,29 @@
|
|||
all: webserver6
|
||||
all: webserver6 $(WITH_WEBSERVER)
|
||||
|
||||
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)
|
||||
#copy output to e.g. webserver-nano.sky, raven-webserver.avr-raven
|
||||
$(WITH_WEBSERVER) : webserver6
|
||||
cp webserver6.$(TARGET) $(WITH_WEBSERVER).$(TARGET)
|
||||
else
|
||||
APPS=webserver
|
||||
endif
|
||||
|
||||
UIP_CONF_IPV6=1
|
||||
DEFINES=WITH_UIP6
|
||||
|
|
|
@ -23,3 +23,8 @@ code as follows:
|
|||
3ffe:0501:ffff:0100:0206:98ff:fe00:0232
|
||||
- Finally you can use 'wget http://[3ffe:0501:ffff:0100:0206:98ff:fe00:0232]'
|
||||
to get the web page (index.html file)
|
||||
|
||||
The default webserver and content is in /apps/webserver/...
|
||||
Change that using e.g.
|
||||
$make WITH_WEBSERVER=webserver-nano
|
||||
$make TARGET=avr-raven WITH_WEBSERVER=raven-webserver
|
Loading…
Add table
Add a link
Reference in a new issue