summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-08-07 02:01:29 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-08-07 19:15:28 +0200
commit59d93adb29fae25220955d44a5cd25f0d99e3528 (patch)
treed8137ed39ef6a4a54ebe0f2615b02251c24a7057 /libudev
parent4de08374d010ca85a932e11f0bac441561a10608 (diff)
Merge libudev, udev, and the unconditional extras in a single Makefile.am.
Instead of using multiple recursive Makefile.am files, use a single Makefile.am that sets and builds all the basic suite of libraries and binaries for udev. This reduces the number of files in the source tree, and also reduces drastically the build time when using parallel-make. With this setup, all the compile steps will be executed in parallel, and just the linking stage will be (partially) serialised on the libraries creation.
Diffstat (limited to 'libudev')
-rw-r--r--libudev/Makefile.am71
1 files changed, 0 insertions, 71 deletions
diff --git a/libudev/Makefile.am b/libudev/Makefile.am
deleted file mode 100644
index 6989bf31f3..0000000000
--- a/libudev/Makefile.am
+++ /dev/null
@@ -1,71 +0,0 @@
-include $(top_srcdir)/Makefile.am.inc
-
-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 \
- libudev-device.c \
- libudev-enumerate.c \
- libudev-monitor.c \
- libudev-queue.c
-
-noinst_LTLIBRARIES = \
- libudev-private.la
-
-libudev_private_la_SOURCES =\
- $(libudev_la_SOURCES) \
- libudev-ctrl.c \
- libudev-util-private.c \
- libudev-device-private.c \
- libudev-queue-private.c
-
-if WITH_SELINUX
-libudev_private_la_SOURCES += \
- libudev-selinux-private.c
-endif
-
-LT_CURRENT=5
-LT_REVISION=0
-LT_AGE=5
-libudev_la_LDFLAGS = \
- -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -export-symbols $(top_srcdir)/libudev/exported_symbols
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
- libudev.pc
-
-EXTRA_DIST = \
- exported_symbols
-
-# 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) && \
- 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$(rootlib_execdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so && \
- mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlib_execdir); \
- fi
-
-uninstall-hook:
- rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*