WootingKb / wooting-rgb-sdk

Customize colors on Wooting Keyboard #WootDev
Mozilla Public License 2.0
62 stars 15 forks source link

linux: Makefile: add CPPFLAGS variable #27

Closed ghost closed 3 years ago

ghost commented 3 years ago

This allows to set DEBUG_LOG from shell.

burito commented 3 years ago

CPPFLAGS is for C++, the appropriate C variable is CFLAGS

ghost commented 3 years ago

CPPFLAGS is for the C preprocessor. CXXFLAGS is to C++ what CFLAGS is to C.

https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html

simon-wh commented 3 years ago

Thank you! Those changes make a lot of sense, we're going to update the readme slightly to mention the ability to add the flag to get a bit of debug logging.

ghost commented 3 years ago

Awesome, thanks! :)