src: make and use a config.h file
commitb608c594799c79c227ffbb2009c9aa39b0d68033
authorKyle J. McKay <mackyle@gmail.com>
Tue, 17 Nov 2020 08:42:28 +0000 (17 01:42 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 17 Nov 2020 08:42:28 +0000 (17 01:42 -0700)
tree7a9fb0acf0d32bf05b374b2e12b53c27d37e93ef
parentc419bc353b02fb8f12d153a286b9895a4560bfb5
src: make and use a config.h file

Not every system is the same.

Automatically create a config.h file that contains
"interesting" information about a system that cannot
be determined at compile time via predefined macros.

Provide this file via a CONFIG_H macro to interested
source files that can then `#include CONFIG_H` when
it's defined.

Currently only the framework is provided.  In other
words, the config.h file is created but is always
empty and the proper CONFIG_H macro definition is
passed on to interested source files.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
src/.gitignore
src/GNUmakefile
src/make-config-h.sh [new file with mode: 0755]
src/peek_packet.c