diff options
Diffstat (limited to 'plugins/arm/Makefile.am')
-rw-r--r-- | plugins/arm/Makefile.am | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/plugins/arm/Makefile.am b/plugins/arm/Makefile.am index 12e58fd..3091db7 100644 --- a/plugins/arm/Makefile.am +++ b/plugins/arm/Makefile.am @@ -4,6 +4,18 @@ lib_LTLIBRARIES = libarm.la libdir = $(pluginslibdir) +if BUILD_PYTHON3_BINDINGS + +PYTHON3_LIBADD = python/libarmpython.la + +PYTHON3_LDFLAGS = -Wl,-rpath,$(abs_top_srcdir)/plugins/pychrysalide/.libs \ + -L$(top_srcdir)/plugins/pychrysalide/.libs -l:pychrysalide.so + +PYTHON3_SUBDIRS = python + +endif + + libarm_la_SOURCES = \ cond.h \ context-int.h \ @@ -18,13 +30,12 @@ libarm_la_SOURCES = \ register.h register.c libarm_la_LIBADD = \ - python/libarmpython.la \ + $(PYTHON3_LIBADD) \ v7/libarmv7.la -libarm_la_LDFLAGS = \ - -L$(top_srcdir)/src/.libs -lchrysacore \ - -Wl,-rpath,$(abs_top_srcdir)/plugins/pychrysalide/.libs \ - -L$(top_srcdir)/plugins/pychrysalide/.libs -l:pychrysalide.so +libarm_la_LDFLAGS = \ + -L$(top_srcdir)/src/.libs -lchrysacore \ + $(PYTHON3_LDFLAGS) devdir = $(includedir)/chrysalide-$(subdir) @@ -37,4 +48,4 @@ AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) -I$(top_srcdir)/src AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS) -SUBDIRS = v7 python +SUBDIRS = v7 $(PYTHON3_SUBDIRS) |