help-make
[Top][All Lists]
Advanced

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

Generic rule in GNU-MAKE


From: Sebastien Seulin
Subject: Generic rule in GNU-MAKE
Date: Wed, 10 Oct 2001 19:08:24 +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]