I would like to be able to #define variables from the make command line. I tried
Code: Select all
make -j12 CPPFLAGS+='-Dvar' all
and other combinations (CPPFLAGS='-Dvar', etc )and it seems that although the #define succeeds, it doesnt pick up other #defines that exist in the makefile and the compilation fails completely or I get some weird messages such as
Code: Select all
esp_http_client.c:(.text+0x1a96): dangerous relocation: call8: call target out of range: esp_log_timestamp
What is the correct way to #define a variable in the make command line?