bocadillodeatun <bocadillodea...@gmail.com> wrote:
> I have somethign like this:
> 
>   one.o two.o : %.o :%.c

> However, some of my source files can be either ".c" or ".S".
> So... is there any way to tell "make" to look in VPATH for files that
> match either one or another ?

Yes, use two rules:

one.o two.o : %.o :%.c

one.o two.o : %.o :%.S

> I know I could first "filter" my files in two groups, and then create
> two rules... I was just wondering if this feature can be accessed
> by a single rule.

AFAIK it is not possible with only one rule.

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
r...@localhost postmas...@localhost

Reply via email to