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,7 +1,10 @@
all: telnet-webserver CONTIKI_PROJECT = telnet-webserver
APPS=telnetd webserver all: $(CONTIKI_PROJECT)
DEFAULT_TARGET=sky
CFLAGS=-DWITH_UIP=1 #-DWITH_NULLMAC=1 APPS = telnetd webserver
DEFAULT_TARGET = sky
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
# for server-side includes. # for server-side includes.

View file

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

View file

@ -1,6 +1,8 @@
all: telnet-server CONTIKI_PROJECT = telnet-server
APPS=telnetd program-handler all: $(CONTIKI_PROJECT)
DEFAULT_TARGET=minimal-net
APPS = telnetd program-handler
DEFAULT_TARGET = minimal-net
CONTIKI = ../.. CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,7 +1,9 @@
all: testv6 CONTIKI_PROJECT = testv6
APPS=webserver all: $(CONTIKI_PROJECT)
DEFAULT_TARGET=minimal-net
CFLAGS=-DUIP_CONF_IPV6 APPS = webserver
DEFAULT_TARGET = minimal-net
CFLAGS = -DUIP_CONF_IPV6
CONTIKI = ../.. CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,6 +1,8 @@
all: webbrowser CONTIKI_PROJECT = webbrowser
APPS=webbrowser all: $(CONTIKI_PROJECT)
DEFAULT_TARGET=win32
APPS = webbrowser
DEFAULT_TARGET = win32
CONTIKI = ../.. CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -1,6 +1,8 @@
all: webserver-example CONTIKI_PROJECT = webserver-example
APPS=webserver all: $(CONTIKI_PROJECT)
DEFAULT_TARGET=minimal-net
APPS = webserver
DEFAULT_TARGET = minimal-net
# The webserver application normally contains a built-in file system and support # The webserver application normally contains a built-in file system and support
# for server-side includes. # for server-side includes.