1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
systemd/libudev/Makefile.am

58 lines
1.2 KiB
Makefile
Raw Normal View History

2008-09-20 10:03:49 +04:00
include $(top_srcdir)/Makefile.am.inc
2009-06-15 15:22:21 +04:00
SUBDIRS = \
docs
noinst_PROGRAMS = \
test-libudev
test_libudev_SOURCES = \
test-libudev.c
test_libudev_LDADD = \
libudev.la
lib_LTLIBRARIES = \
libudev.la
include_HEADERS =\
libudev.h
libudev_la_SOURCES =\
libudev-private.h \
libudev.c \
libudev-list.c \
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
LT_CURRENT=4
LT_REVISION=0
LT_AGE=4
libudev_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
2009-06-08 23:36:06 +04:00
-export-symbols $(top_srcdir)/libudev/exported_symbols
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
libudev.pc
EXTRA_DIST = \
exported_symbols
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
install-data-hook:
rm -f $(DESTDIR)$(libdir)/libudev.la
if test "$(libdir)" != "$(rootlibdir)"; then \
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; \
mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlibdir); \
fi
uninstall-hook:
rm -f $(DESTDIR)$(rootlibdir)/libudev.so*