How to define C++ preprocessor variable in Makefile April 7, 2023 by Tarik This is compiler specific. GCC uses -Dcpp_variable=VALUE or just -Dcpp_variable Microsoft’s compilers use /D