Simple assignment (: =)
A simple assignment expression is evaluated only once, in the very first case. For example, if CC :=${GCC} ${FLAGS} during the first meeting is evaluated as gcc -W , then each time ${CC} it is replaced by gcc -W .
Recursive Assignment (=)
Recursive assignment is assigned every time a variable is encountered in code. For example, an expression of type CC = ${GCC} {FLAGS} will be evaluated only when an action of type ${CC} file.c . However, if the GCC variable is reassigned ie GCC=c++ , then ${CC} will be converted to c++ -W after the reassignment.
Conditional Assignment (? =)
Conditional assignment assigns a value to a variable only if it does not matter
Addition (+ =)
Suppose CC = gcc then the add operator is used as CC += -w
then CC now matters gcc -W
Amjad Nov 22 '17 at 16:29 2017-11-22 16:29
source share