aboutsummaryrefslogtreecommitdiff
path: root/libtcc.h
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@mns.spb.ru>2010-06-21 20:50:32 +0400
committerKirill Smelkov <kirr@mns.spb.ru>2010-06-21 20:50:41 +0400
commit9775aea1ab634a74cd4254df85e93d4cbf098cce (patch)
treedbdf8823c5c64ef3d4d40749401c9cb129f3521d /libtcc.h
parent3ba37e1e3f1d942c3115406cdccf01ce84d53bee (diff)
parent2fe5210a33556ed18bc878046d39e25964a52840 (diff)
downloadtinycc-9775aea1ab634a74cd4254df85e93d4cbf098cce.tar.gz
tinycc-9775aea1ab634a74cd4254df85e93d4cbf098cce.tar.bz2
Merge branch 'kirr/tcc-MD' into mob
Hello up there. I'm trying to change gcc to tcc for faster develpment on slow machines, and the first obstacle that turned out was lack of dependency generation on tcc side. Attached patches try to fix that. Thanks, Kirill * tcc-MD: .gitignore += tags tcc: Explicitly require -l<lib> for libraries Document what tcc_fileextension does tcc -E: Let output_default be <file>.o instead of a.out tcc: Draft suppoprt for -MD/-MF options tcc: Refactor "compute default outfile name" into libtcc function Add input files/libs and reloc_output switch to TCCState tcc: Fix typo in error (it's '%s', not '%s) chmod a-x i386-gen.c .gitignore += *.o *.a .cvsignore -> .gitignore
Diffstat (limited to 'libtcc.h')
-rw-r--r--libtcc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libtcc.h b/libtcc.h
index 339dec1..bf328d3 100644
--- a/libtcc.h
+++ b/libtcc.h
@@ -103,6 +103,20 @@ LIBTCCAPI void *tcc_get_symbol(TCCState *s, const char *name);
/* set CONFIG_TCCDIR at runtime */
LIBTCCAPI void tcc_set_lib_path(TCCState *s, const char *path);
+
+/*****************************/
+/* Miscellaneous */
+
+/* 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