aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libtcc.h b/libtcc.h
index 13efcd2..bf328d3 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -110,6 +110,13 @@ LIBTCCAPI void tcc_set_lib_path(TCCState *s, const char *path);
/* Get default target filename for this compilation */
LIBTCCAPI const char *tcc_default_target(TCCState *s);
+/* Generate make dependencies for target and store them into file
+ *
+ * !target - use default target name
+ * !filename - use (target.o -> target.d)
+ */
+LIBTCCAPI void tcc_gen_makedeps(TCCState *s, const char *target, const char *filename);
+
#ifdef __cplusplus
}
#endif