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,763
  • 1
  • 16
  • 27

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,127
  • 14
  • 43