[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pattern rule prerequisites?
From: |
Andre Merzky |
Subject: |
pattern rule prerequisites? |
Date: |
Fri, 9 Aug 2002 03:03:27 +0200 |
User-agent: |
Mutt/1.2.5.1i |
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: address@hidden |
| Takustr. 7 - D-14195 Berlin | www : http://www.zib.de/merzky/ |
+------------------------------------------------------------------+
- pattern rule prerequisites?,
Andre Merzky <=