thanks a lot. Then i don't have to scratch my head and wasting my time :)




At 08:31 AM 12/20/2001, Paul D. Smith wrote:
>%% "Mr. Feed" <[EMAIL PROTECTED]> writes:
>
>  f> compile several executable based on different .o set, and have a
>  f> generic make file to compile them.
>
>  f> aaaOBJS = a.o, aa.o
>  f> bbbOBJS = b.o, bb.o
>
>  f> I want to do:
>
>  f> $(OBJDIR)/%: $(%OBJS)
>
>  f> i.e. use different set of .o file set based on the stem name.
>
>No, not really.
>
>You have to list the prerequisites explicitly.  You don't have to
>rewrite the rule every time, though:
>
>  $(OBJDIR)/aaa: a.o aa.o
>  $(OBJDIR)/bbb: b.o bb.o
>    ...
>
>  $(OBJDIR)/%:
>        ...
>
>-- 
>-------------------------------------------------------------------------------
> Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
> http://www.gnu.org                      http://www.paulandlesley.org/gmake/
> "Please remain calm...I may be mad, but I am a professional." --Mad Scientist 


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to