Target-dependent macro definitions
Learn about target-dependent macro definitions.
A target-dependent macro definition takes this form:
target-pattern-list := macro_name = string
Any standard macro definition can follow the :=
operator; the definition
takes effect only when the targets that match patterns in target-pattern-list and their
dependencies are processed. Patterns in the target-pattern-list must be separated by
white space. For example:
x.o y.o := CDEBUGFLAGS=/Zi
Two or more higher-level targets can have a common dependency. If the targets have different target-dependent macro definitions, the dependency is built using the macros for the first higher-level target clearmake considered building (whether or not clearmake actually built it).