This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

http://www.gnu.org/software/gcc/news/dependencies.html


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]