The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
IRQ priority in FC9 rajuprade UNIX for Advanced & Expert Users 0 09-10-2008 09:15 AM
Makefile problem - How to run module load in a Makefile hernandinho UNIX for Advanced & Expert Users 1 07-24-2008 11:17 PM
Please Help me with this ..High Priority! balaji_gopal Shell Programming and Scripting 0 05-28-2008 12:14 PM
change priority of packages RellioN UNIX for Dummies Questions & Answers 0 07-01-2005 11:50 PM
Increasing priority of a process jyotipg UNIX for Advanced & Expert Users 2 06-20-2003 06:20 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2008
Registered User
 

Join Date: Jun 2006
Posts: 74
Priority of rules in Makefile!!!

Consider in a makefile i have the target defined as:

pgm: a.o b.o
cmd;

To build .o, 2 rules are defind

.pc.o:
cmds
.c.o:
cmds

My question is which rule will take priority for compiling a.o and b.o when the target pgm is built.

Despite the positoning of the 2 rules, .c.o always takes the priority. How to set the 1st priority to .pc.o ?
Reply With Quote
Forum Sponsor
  #2  
Old 09-25-2008
Registered User
 

Join Date: Jun 2008
Location: Scotland
Posts: 121
Is this what you want?
Makefile -> pc precedence over c
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0