This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -MM and -MMD are not ignoring #include <xx.h> files
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "PENHEY, Tim, FM" <Tim dot PENHEY at rbos dot com>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 24 Feb 2005 06:34:12 -0600
- Subject: Re: -MM and -MMD are not ignoring #include <xx.h> files
- References: <6C6F6659FF768141BE4E4945FA71AE0E13F2306B@lon0349xns.fm.rbsgrp.net>
Hi Tim,
>Now I thought that -MM should not include <a.h> in the depenancy list.
>What's going on. What am I missing?
What's going on is that you are using -I instead of -idirafter.
-I adds a path to the general include path list.
-idirafter adds a path to the system include path list.
The -MM and -MMD filter out the system include path list, not the general
include path list.
HTH,
--Eljay