view Makefile.am @ 104:6450086b1934

build: Fix values used for OCTAVE_CPPFLAGS and OCTAVE_LIBS * Makefile.am: Use OCTAVE_LIBS autoconf variable instead of hardcoding. * m4/ax_octave.m4: Update OCTAVE_CPPFLAGS and OCTAVE_LIBS to be correct for recent versions of Octave (>= 3.8.0).
author Mike Miller <mtmiller@octave.org>
date Tue, 14 Apr 2015 07:24:50 -0400
parents 7ccdec6d2207
children 00d19f71c9ca
line wrap: on
line source

ACLOCAL_AMFLAGS = -I m4
EXTRA_lib_LTLIBRARIES = _pytave.la
EXTRA_DIST = test/test.py test/exceptions.py project-root.jam \
package/__init__.py package/pytave.py
EXTRA_libdir = @PYTAVE_MODULE_INSTALL_PATH@

_pytave_la_CPPFLAGS = @OCTAVE_CPPFLAGS@ @PYTHON_CPPFLAGS@ -I@NUMPY_INCLUDEDIR@

# Having -module in LDFLAGS lets us use a non-standard library name 
# (e.g. _pytave instead of libpytave)
_pytave_la_LDFLAGS = -module -L@OCTAVE_LIBRARYDIR@ @OCTAVE_LIBS@  \
-l@BOOST_PYTHON_LIB@ -R @PYTAVE_OCTAVE_RPATH@

_pytave_la_SOURCES = octave_to_python.cc pytave.cc python_to_octave.cc \
arrayobjectdefs.h octave_to_python.h pytavedefs.h exceptions.h   \
exceptions.cc python_to_octave.h config.h