makefile parameter

C++
make foo=bar target
Source

Also in C++: