automake
[Top][All Lists]
Advanced

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

Re: variables in _SOURCES


From: Gavin Smith
Subject: Re: variables in _SOURCES
Date: Sun, 12 Jun 2016 11:17:17 +0100

> configure:
>
> ./configure ... \
>    --with-python \
>    PYCXX_SRCDIR=/usr/share/python2.7/CXX/Python2
>
>
> Makefile.am:
>
> nodist_libpyroute_la_SOURCES = $(PYCXX_SRCDIR)/cxxextensions.c
> nodist_libpyroute_la_SOURCES += $(PYCXX_SRCDIR)/cxx_extensions.cxx
> nodist_libpyroute_la_SOURCES += $(PYCXX_SRCDIR)/cxxsupport.cxx
> nodist_libpyroute_la_SOURCES +=
> $(PYCXX_SRCDIR)/../IndirectPythonInterface.cxx

It's possible that this would work if PYCXX_SRCDIR was a variable in
Makefile.am (I haven't checked). The page you linked to said that this
wouldn't work, though.

What you've done here is different: supplying the value of
PYCXX_SRCDIR with configure. This won't work because all the files
need to be given explicitly in Makefile.am.
(https://www.gnu.org/software/automake/manual/html_node/Program-and-Library-Variables.html#FOOT3)



reply via email to

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