Hello, Aditya Kher,
objects:=$(patsubst ${CPP_DIR}/%.cpp,${CURDIR}/%.o,$(wildcard
${CPP_DIR}/*.cpp))
Is that what you want?
$(CURDIR) is a make internal variable representing current working directory.
======== 2007-10-23 16:19:57 You wrote: ========
A variable I define thus:
objects:=$(patsubst %.cpp,%.o,$(wildcard ${CPP_DIR}/*.cpp))
now this will obviously output all the object files in ${CPP_DIR}.
I am trying to have these output in $PWD instead (which may differ
with ${CPP_DIR})
any ideas while sticking to the implicit rules and pathsubst?
--
Aditya Kher
http://kher.org
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
= = = = = = = = = = = = = = = = = = = = = =
Best Regards
Chen Jun (陈军)
[EMAIL PROTECTED]
2007-10-23
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make