2008-08-27 19:11:58 +04:00
AM_CPPFLAGS = \
-DSYSCONFDIR= \" " $( sysconfdir) " \" \
2008-08-29 23:22:24 +04:00
-DUDEV_PREFIX= \" " $( udev_prefix) " \" \
2008-08-31 01:08:19 +04:00
-D_LIBUDEV_COMPILATION
2008-08-27 19:11:58 +04:00
noinst_PROGRAMS = \
test-libudev
test_libudev_SOURCES = \
test-libudev.c
test_libudev_LDADD = \
libudev.la
rootlibdir = $( exec_prefix) /$( libdir_name)
rootlib_LTLIBRARIES = \
libudev.la
include_HEADERS = \
libudev.h
libudev_la_SOURCES = \
2008-09-08 19:59:00 +04:00
exported_symbools \
2008-08-27 19:11:58 +04:00
libudev-private.h \
libudev.c \
2008-08-28 00:02:41 +04:00
libudev-utils.c \
libudev-device.c \
libudev-enumerate.c \
2008-09-08 19:59:00 +04:00
libudev-ctrl.c \
2008-08-29 01:05:01 +04:00
libudev-monitor.c \
2008-08-27 19:11:58 +04:00
../list.h \
../udev.h \
../udev_sysdeps.c
libudev_la_LDFLAGS = \
-version-info $( LIBUDEV_LT_CURRENT) :$( LIBUDEV_LT_REVISION) :$( LIBUDEV_LT_AGE) \
-export-symbols $( top_srcdir) /udev/lib/exported_symbols
2008-08-29 22:48:25 +04:00
i f U S E _ S E L I N U X
libudev_la_LIBADD = \
-lselinux
e n d i f
2008-08-27 19:11:58 +04:00
pkgconfigdir = $( prefix) /$( libdir_name) /pkgconfig
pkgconfig_DATA = libudev.pc
EXTRA_DIST = \
exported_symbols
# move devel files to $(prefix)$(libdir_name) if needed
install-data-hook :
rm $( DESTDIR) $( rootlibdir) /libudev.la
if test " $( prefix) " != " $( exec_prefix) " ; then \
mkdir -p $( DESTDIR) $( prefix) /$( libdir_name) ; \
mv $( DESTDIR) $( rootlibdir) /libudev.a $( DESTDIR) $( prefix) /$( libdir_name) /; \
so_img_name = $$ ( readlink $( DESTDIR) $( rootlibdir) /libudev.so) ; \
rm $( DESTDIR) $( rootlibdir) /libudev.so; \
so_img_rel_target_prefix = $$ ( echo $( prefix) /$( libdir_name) | sed 's,\(^/\|\)[^/][^/]*,..,g' ) ; \
ln -sf $$ so_img_rel_target_prefix$( exec_prefix) /$( libdir_name) /$$ so_img_name \
$( DESTDIR) $( prefix) /$( libdir_name) /libudev.so; \
fi
uninstall-hook :
rm -f $( DESTDIR) $( prefix) /$( libdir_name) /libudev.a
rm -f $( DESTDIR) $( prefix) /$( libdir_name) /libudev.so*