autoconf
[Top][All Lists]
Advanced

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

Re: overwriting default make rules


From: satyakam mishra
Subject: Re: overwriting default make rules
Date: Sun, 1 Mar 2009 21:04:52 -0800 (PST)

Hello,
Please ignore my previous mail. It wasn't complete and i am sorry for the 
inconvenience.
 
I am trying to use autoconf to build for Symbian platform that involves more 
than 1 step at the linking stage, i.e., it has a static linking stage, followed 
by a post-linking stage. While the default make rule to produce an executable 
is just a linking stage e.g., the default rule may look something like:
 $(PROGRAM): $(OBJECTS) $(LIBS)
    $(LD) $(LD_FLAGS) $(OBJECTS) $(LIBS) -o $@
 
Is it the right thing to do if i overwrite this rule as follows:
 
 $(PROGRAM): $(OBJECTS) $(LIBS)
    $(LD) $(LD_FLAGS) $(OBJECTS) $(LIBS) -o $static_link_file
#   some more intermediate steps here...
    $(POSLINK)  $(PL_FLAGS) $static_link_file -o $@
 
Is there a better way to do other than what the default make rule supports?
Also, i had to make a similar change in all the Makefile.in files. Is there a 
more generic way to intoduce this kind of overwriting through other autoconf 
templates?
 
regards
satyakam

--- On Mon, 3/2/09, satyakam mishra <address@hidden> wrote:

From: satyakam mishra <address@hidden>
Subject: overwriting default make rules
To: address@hidden
Date: Monday, March 2, 2009, 10:06 AM







Hello,
I am trying to use autoconf to build for Symbian platform that involves more 
than 1 step at the linking stage, i.e., it has a static linking stage, followed 
by a post-linking stage. While the default make rule to produce an executable 
is just a linking stage e.g., the default rule may look something like:
 $(PROGRAM): $(OBJECTS) $(LIBS)
    $(LD) $(LD_FLAGS) $(OBJECTS) $(LIBS) -o $@
 
Is it the right thing to do if i overwrite this rule as follows:
 
 $(PROGRAM): $(OBJECTS) $(LIBS)
    $(LD) $(LD_FLAGS) $(OBJECTS) $(LIBS) -o $static_link_file
   






reply via email to

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