2013-08-19 07:57:21 -05:00
|
|
|
if BUILD_PYLIBMOUNT
|
2013-08-19 08:24:33 -05:00
|
|
|
|
|
|
|
pylibmountexecdir = $(pyexecdir)/libmount
|
2013-09-26 05:55:30 -05:00
|
|
|
|
2013-09-27 07:06:14 -05:00
|
|
|
# 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.
|
2016-02-05 12:08:50 -06:00
|
|
|
pylibmountexec_LTLIBRARIES = pylibmount.la
|
|
|
|
pylibmountexec_PYTHON = libmount/python/__init__.py
|
2013-08-19 07:57:21 -05:00
|
|
|
|
2013-08-19 08:00:15 -05:00
|
|
|
pylibmount_la_SOURCES = \
|
|
|
|
libmount/python/pylibmount.c \
|
|
|
|
libmount/python/pylibmount.h \
|
|
|
|
libmount/python/fs.c \
|
2016-03-21 08:04:42 -05:00
|
|
|
libmount/python/tab.c
|
|
|
|
if LINUX
|
|
|
|
pylibmount_la_SOURCES += libmount/python/context.c
|
|
|
|
endif
|
2013-08-19 08:00:15 -05:00
|
|
|
|
2013-09-20 05:42:45 -05:00
|
|
|
pylibmount_la_LIBADD = libmount.la $(PYTHON_LIBS)
|
2013-08-19 07:57:21 -05:00
|
|
|
|
|
|
|
pylibmount_la_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
2018-07-18 03:23:51 -05:00
|
|
|
$(PYTHON_CFLAGS) $(PYTHON_WARN_CFLAGS) \
|
2013-08-19 07:57:21 -05:00
|
|
|
-I$(ul_libmount_incdir) \
|
|
|
|
-fno-strict-aliasing #-ggdb3 -O0
|
|
|
|
|
|
|
|
pylibmount_la_LDFLAGS = \
|
|
|
|
-avoid-version -module -shared -export-dynamic
|
|
|
|
|
2014-06-03 17:17:58 -05:00
|
|
|
dist_check_SCRIPTS += libmount/python/test_mount_context.py
|
|
|
|
dist_check_SCRIPTS += libmount/python/test_mount_tab.py
|
|
|
|
dist_check_SCRIPTS += libmount/python/test_mount_tab_update.py
|
|
|
|
|
2013-08-19 07:57:21 -05:00
|
|
|
endif # BUILD_PYLIBMOUNT
|