help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: make can not find .cpp file, any general comments or suggesti ons to


From: Lin George
Subject: RE: make can not find .cpp file, any general comments or suggesti ons to debug?
Date: Wed, 3 May 2006 21:52:32 -0700 (PDT)

Thanks Paul,


My question is that, what is the relationship between
CXXFLAG and CPPFLAG. I have followed your method and
dumped output to a file called "implicit_rule". Then I
use grep to find the relationship between CXXFLAG and
CPPFLAG -- they seem to be two individual variables
without any relationship. Please have a look,

-------------------
address@hidden root]# grep "CXXFLAG" implicit_rules
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
$(TARGET_ARCH)
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS)
$(TARGET_ARCH) -c

address@hidden root]# grep "CPPFLAG" implicit_rules
LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS)
$(TARGET_ARCH)
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
$(TARGET_ARCH)
PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS)
$(TARGET_ARCH) -F
LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS)
$(TARGET_MACH)
COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
-c
LINK.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS)
$(TARGET_ARCH)
PREPROCESS.S = $(CC) -E $(CPPFLAGS)
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
-c
COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS)
$(TARGET_MACH) -c
COMPILE.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
-c
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
$(TARGET_ARCH)
LINT.c = $(LINT) $(LINTFLAGS) $(CPPFLAGS)
$(TARGET_ARCH)
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS)
$(TARGET_ARCH) -c
--------------------


regards,
George

--- "Paul D. Smith" <address@hidden> wrote:

> %% Lin George <address@hidden> writes:
> 
>   lg> Sorry that I may not make myself understood.
> The point
>   lg> which confuse me is not the function of
> CPPFLAGS or
>   lg> CFLAGS, the confusion point is that, I think
> Paul mean
>   lg> variable CXXFLAGS automatically includes
> variable
>   lg> CPPFLAGS, which I have not found from GNU make
> manual
> 
> I wrote this morning:
> 
> > Actually it's not including in those variables,
> but it's included in the
> > rules where those variables are used.
> 
> 
> You can use "make -pf/dev/null" to see a full
> catalog of the default
> rules and variables.
> 
> -- 
>
-------------------------------------------------------------------------------
>  Paul D. Smith <address@hidden>          Find some
> GNU make tips at:
>  http://www.gnu.org                     
> http://make.paulandlesley.org
>  "Please remain calm...I may be mad, but I am a
> professional." --Mad Scientist
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]