Makefile.am revision 08b4c88353b48302ae94088b55b2066ad01c63f8
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright (C) 2008-2009 Kay Sievers <kay.sievers@vrfy.org>
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright (C) 2009 Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringSUBDIRS = .
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart PoetteringEXTRA_DIST = autogen.sh
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringACLOCAL_AMFLAGS = -I m4
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_MAKEFLAGS = --no-print-directory
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_CPPFLAGS = \
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering -include $(top_builddir)/config.h \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -I$(top_srcdir)/libudev \
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering -DSYSCONFDIR=\""$(sysconfdir)"\" \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -DLIBEXECDIR=\""$(libexecdir)"\"
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAM_LDFLAGS = \
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón -Wl,--as-needed
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón
98077125580d5600842a6d13d0597e50dfb9572aLennart PoetteringDISTCHECK_CONFIGURE_FLAGS = \
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón --enable-gtk-doc
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónCLEANFILES =
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
78a825f216d39ee0295b00647b059d45467e1d02Kay Sievers# ------------------------------------------------------------------------------
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# libudev
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# ------------------------------------------------------------------------------
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónLIBUDEV_CURRENT=8
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónLIBUDEV_REVISION=3
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversLIBUDEV_AGE=8
907dd1953b7517534d646f5b2777780020c896e2Kay Sievers
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversSUBDIRS += libudev/docs
6aad7f2cd75c88f990c7857bb173b3e8d0faee0fUmut Tezduyar Lindskog
91ca5bf0b6f3b487a16cc262527c9de6744db624Martin Pittinclude_HEADERS = libudev/libudev.h
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieverslib_LTLIBRARIES = libudev/libudev.la
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart Poetteringlibudev_libudev_la_SOURCES =\
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee libudev/libudev-private.h \
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee libudev/libudev.c \
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee libudev/libudev-list.c \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering libudev/libudev-util.c \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers libudev/libudev-device.c \
8666abb452db73d9a11ead61251eec42bc531cceKay Sievers libudev/libudev-enumerate.c \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering libudev/libudev-monitor.c \
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez libudev/libudev-queue.c
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart Poettering
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguezlibudev_libudev_la_LDFLAGS = \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger -export-symbols $(top_srcdir)/libudev/exported_symbols
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburgernoinst_LTLIBRARIES = \
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger libudev/libudev-private.la
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburgerlibudev_libudev_private_la_SOURCES =\
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger $(libudev_libudev_la_SOURCES) \
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger libudev/libudev-ctrl.c \
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger libudev/libudev-util-private.c \
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger libudev/libudev-device-private.c \
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger libudev/libudev-queue-private.c
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburgerif WITH_SELINUX
a59f16ce4a11c440cb2136ad3d5e3184714c545eRobert Schielelibudev_libudev_private_la_SOURCES += libudev/libudev-selinux-private.c
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburgerlibudev_libudev_private_la_LIBADD = $(SELINUX_LIBS)
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Noceraendif
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburgerpkgconfigdir = $(libdir)/pkgconfig
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburgerpkgconfig_DATA = libudev/libudev.pc
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerEXTRA_DIST += libudev/exported_symbols libudev/COPYING
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburgerlibudev-install-move-hook:
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera if test "$(libdir)" != "$(rootlib_execdir)"; then \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera mkdir -p $(DESTDIR)$(rootlib_execdir) && \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera so_img_name=$$(readlink $(DESTDIR)$(libdir)/libudev.so) && \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering ln -sf $$so_img_rel_target_prefix$(rootlib_execdir)/$$so_img_name $(DESTDIR)$(libdir)/libudev.so && \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering mv $(DESTDIR)$(libdir)/libudev.so.* $(DESTDIR)$(rootlib_execdir); \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering fi
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringlibudev-uninstall-move-hook:
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringINSTALL_EXEC_HOOKS = libudev-install-move-hook
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversUNINSTALL_EXEC_HOOKS = libudev-uninstall-move-hook
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón# ------------------------------------------------------------------------------
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen# main udev
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen# ------------------------------------------------------------------------------
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisnerinstall-data-local:
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski -mkdir -p $(DESTDIR)$(sysconfdir)/udev/rules.d
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski -mkdir -p $(DESTDIR)$(libexecdir)/devices
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart PoetteringEXTRA_DIST += \
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen rules/arch \
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen rules/misc
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmekudevrulesdir = $(libexecdir)/rules.d
446883528524429283626208928b51f49f28f810Lennart Poetteringdist_udevrules_DATA = \
446883528524429283626208928b51f49f28f810Lennart Poettering rules/rules.d/50-udev-default.rules \
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek rules/rules.d/60-persistent-storage.rules \
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek rules/rules.d/60-persistent-storage-tape.rules \
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers rules/rules.d/60-persistent-serial.rules \
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek rules/rules.d/60-persistent-input.rules \
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek rules/rules.d/60-persistent-alsa.rules \
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek rules/rules.d/80-drivers.rules \
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek rules/rules.d/95-udev-late.rules
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekudevconfdir = $(sysconfdir)/udev
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekdist_udevconf_DATA = udev.conf
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmeksharepkgconfigdir = $(datadir)/pkgconfig
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sieverssharepkgconfig_DATA = udev/udev.pc
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmekif WITH_SYSTEMD
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmeksystemdsystemunit_DATA = \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek init/udev.service \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers init/udev-settle.service \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa init/udev-retry.service
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansaendif
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblsbin_PROGRAMS = \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl udev/udevd \
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding udev/udevadm
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekudev_common_sources =\
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek udev/udev.h \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek udev/udev-event.c \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek udev/udev-watch.c \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek udev/udev-node.c \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek udev/udev-rules.c
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekudev_udevd_SOURCES = \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek $(udev_common_sources) \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek udev/udevd.c
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekudev_udevd_LDADD = libudev/libudev-private.la
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekudev_udevadm_SOURCES = \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek $(udev_common_sources) \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm.c \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm-info.c \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm-control.c \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm-test.c \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm-monitor.c \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm-settle.c \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm-trigger.c
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekudev_udevadm_LDADD = libudev/libudev-private.la
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek# udev man pages
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekdist_man_MANS = \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udev.7 \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevadm.8 \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek udev/udevd.8
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringEXTRA_DIST += \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering udev/udev.xml \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering udev/udevadm.xml \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering udev/udevd.xml
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers%.7 %.8 : %.xml
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering $(AM_V_GEN)$(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# udev tests
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringTESTS = test/udev-test.pl
03930e48636e86ad84946253ca2bf4f91deeb645Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringcheck_PROGRAMS = \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering libudev/test-libudev \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering udev/test-udev
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringlibudev_test_libudev_SOURCES = libudev/test-libudev.c
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringlibudev_test_libudev_LDADD = libudev/libudev.la
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringudev_test_udev_SOURCES = \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering $(udev_common_sources) \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering udev/test-udev.c
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringudev_test_udev_LDADD = libudev/libudev-private.la
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# rule_generator - persistent network and optical device rule generator
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering# ------------------------------------------------------------------------------
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poetteringdist_libexec_SCRIPTS = \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt extras/rule_generator/write_cd_rules \
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart Poettering extras/rule_generator/write_net_rules
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poetteringudevhomedir = $(libexecdir)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringdist_udevhome_DATA = extras/rule_generator/rule_generator.functions
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieridist_udevrules_DATA += \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri extras/rule_generator/75-cd-aliases-generator.rules \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri extras/rule_generator/75-persistent-net-generator.rules
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering# ------------------------------------------------------------------------------
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian Rodríguez# firmware - firmware loading
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez# ------------------------------------------------------------------------------
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poetteringextras_firmware_firmware_SOURCES = extras/firmware/firmware.c
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmekextras_firmware_firmware_LDADD = libudev/libudev-private.la
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmekextras_firmware_firmware_CPPFLAGS = $(AM_CPPFLAGS) -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmekdist_udevrules_DATA += extras/firmware/50-firmware.rules
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmeklibexec_PROGRAMS = extras/firmware/firmware
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek# ata_id - ATA identify
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers# ------------------------------------------------------------------------------
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sieversextras_ata_id_ata_id_SOURCES = extras/ata_id/ata_id.c
235c6e628199221b7885f159367614b7105547cfJohnextras_ata_id_ata_id_LDADD = libudev/libudev-private.la
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sieverslibexec_PROGRAMS += extras/ata_id/ata_id
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering# ------------------------------------------------------------------------------
03a170c03cd4a09721369ece48affb70d66c6b90Kay Sievers# cdrom_id - optical drive/media capability
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekextras_cdrom_id_cdrom_id_SOURCES = extras/cdrom_id/cdrom_id.c
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekextras_cdrom_id_cdrom_id_LDADD = libudev/libudev-private.la
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/cdrom_id/cdrom_id
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchidist_udevrules_DATA += extras/cdrom_id/60-cdrom_id.rules
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri# ------------------------------------------------------------------------------
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutras# collect - trigger action when a collection of devices appeared
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering# ------------------------------------------------------------------------------
5a45a93627609451784a04366cfa1150d32611d1Lennart Poetteringextras_collect_collect_SOURCES = extras/collect/collect.c
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmekextras_collect_collect_LDADD = libudev/libudev-private.la
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguezlibexec_PROGRAMS += extras/collect/collect
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmek
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# edd_id - BIOS EDD block device match
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmekextras_edd_id_edd_id_SOURCES = extras/edd_id/edd_id.c
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart Poetteringextras_edd_id_edd_id_LDADD = libudev/libudev-private.la
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/edd_id/edd_id
de99c9dcbaf6e474551266d8f0b519bf2d8d0522Lennart Poetteringdist_udevrules_DATA += extras/edd_id/61-persistent-storage-edd.rules
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek# create_floppy_devices - historical floppy kernel device nodes (/dev/fd0h1440, ...)
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmekextras_floppy_create_floppy_devices_SOURCES = extras/floppy/create_floppy_devices.c
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekextras_floppy_create_floppy_devices_LDADD = libudev/libudev-private.la
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/floppy/create_floppy_devices
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekdist_udevrules_DATA += extras/floppy/60-floppy.rules
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# input_id - import input device class
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekextras_input_id_input_id_SOURCES = extras/input_id/input_id.c
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekextras_input_id_input_id_LDADD = libudev/libudev-private.la
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerlibexec_PROGRAMS += extras/input_id/input_id
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger# ------------------------------------------------------------------------------
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger# path_id - compose identifier of persistent elements of the parent buses
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger# ------------------------------------------------------------------------------
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerextras_path_id_path_id_SOURCES = extras/path_id/path_id.c
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerextras_path_id_path_id_LDADD = libudev/libudev-private.la
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/path_id/path_id
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek# fstab_import - import /etc/fstab entry for block device
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmekextras_fstab_import_fstab_import_SOURCES = extras/fstab_import/fstab_import.c
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmekextras_fstab_import_fstab_import_LDADD = libudev/libudev-private.la
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/fstab_import/fstab_import
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekdist_udevrules_DATA += extras/fstab_import/79-fstab_import.rules
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl# scsi_id - SCSI inquiry to get various serial numbers
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekextras_scsi_id_scsi_id_SOURCES =\
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek extras/scsi_id/scsi_id.c \
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek extras/scsi_id/scsi_serial.c \
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek extras/scsi_id/scsi.h \
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek extras/scsi_id/scsi_id.h
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekextras_scsi_id_scsi_id_LDADD = libudev/libudev-private.la
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/scsi_id/scsi_id
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmekdist_man_MANS += extras/scsi_id/scsi_id.8
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# usb_id - USB device property import
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekextras_usb_id_usb_id_SOURCES = extras/usb_id/usb_id.c
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekextras_usb_id_usb_id_LDADD = libudev/libudev-private.la
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmeklibexec_PROGRAMS += extras/usb_id/usb_id
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# v4l_id - video4linux capabilities
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekextras_v4l_id_v4l_id_SOURCES = extras/v4l_id/v4l_id.c
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekextras_v4l_id_v4l_id_LDADD = libudev/libudev-private.la
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poetteringlibexec_PROGRAMS += extras/v4l_id/v4l_id
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sieversdist_udevrules_DATA += extras/v4l_id/60-persistent-v4l.rules
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmekif ENABLE_EXTRAS
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# conditional extras (need glib, libusb, libacl, ...)
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebldist_udevrules_DATA += \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl rules/rules.d/75-net-description.rules \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl rules/rules.d/75-tty-description.rules \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering rules/rules.d/78-sound-card.rules
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# GUdev - libudev gobject interface
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenLIBGUDEV_CURRENT=0
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenLIBGUDEV_REVISION=1
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenLIBGUDEV_AGE=0
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringSUBDIRS += extras/gudev/docs
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmeklibgudev_includedir=$(includedir)/gudev-1.0/gudev
f7ad54a301e4ae8dceab54d3ab3934e56c1134eaLennart Poetteringlibgudev_include_HEADERS = \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudev.h \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevenums.h \
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering extras/gudev/gudevenumtypes.h \
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich extras/gudev/gudevtypes.h \
3b794314149e40afaf3c456285e1e529747b6560Holger Schurig extras/gudev/gudevclient.h \
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering extras/gudev/gudevdevice.h
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60Lennart Poetteringlib_LTLIBRARIES += extras/gudev/libgudev-1.0.la
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekpkgconfig_DATA += extras/gudev/gudev-1.0.pc
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmekextras_gudev_libgudev_1_0_la_SOURCES = \
c4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1Tom Gundersen extras/gudev/gudevenums.h \
6589d0dba2b1ccf2406db527c2c1b51c7143e117Jean-André Santoni extras/gudev/gudevenumtypes.h \
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmek extras/gudev/gudevenumtypes.h\
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevtypes.h \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevclient.h \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevclient.c \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevdevice.h \
8ecec322fe6b34b64868d8cc3808b5613f09e8d3Zbigniew Jędrzejewski-Szmek extras/gudev/gudevdevice.c \
8ecec322fe6b34b64868d8cc3808b5613f09e8d3Zbigniew Jędrzejewski-Szmek extras/gudev/gudevprivate.h
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekdist_extras_gudev_libgudev_1_0_la_SOURCES = \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevmarshal.h \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevmarshal.c \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevenumtypes.h \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek extras/gudev/gudevenumtypes.c
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekBUILT_SOURCES = $(dist_extras_gudev_libgudev_1_0_la_SOURCES)
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekextras_gudev_libgudev_1_0_la_CPPFLAGS = \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek $(AM_CPPFLAGS) \
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek -I$(top_builddir)/extras \
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering -I$(top_srcdir)/extras \
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen -I$(top_builddir)/extras/gudev \
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer -I$(top_srcdir)/extras/gudev \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2270309471213a3c960543e523130627e9cb10e2Kay Sievers -D_GUDEV_COMPILATION \
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek -DG_LOG_DOMAIN=\"GUdev\"
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekextras_gudev_libgudev_1_0_la_CFLAGS = $(GLIB_CFLAGS)
8114dedc5910d9a9cec702f6b6658551a0cd9edeChengwei Yangextras_gudev_libgudev_1_0_la_LIBADD = libudev/libudev.la $(GLIB_LIBS)
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekextras_gudev_libgudev_1_0_la_LDFLAGS = \
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek -export-dynamic -no-undefined \
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek -export-symbols-regex '^g_udev_.*'
2270309471213a3c960543e523130627e9cb10e2Kay Sievers
4b357e15876b730343db08719c877fdb45b6ad42Michael MarineauEXTRA_DIST += \
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing extras/gudev/COPYING \
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing extras/gudev/gudevmarshal.list \
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing extras/gudev/gudevenumtypes.h.template \
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing extras/gudev/gudevenumtypes.c.template
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingextras/gudev/gudevmarshal.h: extras/gudev/gudevmarshal.list
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingextras/gudev/gudevmarshal.c: extras/gudev/gudevmarshal.list
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing $(AM_V_GEN)echo "#include \"gudevmarshal.h\"" > $@ && \
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmekextras/gudev/gudevenumtypes.h: extras/gudev/gudevenumtypes.h.template extras/gudev/gudevenums.h
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek $(AM_V_GEN)glib-mkenums --template $^ > \
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek $@.tmp && mv $@.tmp $@
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmekextras/gudev/gudevenumtypes.c: extras/gudev/gudevenumtypes.c.template extras/gudev/gudevenums.h
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek $(AM_V_GEN)glib-mkenums --template $^ > \
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek $@.tmp && mv $@.tmp $@
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmekif ENABLE_INTROSPECTION
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenextras/gudev/GUdev-1.0.gir: extras/gudev/libgudev-1.0.la $(G_IR_SCANNER) Makefile.am
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(AM_V_GEN)PKG_CONFIG_PATH=$(top_builddir)/data:$$PKG_CONFIG_PATH \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen LD_LIBRARY_PATH=$(top_builddir)/extras/gudev \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(G_IR_SCANNER) -v \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --namespace GUdev \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --nsversion=1.0 \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --include=GObject-2.0 \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --library=gudev-1.0 \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --library-path=extras/gudev \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --output $@ \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --pkg=glib-2.0 \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen --pkg=gobject-2.0 \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -I$(top_builddir)/extras \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -I$(top_srcdir)/extras \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -D_GUDEV_COMPILATION \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -D_GUDEV_WORK_AROUND_DEV_T_BUG \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(top_srcdir)/extras/gudev/gudev.h \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(top_srcdir)/extras/gudev/gudevtypes.h \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(top_srcdir)/extras/gudev/gudevenums.h \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(or $(wildcard $(top_builddir)/extras/gudev/gudevenumtypes.h),$(top_srcdir)/extras/gudev/gudevenumtypes.h) \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(top_srcdir)/extras/gudev/gudevclient.h \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(top_srcdir)/extras/gudev/gudevdevice.h \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen $(top_srcdir)/extras/gudev/gudevclient.c \
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen $(top_srcdir)/extras/gudev/gudevdevice.c
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenextras/gudev/GUdev-1.0.typelib: extras/gudev/GUdev-1.0.gir $(G_IR_COMPILER)
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen $(AM_V_GEN)g-ir-compiler $< -o $@
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisnergirdir = $(GIRDIR)
a18535d9e138c525d0443ec9f30a90b3e2184686Tom Gundersengir_DATA = extras/gudev/GUdev-1.0.gir
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strausstypelibsdir = $(GIRTYPELIBDIR)
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisnertypelibs_DATA = extras/gudev/GUdev-1.0.typelib
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom GundersenCLEANFILES += $(gir_DATA) $(typelibs_DATA)
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenendif # ENABLE_INTROSPECTION
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
f553b3b1074151200187df916427a1468186435eAnders Olofsson# Bluetooth HID devices with special magic to switch the device
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# ------------------------------------------------------------------------------
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannextras_hid2hci_hid2hci_SOURCES = extras/hid2hci/hid2hci.c
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannextras_hid2hci_hid2hci_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS)
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannextras_hid2hci_hid2hci_LDADD = libudev/libudev-private.la $(LIBUSB_LIBS)
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmanndist_udevrules_DATA += extras/hid2hci/70-hid2hci.rules
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannlibexec_PROGRAMS += extras/hid2hci/hid2hci
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# ------------------------------------------------------------------------------
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# udev_acl - apply ACLs for users with local forground sessions
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# ------------------------------------------------------------------------------
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannextras_udev_acl_udev_acl_SOURCES = extras/udev-acl/udev-acl.c
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannextras_udev_acl_udev_acl_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
f553b3b1074151200187df916427a1468186435eAnders Olofssonextras_udev_acl_udev_acl_LDADD = libudev/libudev-private.la -lacl $(GLIB_LIBS)
f553b3b1074151200187df916427a1468186435eAnders Olofssondist_udevrules_DATA += extras/udev-acl/70-acl.rules
f553b3b1074151200187df916427a1468186435eAnders Olofssonlibexec_PROGRAMS += extras/udev-acl/udev-acl
f553b3b1074151200187df916427a1468186435eAnders Olofsson
d47f6ca5f9b7a0b400d8bdb050151a0284fb4bdbGabriel de Perthuisudevacl-install-hook:
f553b3b1074151200187df916427a1468186435eAnders Olofsson mkdir -p $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d
f553b3b1074151200187df916427a1468186435eAnders Olofsson ln -sf $(libexecdir)/udev-acl $(DESTDIR)$(prefix)/lib/ConsoleKit/run-seat.d/udev-acl.ck
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders OlofssonINSTALL_EXEC_HOOKS += udevacl-install-hook
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofsson# ------------------------------------------------------------------------------
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen# usb-db - read USB vendor/device string database
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech# ------------------------------------------------------------------------------
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechextras_usb_db_usb_db_SOURCES = extras/usb-db/usb-db.c
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechextras_usb_db_usb_db_CPPFLAGS = $(AM_CPPFLAGS) -DUSB_DATABASE=\"$(USB_DATABASE)\" -DBUILD_FOR_USB
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechextras_usb_db_usb_db_LDADD = libudev/libudev-private.la
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechlibexec_PROGRAMS += extras/usb-db/usb-db
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech# ------------------------------------------------------------------------------
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech# pci-db - read PCI vendor/device string database
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierextras_usb_db_pci_db_SOURCES = extras/usb-db/usb-db.c
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierextras_usb_db_pci_db_CPPFLAGS = $(AM_CPPFLAGS) -DPCI_DATABASE=\"$(PCI_DATABASE)\" -DBUILD_FOR_PCI
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierextras_usb_db_pci_db_LDADD = libudev/libudev-private.la
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierlibexec_PROGRAMS += extras/usb-db/pci-db
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering# ------------------------------------------------------------------------------
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering# mobile-action-modeswitch - switch Mobile Action cables into serial mode
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierextras_mobile_action_modeswitch_mobile_action_modeswitch_SOURCES =\
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier extras/mobile-action-modeswitch/mobile-action-modeswitch.c \
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier extras/mobile-action-modeswitch/utils.c \
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier extras/mobile-action-modeswitch/utils.h \
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier extras/mobile-action-modeswitch/ma8280p_us.c \
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier extras/mobile-action-modeswitch/ma8280p_us.h
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierextras_mobile_action_modeswitch_mobile_action_modeswitch_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversextras_mobile_action_modeswitch_mobile_action_modeswitch_LDADD = libudev/libudev-private.la $(LIBUSB_LIBS)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassudist_udevrules_DATA += \
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu extras/mobile-action-modeswitch/61-mobile-action.rules
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassulibexec_PROGRAMS += extras/mobile-action-modeswitch/mobile-action-modeswitch
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# mtd_probe - autoloads FTL module for mtd devices
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuextras_mtd_probe_mtd_probe_SOURCES = \
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu extras/mtd_probe/mtd_probe.c \
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu extras/mtd_probe/mtd_probe.h \
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu extras/mtd_probe/probe_smartmedia.c
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringextras_mtd_probe_mtd_probe_CPPFLAGS = $(AM_CPPFLAGS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringdist_udevrules_DATA += extras/mtd_probe/75-probe_mtd.rules
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringlibexec_PROGRAMS += extras/mtd_probe/mtd_probe
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# keymap - map custom hardware's multimedia keys
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringextras_keymap_keymap_SOURCES = extras/keymap/keymap.c
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringextras_keymap_keymap_CPPFLAGS = $(AM_CPPFLAGS) -I extras/keymap
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringnodist_extras_keymap_keymap_SOURCES = \
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering extras/keymap/keys-from-name.h \
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering extras/keymap/keys-to-name.h
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringBUILT_SOURCES += $(nodist_extras_keymap_keymap_SOURCES)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringEXTRA_DIST += extras/keymap/check-keymaps.sh
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversdist_udevrules_DATA += extras/keymap/95-keymap.rules
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringdist_udevrules_DATA += extras/keymap/95-keyboard-force-release.rules
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringlibexec_PROGRAMS += extras/keymap/keymap
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringdist_libexec_SCRIPTS += extras/keymap/findkeyboards
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardtdist_libexec_SCRIPTS += extras/keymap/keyboard-force-release.sh
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poetteringdist_doc_DATA = extras/keymap/README.keymap.txt
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart PoetteringCLEANFILES += \
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering extras/keymap/keys.txt \
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering extras/keymap/keys-from-name.gperf
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringudevkeymapdir = $(libexecdir)/keymaps
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshdist_udevkeymap_DATA = \
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering extras/keymap/keymaps/acer \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/acer-aspire_5720 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/acer-aspire_5920g \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/acer-aspire_6920 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/acer-travelmate_c300 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/asus \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/compaq-e_evo \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/dell \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/everex-xt5000 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/fujitsu-amilo_pa_2548 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/fujitsu-amilo_pro_edition_v3505 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/fujitsu-amilo_pro_v3205 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/fujitsu-amilo_si_1520 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/fujitsu-esprimo_mobile_v5 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/fujitsu-esprimo_mobile_v6 \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/hewlett-packard \
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer extras/keymap/keymaps/hewlett-packard-2510p_2530p \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/hewlett-packard-compaq_elitebook \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/hewlett-packard-pavilion \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/hewlett-packard-presario-2100 \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/hewlett-packard-tablet \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/hewlett-packard-tx2 \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/inventec-symphony_6.0_7.0 \
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers extras/keymap/keymaps/lenovo-3000 \
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh extras/keymap/keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/lenovo-thinkpad_x6_tablet \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/lenovo-thinkpad_x200_tablet \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/lg-x110 \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/logitech-wave \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/logitech-wave-cordless \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/maxdata-pro_7000 \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/medion-fid2060 \
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez extras/keymap/keymaps/medionnb-a555 \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/micro-star \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/module-asus-w3j \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/module-ibm \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/module-lenovo \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/module-sony \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/module-sony-old \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/olpc-xo \
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek extras/keymap/keymaps/oqo-model2 \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers extras/keymap/keymaps/samsung-other \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/keymaps/samsung-sq1us \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/keymaps/samsung-sx20s \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/keymaps/toshiba-satellite_a100 \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/keymaps/toshiba-satellite_a110 \
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek extras/keymap/keymaps/toshiba-satellite_m30x \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/keymaps/zepto-znote
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringudevkeymapforcereldir = $(libexecdir)/keymaps/force-release
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringdist_udevkeymapforcerel_DATA = \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/force-release-maps/samsung-other \
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering extras/keymap/force-release-maps/common-volume-keys
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poetteringextras/keymap/keys.txt: $(INCLUDE_PREFIX)/linux/input.h
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering $(AM_V_at)mkdir -p extras/keymap
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering $(AM_V_GEN)$(AWK) '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poetteringextras/keymap/keys-from-name.gperf: extras/keymap/keys.txt
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poetteringextras/keymap/keys-from-name.h: extras/keymap/keys-from-name.gperf Makefile
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering $(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poetteringextras/keymap/keys-to-name.h: extras/keymap/keys.txt Makefile
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poetteringkeymaps-distcheck-hook: extras/keymap/keys.txt
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering $(top_srcdir)/extras/keymap/check-keymaps.sh $(top_srcdir) $^
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart PoetteringDISTCHECK_HOOKS = keymaps-distcheck-hook
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poetteringendif # ENABLE_EXTRAS
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering# ------------------------------------------------------------------------------
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering# install, uninstall, clean hooks
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmekclean-local:
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek rm -rf udev-test-install
0a7f0fcc79772d257e0c42358ad472a37a8ab151Dave Reisner
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmekdistclean-local:
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek rm -rf autom4te.cache
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekCLEANFILES += \
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek udev-$(VERSION).tar.gz \
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek udev-$(VERSION).tar.bz2 \
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek $(BUILT_SOURCES)
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversEXTRA_DIST += $(TESTS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringinstall-exec-hook: $(INSTALL_EXEC_HOOKS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringuninstall-hook: $(UNINSTALL_EXEC_HOOKS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringdistcheck-hook: $(DISTCHECK_HOOKS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# custom release helpers
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringPREVIOUS_VERSION = `expr $(VERSION) - 1`
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringchangelog:
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ mv ChangeLog ChangeLog.tmp
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ echo "============================================" >> ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ echo >> ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ echo >> ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ cat ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ cat ChangeLog.tmp >> ChangeLog
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering @ rm ChangeLog.tmp
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringtest-install:
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering rm -rf $(PWD)/udev-test-install/
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering make DESTDIR=$(PWD)/udev-test-install install
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering tree $(PWD)/udev-test-install/
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poetteringgit-release:
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering head -1 ChangeLog | grep -q "to v$(VERSION)"
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering head -1 NEWS | grep -q "udev $(VERSION)"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering git commit -a -m "release $(VERSION)"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering git gc
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering git prune
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringdoc-sync:
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering rsync -av --delete libudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/libudev/
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers rsync -av --delete extras/gudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/gudev/
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering