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: pgpf4NGJ6Ue6O.pgp
Description: PGP signature

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to