]> git.ozlabs.org Git - ccan/blobdiff - tools/tools.h
Dependency checking (make sure .o files exist, prereq to building)
[ccan] / tools / tools.h
index 4bdb8077e26c82b3f6934877a2b7f82706ccf0e0..6ac4e66fcbc78b865e655d0182f4a4e7ead6cb0f 100644 (file)
@@ -8,13 +8,18 @@
 
 #define SPACE_CHARS    " \f\n\r\t\v"
 
-#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I."
+/* FIXME: Remove some -I */
+#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan/ -I. -I../.."
 
 /* This actually compiles and runs the info file to get dependencies. */
-char **get_deps(const void *ctx, const char *dir, bool recurse);
+char **get_deps(const void *ctx, const char *dir, const char *name,
+               bool recurse);
 
 /* This is safer: just looks for ccan/ strings in info */
-char **get_safe_ccan_deps(const void *ctx, const char *dir, bool recurse);
+char **get_safe_ccan_deps(const void *ctx, const char *dir, const char *name,
+                         bool recurse);
 
+char *talloc_basename(const void *ctx, const char *dir);
+char *talloc_dirname(const void *ctx, const char *dir);
+char *talloc_getcwd(const void *ctx);
 #endif /* CCAN_TOOLS_H */
-