help-make
[Top][All Lists]
Advanced

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

USE A GENERIC RULE IN GNU_MAKE


From: Sebastien Seulin
Subject: USE A GENERIC RULE IN GNU_MAKE
Date: Tue, 16 Oct 2001 09:47:22 +0200

Hello,
         
 I would like to write a generic rule like this
 
%.o : %.c $(shell mypg %.c)
        $(CC) $(XFLAGS) $(LDFLAGS)  -o $@ $<
 
where mypg is a program that list all dependencies of a source file.
 
It doesn't work as %.c is not understood in $(shell mypg %.c)
 
Thank you

Sebastien
address@hidden




reply via email to

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