2008-09-20 10:03:49 +04:00
i n c l u d e $( top_srcdir ) / M a k e f i l e . a m . i n c
2008-08-27 19:11:58 +04:00
2009-06-15 15:22:21 +04:00
SUBDIRS = \
docs
2008-08-27 19:11:58 +04:00
noinst_PROGRAMS = \
test-libudev
test_libudev_SOURCES = \
test-libudev.c
test_libudev_LDADD = \
libudev.la
2009-06-17 18:10:06 +04:00
lib_LTLIBRARIES = \
2008-08-27 19:11:58 +04:00
libudev.la
include_HEADERS = \
libudev.h
libudev_la_SOURCES = \
libudev-private.h \
libudev.c \
2008-09-25 15:20:27 +04:00
libudev-list.c \
2008-09-10 19:12:33 +04:00
libudev-util.c \
2008-08-28 00:02:41 +04:00
libudev-device.c \
libudev-enumerate.c \
2008-10-01 11:34:07 +04:00
libudev-monitor.c \
libudev-queue.c
2008-08-27 19:11:58 +04:00
2009-07-23 02:02:28 +04:00
LT_CURRENT = 5
LT_REVISION = 0
LT_AGE = 5
2008-08-27 19:11:58 +04:00
libudev_la_LDFLAGS = \
2009-06-16 16:56:10 +04:00
-version-info $( LT_CURRENT) :$( LT_REVISION) :$( LT_AGE) \
2009-06-08 23:36:06 +04:00
-export-symbols $( top_srcdir) /libudev/exported_symbols
2008-08-27 19:11:58 +04:00
2009-06-17 04:25:07 +04:00
pkgconfigdir = $( libdir) /pkgconfig
pkgconfig_DATA = \
libudev.pc
2008-08-27 19:11:58 +04:00
EXTRA_DIST = \
exported_symbols
2009-07-06 01:56:24 +04:00
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
install-exec-hook :
if test " $( libdir) " != " $( rootlib_execdir) " ; then \
mkdir -p $( DESTDIR) $( rootlib_execdir) && \
2009-07-03 20:38:45 +04:00
so_img_name = $$ ( readlink $( DESTDIR) $( libdir) /libudev.so) && \
so_img_rel_target_prefix = $$ ( echo $( libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g' ) && \
2009-07-06 01:56:24 +04:00
ln -sf $$ so_img_rel_target_prefix$( rootlib_execdir) /$$ so_img_name $( DESTDIR) $( libdir) /libudev.so && \
mv $( DESTDIR) $( libdir) /libudev.so.* $( DESTDIR) $( rootlib_execdir) ; \
2008-08-27 19:11:58 +04:00
fi
uninstall-hook :
2009-07-06 01:56:24 +04:00
rm -f $( DESTDIR) $( rootlib_execdir) /libudev.so*