Many project Makefiles build just one Contiki binary. Up to now the name of this binary was only available to the 'all' goal as prerequisite. So it was possible to create a non-project-specific rule to i.e. load that binary into the target device.

Therefore I introduced the make variable CONTIKI_PROJECT. Now a typical project Makefile starts with:

CONTIKI_PROJECT = hello-world
all: $(CONTIKI_PROJECT)
This commit is contained in:
oliverschmidt 2008-05-26 07:37:24 +00:00
parent 90797f15a7
commit b2810f02e1
9 changed files with 45 additions and 30 deletions

View file

@ -1,8 +1,7 @@
CONTIKI_PROJECT = blinker
all: $(CONTIKI_PROJECT)
DEFAULT_TARGET = esb
CONTIKI = ../.. CONTIKI = ../..
ifndef TARGET
TARGET=esb
endif
all: blinker
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,4 +1,5 @@
CONTIKI = ../.. CONTIKI_PROJECT = hello-world
all: hello-world all: $(CONTIKI_PROJECT)
CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,4 +1,5 @@
CONTIKI = ../.. CONTIKI_PROJECT = multi-threading
all: multi-threading all: $(CONTIKI_PROJECT)
CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,6 +1,9 @@
all: telnet-webserver CONTIKI_PROJECT = telnet-webserver
all: $(CONTIKI_PROJECT)
APPS = telnetd webserver APPS = telnetd webserver
DEFAULT_TARGET = sky DEFAULT_TARGET = sky
CFLAGS = -DWITH_UIP=1 #-DWITH_NULLMAC=1 CFLAGS = -DWITH_UIP=1 #-DWITH_NULLMAC=1
# The webserver application normally contains a built-in file system and support # The webserver application normally contains a built-in file system and support

View file

@ -1,7 +1,10 @@
CONTIKI = ../.. CONTIKI_PROJECT = sky-shell
all: $(CONTIKI_PROJECT)
APPS = shell APPS = shell
DEFAULT_TARGET = sky DEFAULT_TARGET = sky
all: sky-shell
CONTIKI = ../..
ifdef MOTE ifdef MOTE
login: login:

View file

@ -1,4 +1,6 @@
all: telnet-server CONTIKI_PROJECT = telnet-server
all: $(CONTIKI_PROJECT)
APPS = telnetd program-handler APPS = telnetd program-handler
DEFAULT_TARGET = minimal-net DEFAULT_TARGET = minimal-net

View file

@ -1,4 +1,6 @@
all: testv6 CONTIKI_PROJECT = testv6
all: $(CONTIKI_PROJECT)
APPS = webserver APPS = webserver
DEFAULT_TARGET = minimal-net DEFAULT_TARGET = minimal-net
CFLAGS = -DUIP_CONF_IPV6 CFLAGS = -DUIP_CONF_IPV6

View file

@ -1,4 +1,6 @@
all: webbrowser CONTIKI_PROJECT = webbrowser
all: $(CONTIKI_PROJECT)
APPS = webbrowser APPS = webbrowser
DEFAULT_TARGET = win32 DEFAULT_TARGET = win32

View file

@ -1,4 +1,6 @@
all: webserver-example CONTIKI_PROJECT = webserver-example
all: $(CONTIKI_PROJECT)
APPS = webserver APPS = webserver
DEFAULT_TARGET = minimal-net DEFAULT_TARGET = minimal-net