diff options
Diffstat (limited to 'libmount/python/Makemodule.am')
| -rw-r--r-- | libmount/python/Makemodule.am | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libmount/python/Makemodule.am b/libmount/python/Makemodule.am new file mode 100644 index 000000000..efe210efd --- /dev/null +++ b/libmount/python/Makemodule.am @@ -0,0 +1,33 @@ +EXTRA_DIST += libmount/python/__init__.py + +if BUILD_PYLIBMOUNT + +pylibmountexecdir = $(pyexecdir)/libmount + +# Please, don't use $pythondir for the scripts. We have to use the same +# directory for binary stuff as well as for the scripts otherwise it's +# not possible to install 32-bit and 64-bit version on the same system. +pylibmountexec_LTLIBRARIES = pylibmount.la +pylibmountexec_SCRIPTS = libmount/python/__init__.py + +pylibmount_la_SOURCES = \ + libmount/python/pylibmount.c \ + libmount/python/pylibmount.h \ + libmount/python/fs.c \ + libmount/python/tab.c \ + libmount/python/context.c + +pylibmount_la_LIBADD = libmount.la $(PYTHON_LIBS) + +pylibmount_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(PYTHON_CFLAGS) \ + -I$(ul_libmount_incdir) \ + -fno-strict-aliasing #-ggdb3 -O0 + +pylibmount_la_LDFLAGS = \ + -avoid-version -module -shared -export-dynamic + +CLEANFILES += *.img + +endif # BUILD_PYLIBMOUNT |
