1

Here is the line that bothers me:

CFLAGS+=-DCONTIKI_VERSION_THINKSQUARE=1

There are so many signs one after another (+=-) that totally confuses me :) I know that += is append operator, but the right side is unknown for me. Thank you in advance.

Radoslaw Krasimirow
  • 1,833
  • 2
  • 18
  • 28

1 Answers1

1

The whole right side of += is interpreted as a string that is appended to the makefile variable CFLAGS. Say, your makefile is:

CFLAGS:=VAL1
CFLAGS+=-DCONTIKI_VERSION_THINKSQUARE=1

all:
    @echo $(CFLAGS)

make all will output:

VAL1 -DCONTIKI_VERSION_THINKSQUARE=1
Eugeniu Rosca
  • 5,177
  • 16
  • 45