help-make
[Top][All Lists]
Advanced

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

Re: Implicit rules and directory names


From: René Rebe
Subject: Re: Implicit rules and directory names
Date: Wed, 21 Sep 2005 11:30:31 +0200
User-agent: KMail/1.8.2

Hi,

On Wednesday 21 September 2005 10:27, you wrote:

> to gain some benefits I convert our Makefiles from recursion to
> non-recursion and using the various "Recursive Make considered harmful" or
> "Recursive Make reloaded" papers on the net.
>
> So far this worked out quite nicely, however I have trouble with multiple
> executables per directory. I would either like an implicit rule, in the
> form:
>
> $($(X_MODULE)_OUTPUT)/%: %.o $(DEPS)
>       @echo '  LINK EXEC $@'
>       $(Q)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -o '$@' $^ $(LDFLAGS)
>
> However due to the full patch (I think) this rule does not match, and also
> if I (for testing) modify this to not use pathes it does not use the
> $(DEPS) and ignores the prerequisits.

Ouhm - sorry. It works with the correct path also supplied to the %.o ...:

                  HERE  -v

$($(X_MODULE)_OUTPUT)/%: $(X_MODULE)/%.o $(DEPS)
        @echo '  LINK EXEC $@'
        $(Q)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -o '$@' $^ $(LDFLAGS)

Sorry for bothering you - have a nice day,

-- 
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
            http://www.exactcode.de | http://www.t2-project.org
            +49 (0)30  255 897 45

Attachment: pgpHpu0N2uUpk.pgp
Description: PGP signature


reply via email to

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