Source-Changes-D archive

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

Re: CVS commit: src/usr.bin/config



On Sat, Aug 29, 2015 at 12:03:51PM +0900, Masao Uebayashi wrote:
> Such a hack is needed because config(1) has to generate rules
> explicitly for each *.[cS].  If you try to override a rule (e.g.
> compile this pmap_bootstrap.c with ${NOPROF_C}), it will be a
> duplicated rule.
> 
> If *.[cS] -> *.o will be written using suffix rules, you can safely
> override rules.  No order constraint too.

You may want to define an explicit dependency foo.o: foo.[cS] and then
rely on the suffix rule to supply the commands.
This saves make from having to hunt for the appropriate source file
and (probably) makes it easier to have MI fallback sources.

	David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index