| 1 |
## Process this file with Automake to create Makefile.in |
| 2 |
|
| 3 |
SUBDIRS = examples |
| 4 |
|
| 5 |
EXTRA_DIST = setup.py.in tests.py pymusic.pyx pymusic.pxd pybuffer.pyx pybuffer.pxd \ |
| 6 |
music/__init__.py music/music_c.h music/pybuffer.pxd music/pymusic.pxd \ |
| 7 |
music/pymusic_c.h mpi_compat.h \ |
| 8 |
looseversion/__init__.py looseversion/LICENSE |
| 9 |
|
| 10 |
BUILT_SOURCES = pymusic.cpp pybuffer.cpp |
| 11 |
|
| 12 |
|
| 13 |
pyconfig.pxi: tests.py |
| 14 |
cd $(top_srcdir)/pymusic; $(PYTHON) tests.py |
| 15 |
|
| 16 |
pybuffer.cpp: pyconfig.pxi pybuffer.pyx pybuffer.pxd |
| 17 |
cd $(top_srcdir)/pymusic; $(PYTHON) -c \ |
| 18 |
"from Cython.Build import cythonize; \ |
| 19 |
cythonize('pybuffer.pyx', verbose=1)" |
| 20 |
|
| 21 |
pymusic.cpp: pyconfig.pxi pymusic.pyx pymusic.pxd |
| 22 |
cd $(top_srcdir)/pymusic; $(PYTHON) -c \ |
| 23 |
"from Cython.Build import cythonize; \ |
| 24 |
cythonize('pymusic.pyx', verbose=1)" |
| 25 |
|
| 26 |
pkgpyexec_LTLIBRARIES = pymusic.la pybuffer.la |
| 27 |
pymusic_la_SOURCES= pymusic.cpp # main sources to link to |
| 28 |
pymusic_la_LDFLAGS = -shared -module -avoid-version -export-dynamic $(MPI_LDFLAGS) |
| 29 |
pybuffer_la_SOURCES= pybuffer.cpp # main sources to link to |
| 30 |
pybuffer_la_LDFLAGS = -shared -module -avoid-version -export-dynamic $(MPI_LDFLAGS) |
| 31 |
|
| 32 |
pymusic_la_CPPFLAGS = \ |
| 33 |
$(MPI_CPPFLAGS) \ |
| 34 |
$(PYMUSIC_CPPFLAGS) \ |
| 35 |
-I$(top_srcdir)/src -I$(top_builddir)/src |
| 36 |
|
| 37 |
pymusic_la_CXXFLAGS = \ |
| 38 |
$(PYMUSIC_CXXFLAGS) \ |
| 39 |
$(MPI_CXXFLAGS) |
| 40 |
|
| 41 |
pymusic_la_LIBADD = \ |
| 42 |
$(top_builddir)/src/libmusic.la \ |
| 43 |
$(top_builddir)/src/libmusic-c.la |
| 44 |
|
| 45 |
pybuffer_la_CPPFLAGS = \ |
| 46 |
$(MPI_CPPFLAGS) \ |
| 47 |
$(PYBUFFER_CPPFLAGS) \ |
| 48 |
-I$(top_srcdir)/src |
| 49 |
|
| 50 |
pybuffer_la_CXXFLAGS = \ |
| 51 |
$(PYBUFFER_CXXFLAGS) \ |
| 52 |
$(MPI_CXXFLAGS) |
| 53 |
|
| 54 |
if DEB_PACKAGE |
| 55 |
install-exec-hook: |
| 56 |
$(PYTHON) setup.py build \ |
| 57 |
--build-base=$(abs_builddir)/build install \ |
| 58 |
--old-and-unmanageable \ |
| 59 |
--install-layout=deb \ |
| 60 |
--prefix=$(DESTDIR)$(prefix) |
| 61 |
else |
| 62 |
install-exec-hook: |
| 63 |
$(PYTHON) setup.py build \ |
| 64 |
--build-base=$(abs_builddir)/build install \ |
| 65 |
--old-and-unmanageable \ |
| 66 |
--prefix=$(DESTDIR)$(prefix) \ |
| 67 |
--install-lib=$(DESTDIR)$(PYTHON_EXECDIR) \ |
| 68 |
--install-scripts=$(DESTDIR)$(bindir) \ |
| 69 |
--install-data=$(DESTDIR)$(pkgdatadir) |
| 70 |
endif |
| 71 |
|
| 72 |
clean-local: |
| 73 |
-rm -rf $(abs_builddir)/build |