help-make
[Top][All Lists]
Advanced

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

Re: customizing implicit rules


From: Chen Jun (陈军)
Subject: Re: customizing implicit rules
Date: Tue, 23 Oct 2007 16:30:30 +0800

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
 
 
_______________________________________________
Help-make mailing list
address@hidden
 

= = = = = = = = = = = = = = = = = = = = = =

Best Regards

              Chen Jun (陈军)
              address@hidden
               2007-10-23

reply via email to

[Prev in Thread] Current Thread [Next in Thread]