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 08:04:10 +00:00
parent b2810f02e1
commit 03462fabd6

View file

@ -59,8 +59,10 @@ from the apps/ directory that should be included in the Contiki
system. The Makefile used in the hello-world example project looks
like this:
CONTIKI_PROJECT = hello-world
all: $(CONTIKI_PROJECT)
CONTIKI = ../..
all: hello-world
include $(CONTIKI)/Makefile.include
First, the location of the Contiki source code tree is given by