aboutsummaryrefslogtreecommitdiff
path: root/gcc/mkdeps.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-04 10:25:55 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-04 10:25:55 +0000
commit03b9ab42612740a5db1047dfbe57a89dd51cb3cb (patch)
tree67432f300752f9afae72f10ea36c5d29f16a9ff0 /gcc/mkdeps.h
parent13ac31acc717827f2c1ffd5b938c6eabc31a9e31 (diff)
downloadgcc-03b9ab42612740a5db1047dfbe57a89dd51cb3cb.zip
gcc-03b9ab42612740a5db1047dfbe57a89dd51cb3cb.tar.gz
gcc-03b9ab42612740a5db1047dfbe57a89dd51cb3cb.tar.bz2
cpp.texi: Update for -MT.
* cpp.texi: Update for -MT. * cppinit.c (initialize_dependency_output): Add a default target if none has been given already. (no_tgt, OPT_MT): New. (cpp_handle_option): Handle -MT. Update -M etc. * cpplib.h (struct cpp_options): Remove deps_target. * gcc.c (cpp_options): Handle -MT. * mkdeps.c (struct deps): Move from mkdeps.h. (deps_calc_target): Rename deps_add_default_target. Add a default target if none has been specified already. * mkdeps.h (struct deps): Move to mkdeps.c. (deps_calc_target): Rename deps_add_default_target. From-SVN: r38681
Diffstat (limited to 'gcc/mkdeps.h')
-rw-r--r--gcc/mkdeps.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/gcc/mkdeps.h b/gcc/mkdeps.h
index 7a2c130..727a784 100644
--- a/gcc/mkdeps.h
+++ b/gcc/mkdeps.h
@@ -1,5 +1,5 @@
/* Dependency generator for Makefile fragments.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Contributed by Zack Weinberg, Mar 2000
This program is free software; you can redistribute it and/or modify it
@@ -26,16 +26,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/* This is the data structure used by all the functions in mkdeps.c.
It's quite straightforward, but should be treated as opaque. */
-struct deps
-{
- const char **targetv;
- unsigned int ntargets; /* number of slots actually occupied */
- unsigned int targets_size; /* amt of allocated space - in words */
-
- const char **depv;
- unsigned int ndeps;
- unsigned int deps_size;
-};
+struct deps;
/* Create a deps buffer. */
extern struct deps *deps_init PARAMS ((void));
@@ -46,11 +37,9 @@ extern void deps_free PARAMS ((struct deps *));
/* Add a target (appears on left side of the colon) to the deps list. */
extern void deps_add_target PARAMS ((struct deps *, const char *));
-/* Given the name of the primary source file, calculate and add the
- name of the target. This is done by locating and stripping the
- file extension (if any) and adding .o (OBJECT_SUFFIX). In addition,
- any directory components of the path are discarded. */
-extern void deps_calc_target PARAMS ((struct deps *, const char *));
+/* Sets the default target if none has been given already. An empty
+ string as the default target in interpreted as stdin. */
+extern void deps_add_default_target PARAMS ((struct deps *, const char *));
/* Add a dependency (appears on the right side of the colon) to the
deps list. Dependencies will be printed in the order that they