Hi,
trying to get used to the pattern rules, I met following problem:
libs = liba.so
liba_objs = a1.o a2.o a3.o
lib%.so:
ld -shared -o $@ $(lib$*_objs)
That looks like what I wont (dont ask why ;-), but now of course I
would like to specify the liba_objs as prerequisites to the lib%.so
pattern. How do I do that? Following seems to fail:
lib%.so: $(lib%_objs)
ld -shared -o $@ $(lib$*_objs)
As far as I understand the pattern match is done _after_ _all_ vars
and functions are expanded - so $(...) just gets not expandeda after
the match.
This also fails:
lib%.so: $(lib$*_objs)
ld -shared -o $@ $(lib$*_objs)
probably for the same reason ;-)
Thanks for any hint,
Andre.
--
+------------------------------------------------------------------+
| Andre Merzky | phon: ++49 - 30 - 84 1 85 - 339 |
| Zuse Institute Berlin (ZIB) | fax : ++49 - 30 - 84 1 85 - 107 |
| - Scientific Visualization - | mail: [EMAIL PROTECTED] |
| Takustr. 7 - D-14195 Berlin | www : http://www.zib.de/merzky/ |
+------------------------------------------------------------------+
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make