X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Ftools.h;h=168a47bd28e0c595b3162c1c58d6a376d428c524;hp=0ea4a6cdcdc6c26b84f436e9f3036cb2a9f3b509;hb=e73b0b37186b158369dc70652edae6706cba8133;hpb=54c087e9b147c70a06fe5e7543e39aa70d406b6d diff --git a/tools/tools.h b/tools/tools.h index 0ea4a6cd..168a47bd 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -1,6 +1,14 @@ #ifndef CCAN_TOOLS_H #define CCAN_TOOLS_H #include +#include "config.h" + +#ifndef CCAN_COMPILER +#define CCAN_COMPILER "cc" +#endif +#ifndef CCAN_CFLAGS +#define CCAN_CFLAGS "-g -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror" +#endif #define IDENT_CHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ "abcdefghijklmnopqrstuvwxyz" \ @@ -8,8 +16,6 @@ #define SPACE_CHARS " \f\n\r\t\v" -#define CFLAGS "-g -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror" - #define COVERAGE_CFLAGS "-fprofile-arcs -ftest-coverage" /* This actually compiles and runs the info file to get dependencies. */