|
From: Keith M. <kei...@us...> - 2010-11-26 10:59:28
|
On 26 November 2010 10:25, William Simpson wrote: > Keith, this version of your makefile works, by kludging on $(CURDIR). I'm pleased to hear that. > Not sure why I needed quotes for copy though. Perhaps the path represented by $(CURDIR) includes white space? > > [...snip...] > > librand.a: rand.o # and any other objects you wish it to include > del $@ > ar rcvs $@ $^ I'm rather surprised that you didn't need 'del "$(CURDIR)\$@"' here too. It would have been bad news if you'd also needed it in the 'ar ...' command, particularly if '$^' were to be expanded into a list of object files, (the more usual case), than just one as in your case. -- Regards, Keith. |