I suggest to reuse a higher level build system than [your current make script](https://github.com/xaizek/zograscope/blob/1cdfea6c44963b9b9f0a7aecd0c6e67a03ffded5/Makefile#L1 "Update candidate") so that powerful checks for software features will become easier. - [CMake](https://cmake.org/ "Building software with CMake") - [Autotools](https://www.gnu.org/software/autoconf/autoconf.html#introduction "Building software with Autoconf")
I suggest to reuse a higher level build system than your current make script so that powerful checks for software features will become easier.