From 6d72c38a3f19934183b1fc330ccc91992cb8588d Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Fri, 4 Jan 2013 09:54:52 -0500 Subject: Forward-port of libudev.so.0 code from libudev-171 Add --enable-legacylib option to configure, allowing for build and installation of libudev.so.0 shared library for supporting pre-udev-183 software. Library is installed to rootlibdir. Note that this legacy library will not be maintained, and should not be used for anything other than supporting a working system until all software on the system is migrated to use libudev.so.1 Signed-off-by: Anthony G. Basile --- src/libudev-legacy/Makefile.am | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/libudev-legacy/Makefile.am (limited to 'src/libudev-legacy/Makefile.am') diff --git a/src/libudev-legacy/Makefile.am b/src/libudev-legacy/Makefile.am new file mode 100644 index 0000000000..507282b38b --- /dev/null +++ b/src/libudev-legacy/Makefile.am @@ -0,0 +1,40 @@ +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + +define move-legacylib + $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ + mv $(DESTDIR)$(libdir)/$$libname $(DESTDIR)$(rootlibdir)/libudev.so.0 +endef + +AM_CPPFLAGS = \ + -include $(top_builddir)/config.h \ + -DUDEV_CONF_FILE=\"$(udevconffile)\" + +lib_LTLIBRARIES = \ + libudev-legacy.la + +libudev_legacy_la_SOURCES =\ + libudev.c \ + libudev-list.c \ + libudev-util.c \ + libudev-device.c \ + libudev-enumerate.c \ + libudev-monitor.c \ + libudev-queue.c + +libudev_legacy_la_CFLAGS =\ + $(AM_CFLAGS) \ + -shared + +noinst_HEADERS = \ + libudev.h \ + libudev-private.h + +libudev_legacy_la_LDFLAGS = \ + $(AM_LDFLAGS) \ + -avoid-version + +install-exec-hook: + libname=libudev-legacy.so && $(move-legacylib) + +EXTRA_DIST = \ + COPYING -- cgit v1.2.3-54-g00ecf