Skip to content
Snippets Groups Projects
Commit 3cd64d9b authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Fix generation of python SO with libtool.

parent 521588b8
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
...@@ -728,6 +728,7 @@ AC_CONFIG_FILES([ ...@@ -728,6 +728,7 @@ AC_CONFIG_FILES([
examples/Makefile examples/Makefile
examples/pio/Makefile examples/pio/Makefile
interfaces/Makefile interfaces/Makefile
interfaces/python/Makefile
src/Makefile src/Makefile
src/cmake/cdi/cdi-config-version.cmake src/cmake/cdi/cdi-config-version.cmake
src/cmake/cdi/cdi-config.cmake src/cmake/cdi/cdi-config.cmake
......
...@@ -7,6 +7,7 @@ test_PROGRAMS_ = CdiInfo ...@@ -7,6 +7,7 @@ test_PROGRAMS_ = CdiInfo
CdiInfo_SOURCES = CdiInfo.cpp CdiInfo_SOURCES = CdiInfo.cpp
CdiInfo_LDADD = libcdipp.la CdiInfo_LDADD = libcdipp.la
AM_CXXFLAGS = -static
AM_CPPFLAGS = -I$(abs_top_srcdir)/src AM_CPPFLAGS = -I$(abs_top_srcdir)/src
...@@ -15,6 +16,8 @@ install_exec_local = ...@@ -15,6 +16,8 @@ install_exec_local =
uninstall_local = uninstall_local =
clean_local = clean_local =
SUBDIRS = python
if ENABLE_RUBY_INTERFACE if ENABLE_RUBY_INTERFACE
V_MAKERUBY = $(v_MAKERUBY_@AM_V@) V_MAKERUBY = $(v_MAKERUBY_@AM_V@)
v_MAKERUBY_ = $(v_MAKERUBY_@AM_DEFAULT_V@) v_MAKERUBY_ = $(v_MAKERUBY_@AM_DEFAULT_V@)
...@@ -40,7 +43,7 @@ ruby/Cdi.la: ruby/cdi_wrapper.cpp ruby/Makefile libcdipp.la ...@@ -40,7 +43,7 @@ ruby/Cdi.la: ruby/cdi_wrapper.cpp ruby/Makefile libcdipp.la
TIMESTAMP_DIR='.dirstamp' \ TIMESTAMP_DIR='.dirstamp' \
CDI_INCFLAGS='-I$(abs_srcdir)' \ CDI_INCFLAGS='-I$(abs_srcdir)' \
CDI_CPPFLAGS='$(AM_CPPFLAGS) $(CPPFLAGS)' \ CDI_CPPFLAGS='$(AM_CPPFLAGS) $(CPPFLAGS)' \
CDI_CXXFLAGS='$(AM_CXXFLAGS) -shared $(CXXFLAGS)' \ CDI_CXXFLAGS='-shared $(CXXFLAGS)' \
CDI_LDFLAGS='$(AM_LDFLAGS) -module -avoid-version $(LDFLAGS) -rpath $$(RUBYARCHDIR)' \ CDI_LDFLAGS='$(AM_LDFLAGS) -module -avoid-version $(LDFLAGS) -rpath $$(RUBYARCHDIR)' \
CDI_LIBS='$(LIBS)' \ CDI_LIBS='$(LIBS)' \
CCDLFLAGS= \ CCDLFLAGS= \
...@@ -101,16 +104,8 @@ endif !with_on_demand_check_programs ...@@ -101,16 +104,8 @@ endif !with_on_demand_check_programs
endif ENABLE_RUBY_INTERFACE endif ENABLE_RUBY_INTERFACE
AUTOMAKE_OPTIONS = subdir-objects AUTOMAKE_OPTIONS = subdir-objects
if ENABLE_PYTHON_INTERFACE
python_PYTHON = python/Cdi.py
pyexec_LTLIBRARIES = python/_Cdi.la
python__Cdi_la_SOURCES = python/cdi_wrapper.cpp
python__Cdi_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS)
python__Cdi_la_CXXFLAGS = $(AM_CXXFLAGS) -shared
python__Cdi_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version
python__Cdi_la_LIBADD = libcdipp.la $(PYTHON_LIBS)
if ENABLE_PYTHON_INTERFACE
if with_on_demand_check_programs if with_on_demand_check_programs
check_PROGRAMS = $(test_PROGRAMS_) check_PROGRAMS = $(test_PROGRAMS_)
else !with_on_demand_check_programs else !with_on_demand_check_programs
...@@ -122,12 +117,6 @@ if MAINTAINER_MODE ...@@ -122,12 +117,6 @@ if MAINTAINER_MODE
ruby/cdi_wrapper.cpp: cdi.i cdi.hpp ruby/cdi_wrapper.cpp: cdi.i cdi.hpp
$(AM_V_GEN)$(MKDIR_P) $(@D) && $(SWIG) -ruby -c++ -globalmodule -o $@ $< $(AM_V_GEN)$(MKDIR_P) $(@D) && $(SWIG) -ruby -c++ -globalmodule -o $@ $<
python/Cdi.py: cdi.i cdi.hpp
$(AM_V_GEN)$(SWIG) -python -c++ -o python/cdi_wrapper.cpp $<
python/cdi_wrapper.cpp: python/Cdi.py
$(AM_V_at)test -f $@ || rm -f $<
$(AM_V_at)test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $<
else !MAINTAINER_MODE else !MAINTAINER_MODE
ruby/cdi_wrapper.cpp python/Cdi.py python/cdi_wrapper.cpp: ruby/cdi_wrapper.cpp python/Cdi.py python/cdi_wrapper.cpp:
@:;{ \ @:;{ \
......
if ENABLE_PYTHON_INTERFACE
python_PYTHON = Cdi.py
pyexec_LTLIBRARIES = _Cdi.la
_Cdi_la_SOURCES = cdi_wrapper.cpp
_Cdi_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS)
AM_CXXFLAGS = -shared
AM_LDFLAGS = -module -avoid-version
AM_CPPFLAGS = -I$(srcdir)/.. -I$(top_srcdir)/src
_Cdi_la_LIBADD = ../libcdipp.la $(PYTHON_LIBS)
../libcdipp.la:
$(am__cd) .. && $(MAKE) libcdipp.la
endif ENABLE_PYTHON_INTERFACE
if MAINTAINER_MODE
Cdi.py: ../cdi.i ../cdi.hpp
$(AM_V_GEN)$(SWIG) -python -c++ -o cdi_wrapper.cpp $<
cdi_wrapper.cpp: Cdi.py
$(AM_V_at)test -f $@ || rm -f $<
$(AM_V_at)test -f $@ || $(MAKE) $(AM_MAKEFLAGS) $<
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment