This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
http://www.gnu.org/software/gcc/news/dependencies.html
- To: gcc at gcc dot gnu dot org
- Subject: http://www.gnu.org/software/gcc/news/dependencies.html
- From: Bohdan Vlasyuk <Bohdan at kivc dot vstu dot vinnica dot ua>
- Date: Thu, 26 Apr 2001 15:00:04 +0300
- Organization: Vstu
- Reply-To: Bohdan Vlasyuk <Bohdan at kivc dot vstu dot vinnica dot ua>
Hello gcc,
> Consider the simple example of a file test.c that includes the file
> test.h, and the command line
>
> /usr/bin/gcc -MD -c test.c -o subdir/bar.o With previous versions of
> CPP, this command line would leave a file test.d in the current
> directory, and its contents would be
>
> test.o: test.c test.h which is pretty useless. The latest versions
> of CPP instead do what you probably want - they make the target
> subdir/bar.o, place the dependency file in the same directory as the
> object file, and name it after the object file. Thus in the file
> subdir/bar.d you will find
>
> subdir/bar.o: test.c test.h
That's great thing indeed, however, some old Makefiles rely on that
broken behavior (and so does mine). Thought this new behavior is
better, should it be default ??
--
Best regards,
Bohdan mailto:Bohdan@kivc.vstu.vinnica.ua