The Contiki 2.x build system allows to define arbitrary macros for the C compiler preprocessor (in other word add -d<macro[=value]>'s to the C compiler command line) directly from the gnumake command line by setting the gnumake variable DEFINES to a comma-seperated list of macros (and optionally values) like this:
make TARGET=mytarget DEFINES=MYLOG, MYSIZE=100, MYTRACE The build system does however _NOT_ take care to rebuild things if the DEFINES change so most likely a 'make clean' is advisable. To ease usage the DEFINES may be saved individually per target with the goal 'savedefines' similiar to savinf the target. The 6502-based target leverage the DEFINES mechanism by introducing so-called 'high level config macros' which allow to configure Contiki per target AND per project. Most of the time there's exactly one reasonable set of high level config macros for every combination of target and project. Therefore it makes sense to place them into CVS.
This commit is contained in:
parent
8248685dcf
commit
1cab294517
1
examples/multi-threading/Makefile.apple2enh.defines
Normal file
1
examples/multi-threading/Makefile.apple2enh.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING
|
1
examples/multi-threading/Makefile.c128.defines
Normal file
1
examples/multi-threading/Makefile.c128.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING
|
1
examples/multi-threading/Makefile.c64.defines
Normal file
1
examples/multi-threading/Makefile.c64.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING
|
1
examples/telnet-server/Makefile.apple2enh.defines
Normal file
1
examples/telnet-server/Makefile.apple2enh.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING,WITH_BOOST
|
1
examples/telnet-server/Makefile.c128.defines
Normal file
1
examples/telnet-server/Makefile.c128.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING,WITH_BOOST
|
1
examples/telnet-server/Makefile.c64.defines
Normal file
1
examples/telnet-server/Makefile.c64.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING,WITH_BOOST
|
1
examples/webbrowser/Makefile.apple2enh.defines
Normal file
1
examples/webbrowser/Makefile.apple2enh.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_MOUSE,WITH_PFS
|
1
examples/webbrowser/Makefile.c64.defines
Normal file
1
examples/webbrowser/Makefile.c64.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_CLIENT,WITH_DNS,WITH_GUI,WITH_MOUSE
|
1
examples/webserver/Makefile.apple2enh.defines
Normal file
1
examples/webserver/Makefile.apple2enh.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING,WITH_BOOST
|
1
examples/webserver/Makefile.c128.defines
Normal file
1
examples/webserver/Makefile.c128.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING,WITH_BOOST
|
1
examples/webserver/Makefile.c64.defines
Normal file
1
examples/webserver/Makefile.c64.defines
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DEFINES = WITH_LOGGING,WITH_BOOST
|
Loading…
Reference in a new issue