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