[Swan-dev] make using relative file names again

Andrew Cagney andrew.cagney at gmail.com
Fri May 22 22:00:22 EEST 2015


I'm surprised no one raised this on IRC, its been this way for several
weeks now.

In case you're curious, its because the rule:

# In addition to compiling the .c file to .o, generate a dependency
# file.  Force all output to the build directory.  $(basename
# $(notdir)) is an approximation of UNIX basename.
.c.o:
        $(CC) $(MK_DEPEND_CFLAGS) \
                -MMD -MF $(builddir)/$(basename $(notdir $@)).d \
                -o $(builddir)/$(notdir $@) \
                -c $<

uses $<, and $< uses VPATH.   If VPATH isn't absolute then $< won't be
either.  That changed when a dependency issue was fixed:

Author: Andrew Cagney <cagney at gnu.org>
Date:   Thu May 7 19:21:40 2015 -0400

    building: always set VPATH in mk/dirs.mk (and not the generated
Makefile)

    Needed when building from $(srcdir)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan-dev/attachments/20150522/0661985f/attachment.html>


More information about the Swan-dev mailing list