@@ -15,7 +15,7 @@ special Contiki platform that builds an entire Contiki system as a
15
15
program that runs on the development system. After compiling the
16
16
application for the native target it is possible to run the Contiki
17
17
system with the application by running the file hello-world.native. To
18
- compile the application and a Contiki system for the ESB platform" the
18
+ compile the application and a Contiki system for the ESB platform the
19
19
command make TARGET=esb is used. This produces a hello-world.esb file
20
20
that can be loaded into an ESB board.
21
21
@@ -28,9 +28,17 @@ To avoid having to type TARGET= every time make is run, it is possible
28
28
to run make TARGET=esb savetarget to save the selected target as the
29
29
default target platform for subsequent invocations of make. A file
30
30
called Makefile.target containing the currently saved target is saved
31
- in the project's directory. Makefiles used in the Contiki build
32
- system The Contiki build system is composed of a number of
33
- Makefiles. These are:
31
+ in the project's directory.
32
+
33
+ Beside TARGET= there's DEFINES= which allows to set arbitrary variables
34
+ for the C preprocessor in form of a comma-separated list. Again it is
35
+ possible to avoid having to re-type i.e. DEFINES=MYTRACE,MYVALUE=4711
36
+ by running make TARGET=esb DEFINES=MYTRACE,MYVALUE=4711 savedefines. A
37
+ file called Makefile.esb.defines is saved in the project's directory
38
+ containing the currently saved defines for the ESB platform.
39
+
40
+ Makefiles used in the Contiki build system The Contiki build system is
41
+ composed of a number of Makefiles. These are:
34
42
35
43
* Makefile: the project's makefile, located in the project directory.
36
44
0 commit comments