[Top][All Lists]

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

Re: Compacting link-rules

From: Gisle Vanem
Subject: Re: Compacting link-rules
Date: Thu, 18 Oct 2018 19:40:53 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Paul Smith wrote:

All the .obj files are missing!?

Oh.  $@ is "bin/animation.exe" so $(@F) is "animation.exe" and
$($(@F)_OBJ) would be "animation.exe_OBJ" but that's not the name of
your variable, so it expands to the empty string.

Sorry I didn't catch this problem in your original suggestion.

You want:

   bin/%.exe: $$($$*_OBJ) $(LIBS)

because $* matches the pattern stem, which is "animation" in this case.

That seems to work fine. Thanks a lot!


reply via email to

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