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-06-16 16:56:10 +04:00
LT_CURRENT = 4
2009-07-03 20:40:38 +04:00
LT_REVISION = 1
2009-06-16 16:56:10 +04:00
LT_AGE = 4
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-06-17 18:10:06 +04:00
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2008-08-27 19:11:58 +04:00
install-data-hook :
2009-06-17 04:25:07 +04:00
if test " $( libdir) " != " $( rootlibdir) " ; then \
2009-07-03 20:38:45 +04:00
mkdir -p $( DESTDIR) $( rootlibdir) && \
so_img_name = $$ ( readlink $( DESTDIR) $( libdir) /libudev.so) && \
so_img_rel_target_prefix = $$ ( echo $( libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g' ) && \
ln -sf $$ so_img_rel_target_prefix$( rootlibdir) /$$ so_img_name $( DESTDIR) $( libdir) /libudev.so && \
2009-06-17 18:10:06 +04:00
mv $( DESTDIR) $( libdir) /libudev.so.* $( DESTDIR) $( rootlibdir) ; \
2008-08-27 19:11:58 +04:00
fi
uninstall-hook :
2009-06-17 04:25:07 +04:00
rm -f $( DESTDIR) $( rootlibdir) /libudev.so*