| 1 |
if BUILD_PYLIBMOUNT |
| 2 |
|
| 3 |
pylibmountexecdir = $(pyexecdir)/libmount |
| 4 |
|
| 5 |
# Please, don't use $pythondir for the scripts. We have to use the same |
| 6 |
# directory for binary stuff as well as for the scripts otherwise it's |
| 7 |
# not possible to install 32-bit and 64-bit version on the same system. |
| 8 |
pylibmountexec_LTLIBRARIES = pylibmount.la |
| 9 |
pylibmountexec_PYTHON = libmount/python/__init__.py |
| 10 |
|
| 11 |
pylibmount_la_SOURCES = \ |
| 12 |
libmount/python/pylibmount.c \ |
| 13 |
libmount/python/pylibmount.h \ |
| 14 |
libmount/python/fs.c \ |
| 15 |
libmount/python/tab.c |
| 16 |
if LINUX |
| 17 |
pylibmount_la_SOURCES += libmount/python/context.c |
| 18 |
endif |
| 19 |
|
| 20 |
pylibmount_la_LIBADD = libmount.la $(PYTHON_LIBS) |
| 21 |
|
| 22 |
pylibmount_la_CFLAGS = \ |
| 23 |
$(AM_CFLAGS) \ |
| 24 |
$(PYTHON_CFLAGS) $(PYTHON_WARN_CFLAGS) \ |
| 25 |
-I$(ul_libmount_incdir) \ |
| 26 |
-fno-strict-aliasing #-ggdb3 -O0 |
| 27 |
|
| 28 |
pylibmount_la_LDFLAGS = \ |
| 29 |
-avoid-version -module -shared -export-dynamic |
| 30 |
|
| 31 |
dist_check_SCRIPTS += libmount/python/test_mount_context.py |
| 32 |
dist_check_SCRIPTS += libmount/python/test_mount_tab.py |
| 33 |
dist_check_SCRIPTS += libmount/python/test_mount_tab_update.py |
| 34 |
|
| 35 |
endif # BUILD_PYLIBMOUNT |