2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# Copyright (C) 2008-2009 Kay Sievers <kay.sievers@vrfy.org>
# Copyright (C) 2009 Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
# ------------------------------------------------------------------------------
2008-07-30 03:45:23 +04:00
2009-08-14 21:27:00 +04:00
SUBDIRS = .
2008-12-06 06:03:08 +03:00
2009-08-14 21:27:00 +04:00
EXTRA_DIST = autogen.sh
2009-08-07 04:58:23 +04:00
2009-02-26 16:11:43 +03:00
ACLOCAL_AMFLAGS = -I m4
2009-08-06 17:51:47 +04:00
AM_MAKEFLAGS = --no-print-directory
2009-08-07 21:44:30 +04:00
AM_CPPFLAGS = \
-include $( top_builddir) /config.h \
-I$( top_srcdir) /libudev \
-DSYSCONFDIR= \" " $( sysconfdir) " \" \
-DLIBEXECDIR= \" " $( libexecdir) " \"
2011-05-18 20:29:24 +04:00
AM_CFLAGS = \
-fvisibility= hidden \
-ffunction-sections \
-fdata-sections
2009-08-07 21:44:30 +04:00
AM_LDFLAGS = \
2011-05-18 20:29:24 +04:00
-Wl,--gc-sections \
2009-08-07 21:44:30 +04:00
-Wl,--as-needed
2009-06-16 19:43:12 +04:00
DISTCHECK_CONFIGURE_FLAGS = \
2010-06-25 12:42:33 +04:00
--enable-gtk-doc \
--with-systemdsystemunitdir= $$ dc_install_base/$( systemdsystemunitdir)
2009-06-15 15:22:21 +04:00
2009-08-14 21:27:00 +04:00
CLEANFILES =
2011-04-29 16:27:11 +04:00
BUILT_SOURCES =
2010-09-03 15:30:57 +04:00
INSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
UNINSTALL_EXEC_HOOKS =
DISTCHECK_HOOKS =
2011-04-29 16:27:11 +04:00
dist_libexec_SCRIPTS =
2010-09-03 15:30:57 +04:00
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# libudev
# ------------------------------------------------------------------------------
2011-03-05 08:27:31 +03:00
LIBUDEV_CURRENT = 11
2011-05-20 16:41:10 +04:00
LIBUDEV_REVISION = 5
2011-03-05 08:27:31 +03:00
LIBUDEV_AGE = 11
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
SUBDIRS += libudev/docs
2009-08-07 04:52:49 +04:00
2009-08-07 04:01:29 +04:00
include_HEADERS = libudev/libudev.h
lib_LTLIBRARIES = libudev/libudev.la
libudev_libudev_la_SOURCES = \
libudev/libudev-private.h \
libudev/libudev.c \
libudev/libudev-list.c \
libudev/libudev-util.c \
libudev/libudev-device.c \
libudev/libudev-enumerate.c \
libudev/libudev-monitor.c \
libudev/libudev-queue.c
libudev_libudev_la_LDFLAGS = \
2011-05-20 16:41:10 +04:00
-version-info $( LIBUDEV_CURRENT) :$( LIBUDEV_REVISION) :$( LIBUDEV_AGE)
2009-08-07 04:01:29 +04:00
noinst_LTLIBRARIES = \
libudev/libudev-private.la
libudev_libudev_private_la_SOURCES = \
$( libudev_libudev_la_SOURCES) \
libudev/libudev-ctrl.c \
libudev/libudev-util-private.c \
libudev/libudev-device-private.c \
libudev/libudev-queue-private.c
2009-08-14 21:27:00 +04:00
i f W I T H _ S E L I N U X
libudev_libudev_private_la_SOURCES += libudev/libudev-selinux-private.c
libudev_libudev_private_la_LIBADD = $( SELINUX_LIBS)
e n d i f
2009-08-07 04:01:29 +04:00
2009-08-14 16:17:50 +04:00
pkgconfigdir = $( libdir) /pkgconfig
pkgconfig_DATA = libudev/libudev.pc
2011-05-20 16:41:10 +04:00
EXTRA_DIST += libudev/COPYING
2009-08-14 21:27:00 +04:00
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
libudev-install-move-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
2009-08-07 05:16:32 +04:00
2009-08-14 21:27:00 +04:00
libudev-uninstall-move-hook :
rm -f $( DESTDIR) $( rootlib_execdir) /libudev.so*
2009-08-07 05:16:32 +04:00
2010-09-03 15:30:57 +04:00
INSTALL_EXEC_HOOKS += libudev-install-move-hook
UNINSTALL_EXEC_HOOKS += libudev-uninstall-move-hook
2009-08-07 05:16:32 +04:00
2009-08-07 04:01:29 +04:00
# ------------------------------------------------------------------------------
2009-08-14 21:27:00 +04:00
# main udev
2009-08-07 04:01:29 +04:00
# ------------------------------------------------------------------------------
2010-09-03 15:30:57 +04:00
udev-confdirs :
2009-08-14 21:27:00 +04:00
-mkdir -p $( DESTDIR) $( sysconfdir) /udev/rules.d
2010-05-30 17:13:48 +04:00
-mkdir -p $( DESTDIR) $( libexecdir) /devices
2009-08-14 21:27:00 +04:00
2010-09-03 15:30:57 +04:00
INSTALL_DATA_HOOKS += udev-confdirs
2009-08-14 21:27:00 +04:00
EXTRA_DIST += \
2010-05-30 17:16:53 +04:00
rules/arch \
2010-06-24 11:35:39 +04:00
rules/misc
2009-08-14 21:27:00 +04:00
udevrulesdir = $( libexecdir) /rules.d
dist_udevrules_DATA = \
rules/rules.d/50-udev-default.rules \
rules/rules.d/60-persistent-storage.rules \
rules/rules.d/60-persistent-storage-tape.rules \
rules/rules.d/60-persistent-serial.rules \
rules/rules.d/60-persistent-input.rules \
rules/rules.d/60-persistent-alsa.rules \
rules/rules.d/80-drivers.rules \
rules/rules.d/95-udev-late.rules
udevconfdir = $( sysconfdir) /udev
dist_udevconf_DATA = udev.conf
sharepkgconfigdir = $( datadir) /pkgconfig
sharepkgconfig_DATA = udev/udev.pc
2009-08-07 04:01:29 +04:00
2010-06-25 12:30:55 +04:00
i f W I T H _ S Y S T E M D
systemdsystemunit_DATA = \
2011-03-23 18:40:23 +03:00
init/udev.socket \
2010-06-25 12:30:55 +04:00
init/udev.service \
2011-03-23 18:40:23 +03:00
init/udev-trigger.service \
2011-03-19 20:13:01 +03:00
init/udev-settle.service
2010-09-03 15:30:57 +04:00
2011-03-23 18:40:23 +03:00
EXTRA_DIST += init/udev.socket
2010-09-03 15:30:57 +04:00
systemd-install-hook :
2011-03-23 22:35:19 +03:00
mkdir -p $( DESTDIR) $( systemdsystemunitdir) /sockets.target.wants
ln -sf ../udev.socket $( DESTDIR) $( systemdsystemunitdir) /sockets.target.wants/udev.socket
2010-09-29 02:48:35 +04:00
mkdir -p $( DESTDIR) $( systemdsystemunitdir) /basic.target.wants
ln -sf ../udev.service $( DESTDIR) $( systemdsystemunitdir) /basic.target.wants/udev.service
2011-03-23 18:40:23 +03:00
ln -sf ../udev-trigger.service $( DESTDIR) $( systemdsystemunitdir) /basic.target.wants/udev-trigger.service
2010-09-03 15:30:57 +04:00
INSTALL_DATA_HOOKS += systemd-install-hook
2010-06-25 12:30:55 +04:00
e n d i f
2009-08-07 04:01:29 +04:00
sbin_PROGRAMS = \
udev/udevd \
udev/udevadm
udev_common_sources = \
udev/udev.h \
udev/udev-event.c \
udev/udev-watch.c \
udev/udev-node.c \
udev/udev-rules.c
udev_udevd_SOURCES = \
$( udev_common_sources) \
2010-10-07 16:59:11 +04:00
udev/udevd.c \
udev/sd-daemon.h \
udev/sd-daemon.c
2009-08-14 21:27:00 +04:00
udev_udevd_LDADD = libudev/libudev-private.la
2009-08-07 04:01:29 +04:00
udev_udevadm_SOURCES = \
$( udev_common_sources) \
udev/udevadm.c \
udev/udevadm-info.c \
udev/udevadm-control.c \
udev/udevadm-test.c \
udev/udevadm-monitor.c \
udev/udevadm-settle.c \
udev/udevadm-trigger.c
2009-08-14 21:27:00 +04:00
udev_udevadm_LDADD = libudev/libudev-private.la
# ------------------------------------------------------------------------------
2010-01-25 12:48:04 +03:00
# udev man pages
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
dist_man_MANS = \
udev/udev.7 \
udev/udevadm.8 \
udev/udevd.8
2010-12-26 18:01:13 +03:00
dist_noinst_DATA = \
udev/udev.html \
udev/udevadm.html \
udev/udevd.html
2009-08-14 21:27:00 +04:00
EXTRA_DIST += \
udev/udev.xml \
udev/udevadm.xml \
udev/udevd.xml
2010-12-26 18:01:13 +03:00
udev/%.7 udev/%.8 : udev /%.xml
2010-05-24 19:00:15 +04:00
$( AM_V_GEN) $( XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2009-08-14 21:27:00 +04:00
2010-12-26 18:01:13 +03:00
udev/%.html : udev /%.xml
$( AM_V_GEN) $( XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# udev tests
# ------------------------------------------------------------------------------
2010-09-21 14:45:52 +04:00
TESTS = test/udev-test.pl test/rules-test.sh
2009-08-14 21:27:00 +04:00
check_PROGRAMS = \
libudev/test-libudev \
udev/test-udev
libudev_test_libudev_SOURCES = libudev/test-libudev.c
libudev_test_libudev_LDADD = libudev/libudev.la
udev_test_udev_SOURCES = \
$( udev_common_sources) \
udev/test-udev.c
udev_test_udev_LDADD = libudev/libudev-private.la
2009-08-07 04:01:29 +04:00
2009-12-15 18:28:52 +03:00
# ------------------------------------------------------------------------------
# firmware - firmware loading
# ------------------------------------------------------------------------------
extras_firmware_firmware_SOURCES = extras/firmware/firmware.c
extras_firmware_firmware_LDADD = libudev/libudev-private.la
2010-04-16 09:38:32 +04:00
extras_firmware_firmware_CPPFLAGS = $( AM_CPPFLAGS) -DFIRMWARE_PATH= " $( FIRMWARE_PATH) "
2009-12-15 18:28:52 +03:00
dist_udevrules_DATA += extras/firmware/50-firmware.rules
libexec_PROGRAMS = extras/firmware/firmware
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# ata_id - ATA identify
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_ata_id_ata_id_SOURCES = extras/ata_id/ata_id.c
extras_ata_id_ata_id_LDADD = libudev/libudev-private.la
2009-12-15 18:28:52 +03:00
libexec_PROGRAMS += extras/ata_id/ata_id
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# cdrom_id - optical drive/media capability
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_cdrom_id_cdrom_id_SOURCES = extras/cdrom_id/cdrom_id.c
extras_cdrom_id_cdrom_id_LDADD = libudev/libudev-private.la
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/cdrom_id/cdrom_id
dist_udevrules_DATA += extras/cdrom_id/60-cdrom_id.rules
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# collect - trigger action when a collection of devices appeared
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_collect_collect_SOURCES = extras/collect/collect.c
extras_collect_collect_LDADD = libudev/libudev-private.la
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/collect/collect
2009-08-07 04:01:29 +04:00
2009-11-30 20:38:43 +03:00
# ------------------------------------------------------------------------------
2009-12-02 13:14:19 +03:00
# input_id - import input device class
2009-11-30 20:38:43 +03:00
# ------------------------------------------------------------------------------
extras_input_id_input_id_SOURCES = extras/input_id/input_id.c
2010-03-10 14:17:03 +03:00
extras_input_id_input_id_LDADD = libudev/libudev-private.la
2009-11-30 20:38:43 +03:00
libexec_PROGRAMS += extras/input_id/input_id
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# path_id - compose identifier of persistent elements of the parent buses
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_path_id_path_id_SOURCES = extras/path_id/path_id.c
extras_path_id_path_id_LDADD = libudev/libudev-private.la
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/path_id/path_id
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# scsi_id - SCSI inquiry to get various serial numbers
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_scsi_id_scsi_id_SOURCES = \
extras/scsi_id/scsi_id.c \
extras/scsi_id/scsi_serial.c \
extras/scsi_id/scsi.h \
2009-09-14 16:33:26 +04:00
extras/scsi_id/scsi_id.h
2009-08-07 04:01:29 +04:00
extras_scsi_id_scsi_id_LDADD = libudev/libudev-private.la
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/scsi_id/scsi_id
dist_man_MANS += extras/scsi_id/scsi_id.8
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# usb_id - USB device property import
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_usb_id_usb_id_SOURCES = extras/usb_id/usb_id.c
extras_usb_id_usb_id_LDADD = libudev/libudev-private.la
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/usb_id/usb_id
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# v4l_id - video4linux capabilities
# ------------------------------------------------------------------------------
2009-08-07 04:01:29 +04:00
extras_v4l_id_v4l_id_SOURCES = extras/v4l_id/v4l_id.c
extras_v4l_id_v4l_id_LDADD = libudev/libudev-private.la
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/v4l_id/v4l_id
dist_udevrules_DATA += extras/v4l_id/60-persistent-v4l.rules
2009-08-07 04:01:29 +04:00
2011-04-29 16:27:11 +04:00
# ------------------------------------------------------------------------------
# mtd_probe - autoloads FTL module for mtd devices
# ------------------------------------------------------------------------------
extras_mtd_probe_mtd_probe_SOURCES = \
extras/mtd_probe/mtd_probe.c \
extras/mtd_probe/mtd_probe.h \
extras/mtd_probe/probe_smartmedia.c
extras_mtd_probe_mtd_probe_CPPFLAGS = $( AM_CPPFLAGS)
dist_udevrules_DATA += extras/mtd_probe/75-probe_mtd.rules
libexec_PROGRAMS += extras/mtd_probe/mtd_probe
2011-01-25 17:51:07 +03:00
# ------------------------------------------------------------------------------
# qemu -- qemu/kvm guest tweaks
# ------------------------------------------------------------------------------
2011-01-25 18:12:44 +03:00
dist_udevrules_DATA += extras/qemu/42-qemu-usb.rules
2011-01-25 17:51:07 +03:00
2011-04-29 16:27:11 +04:00
i f E N A B L E _ R U L E _ G E N E R A T O R
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
2011-04-29 16:27:11 +04:00
# rule_generator - persistent network and optical device rule generator
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
2011-04-29 16:27:11 +04:00
dist_libexec_SCRIPTS += \
extras/rule_generator/write_cd_rules \
extras/rule_generator/write_net_rules
udevhomedir = $( libexecdir)
dist_udevhome_DATA = extras/rule_generator/rule_generator.functions
dist_udevrules_DATA += \
extras/rule_generator/75-cd-aliases-generator.rules \
extras/rule_generator/75-persistent-net-generator.rules
e n d i f
i f E N A B L E _ H W D B
# ------------------------------------------------------------------------------
# usb/pci-db - read vendor/device string database
# ------------------------------------------------------------------------------
extras_usb_db_usb_db_SOURCES = extras/usb-db/usb-db.c
extras_usb_db_usb_db_CPPFLAGS = $( AM_CPPFLAGS) -DUSB_DATABASE= \" $( USB_DATABASE) \" -DBUILD_FOR_USB
extras_usb_db_usb_db_LDADD = libudev/libudev-private.la
libexec_PROGRAMS += extras/usb-db/usb-db
2009-08-14 21:27:00 +04:00
dist_udevrules_DATA += \
rules/rules.d/75-net-description.rules \
rules/rules.d/75-tty-description.rules \
rules/rules.d/78-sound-card.rules
2009-08-07 04:58:23 +04:00
2011-04-29 16:27:11 +04:00
extras_usb_db_pci_db_SOURCES = extras/usb-db/usb-db.c
extras_usb_db_pci_db_CPPFLAGS = $( AM_CPPFLAGS) -DPCI_DATABASE= \" $( PCI_DATABASE) \" -DBUILD_FOR_PCI
extras_usb_db_pci_db_LDADD = libudev/libudev-private.la
libexec_PROGRAMS += extras/usb-db/pci-db
e n d i f
i f E N A B L E _ U D E V _ A C L
# ------------------------------------------------------------------------------
# udev_acl - apply ACLs for users with local forground sessions
# ------------------------------------------------------------------------------
extras_udev_acl_udev_acl_SOURCES = extras/udev-acl/udev-acl.c
extras_udev_acl_udev_acl_CPPFLAGS = $( AM_CPPFLAGS) $( GLIB_CFLAGS)
extras_udev_acl_udev_acl_LDADD = libudev/libudev-private.la -lacl $( GLIB_LIBS)
dist_udevrules_DATA += extras/udev-acl/70-acl.rules
libexec_PROGRAMS += extras/udev-acl/udev-acl
udevacl-install-hook :
mkdir -p $( DESTDIR) $( prefix) /lib/ConsoleKit/run-seat.d
ln -sf $( libexecdir) /udev-acl $( DESTDIR) $( prefix) /lib/ConsoleKit/run-seat.d/udev-acl.ck
INSTALL_EXEC_HOOKS += udevacl-install-hook
e n d i f
i f E N A B L E _ G U D E V
2009-08-07 04:01:29 +04:00
# ------------------------------------------------------------------------------
2009-08-16 23:14:39 +04:00
# GUdev - libudev gobject interface
2009-08-07 04:01:29 +04:00
# ------------------------------------------------------------------------------
2010-12-15 11:06:05 +03:00
LIBGUDEV_CURRENT = 1
LIBGUDEV_REVISION = 0
LIBGUDEV_AGE = 1
2009-08-07 04:23:01 +04:00
2009-08-14 21:27:00 +04:00
SUBDIRS += extras/gudev/docs
2009-08-07 04:23:01 +04:00
2009-08-14 21:27:00 +04:00
libgudev_includedir = $( includedir) /gudev-1.0/gudev
libgudev_include_HEADERS = \
extras/gudev/gudev.h \
extras/gudev/gudevenums.h \
extras/gudev/gudevenumtypes.h \
extras/gudev/gudevtypes.h \
extras/gudev/gudevclient.h \
2010-12-14 20:37:40 +03:00
extras/gudev/gudevdevice.h \
extras/gudev/gudevenumerator.h
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
lib_LTLIBRARIES += extras/gudev/libgudev-1.0.la
pkgconfig_DATA += extras/gudev/gudev-1.0.pc
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
extras_gudev_libgudev_1_0_la_SOURCES = \
extras/gudev/gudevenums.h \
extras/gudev/gudevenumtypes.h \
extras/gudev/gudevenumtypes.h\
extras/gudev/gudevtypes.h \
extras/gudev/gudevclient.h \
extras/gudev/gudevclient.c \
extras/gudev/gudevdevice.h \
extras/gudev/gudevdevice.c \
2010-12-14 20:37:40 +03:00
extras/gudev/gudevenumerator.h \
extras/gudev/gudevenumerator.c \
2009-08-14 21:27:00 +04:00
extras/gudev/gudevprivate.h
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
dist_extras_gudev_libgudev_1_0_la_SOURCES = \
extras/gudev/gudevmarshal.h \
extras/gudev/gudevmarshal.c \
extras/gudev/gudevenumtypes.h \
extras/gudev/gudevenumtypes.c
2011-04-29 16:27:11 +04:00
BUILT_SOURCES += $( dist_extras_gudev_libgudev_1_0_la_SOURCES)
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
extras_gudev_libgudev_1_0_la_CPPFLAGS = \
$( AM_CPPFLAGS) \
-I$( top_builddir) /extras \
-I$( top_srcdir) /extras \
-I$( top_builddir) /extras/gudev \
-I$( top_srcdir) /extras/gudev \
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
-D_GUDEV_COMPILATION \
-DG_LOG_DOMAIN= \" GUdev\"
2011-05-18 20:29:24 +04:00
extras_gudev_libgudev_1_0_la_CFLAGS = \
-fvisibility= default \
$( GLIB_CFLAGS)
2009-08-14 21:27:00 +04:00
extras_gudev_libgudev_1_0_la_LIBADD = libudev/libudev.la $( GLIB_LIBS)
extras_gudev_libgudev_1_0_la_LDFLAGS = \
-version-info $( LIBGUDEV_CURRENT) :$( LIBGUDEV_REVISION) :$( LIBGUDEV_AGE) \
-export-dynamic -no-undefined \
-export-symbols-regex '^g_udev_.*'
2009-08-07 04:01:29 +04:00
EXTRA_DIST += \
2010-04-27 14:25:59 +04:00
extras/gudev/COPYING \
2009-08-14 21:27:00 +04:00
extras/gudev/gudevmarshal.list \
extras/gudev/gudevenumtypes.h.template \
2010-06-13 12:08:22 +04:00
extras/gudev/gudevenumtypes.c.template
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
extras/gudev/gudevmarshal.h : extras /gudev /gudevmarshal .list
$( AM_V_GEN) glib-genmarshal $< --prefix= g_udev_marshal --header > $@
2009-08-07 05:07:51 +04:00
2009-08-14 21:27:00 +04:00
extras/gudev/gudevmarshal.c : extras /gudev /gudevmarshal .list
$( AM_V_GEN) echo "#include \"gudevmarshal.h\"" > $@ && \
glib-genmarshal $< --prefix= g_udev_marshal --body >> $@
2009-08-07 05:07:51 +04:00
2009-08-14 21:27:00 +04:00
extras/gudev/gudevenumtypes.h : extras /gudev /gudevenumtypes .h .template extras /gudev /gudevenums .h
$( AM_V_GEN) glib-mkenums --template $^ > \
$@ .tmp && mv $@ .tmp $@
2009-08-07 05:07:51 +04:00
2009-08-14 21:27:00 +04:00
extras/gudev/gudevenumtypes.c : extras /gudev /gudevenumtypes .c .template extras /gudev /gudevenums .h
$( AM_V_GEN) glib-mkenums --template $^ > \
$@ .tmp && mv $@ .tmp $@
2009-08-07 05:07:51 +04:00
2011-05-10 15:40:39 +04:00
i f E N A B L E _ I N T R O S P E C T I O N
2011-05-18 20:29:24 +04:00
extras/gudev/GUdev-1.0.gir : extras /gudev /libgudev -1.0.la $( G_IR_SCANNER )
$( AM_V_GEN) $( G_IR_SCANNER) -v \
--warn-all \
2009-08-14 21:27:00 +04:00
--namespace GUdev \
--nsversion= 1.0 \
--include= GObject-2.0 \
--library= gudev-1.0 \
2011-05-18 20:29:24 +04:00
--library-path= $( top_builddir) /libudev \
--library-path= $( top_builddir) /extras/gudev \
2009-08-14 21:27:00 +04:00
--output $@ \
--pkg= glib-2.0 \
--pkg= gobject-2.0 \
2009-12-03 16:36:36 +03:00
-I$( top_srcdir) /extras \
2011-05-18 20:29:24 +04:00
-I$( top_builddir) /extras \
2009-08-14 21:27:00 +04:00
-D_GUDEV_COMPILATION \
2009-11-08 20:25:55 +03:00
-D_GUDEV_WORK_AROUND_DEV_T_BUG \
2009-08-14 21:27:00 +04:00
$( top_srcdir) /extras/gudev/gudev.h \
$( top_srcdir) /extras/gudev/gudevtypes.h \
$( top_srcdir) /extras/gudev/gudevenums.h \
2009-12-03 16:36:36 +03:00
$( or $( wildcard $( top_builddir) /extras/gudev/gudevenumtypes.h) ,$( top_srcdir) /extras/gudev/gudevenumtypes.h) \
2009-08-14 21:27:00 +04:00
$( top_srcdir) /extras/gudev/gudevclient.h \
$( top_srcdir) /extras/gudev/gudevdevice.h \
2010-12-14 20:37:40 +03:00
$( top_srcdir) /extras/gudev/gudevenumerator.h \
2009-08-14 21:27:00 +04:00
$( top_srcdir) /extras/gudev/gudevclient.c \
2010-12-14 20:37:40 +03:00
$( top_srcdir) /extras/gudev/gudevdevice.c \
$( top_srcdir) /extras/gudev/gudevenumerator.c
2009-08-14 21:27:00 +04:00
extras/gudev/GUdev-1.0.typelib : extras /gudev /GUdev -1.0.gir $( G_IR_COMPILER )
$( AM_V_GEN) g-ir-compiler $< -o $@
girdir = $( GIRDIR)
gir_DATA = extras/gudev/GUdev-1.0.gir
typelibsdir = $( GIRTYPELIBDIR)
typelibs_DATA = extras/gudev/GUdev-1.0.typelib
CLEANFILES += $( gir_DATA) $( typelibs_DATA)
2011-05-10 15:40:39 +04:00
e n d i f # ENABLE_INTROSPECTION
2009-08-07 05:07:51 +04:00
2010-10-11 20:01:04 +04:00
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
libgudev-install-move-hook :
if test " $( libdir) " != " $( rootlib_execdir) " ; then \
mkdir -p $( DESTDIR) $( rootlib_execdir) && \
so_img_name = $$ ( readlink $( DESTDIR) $( libdir) /libgudev-1.0.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) /libgudev-1.0.so && \
mv $( DESTDIR) $( libdir) /libgudev-1.0.so.* $( DESTDIR) $( rootlib_execdir) ; \
fi
libgudev-uninstall-move-hook :
rm -f $( DESTDIR) $( rootlib_execdir) /libgudev-1.0.so*
INSTALL_EXEC_HOOKS += libgudev-install-move-hook
UNINSTALL_EXEC_HOOKS += libgudev-uninstall-move-hook
2011-04-29 16:27:11 +04:00
e n d i f
2010-10-11 20:01:04 +04:00
2011-04-29 16:27:11 +04:00
i f E N A B L E _ K E Y M A P
2009-08-14 21:27:00 +04:00
# ------------------------------------------------------------------------------
# keymap - map custom hardware's multimedia keys
# ------------------------------------------------------------------------------
extras_keymap_keymap_SOURCES = extras/keymap/keymap.c
extras_keymap_keymap_CPPFLAGS = $( AM_CPPFLAGS) -I extras/keymap
nodist_extras_keymap_keymap_SOURCES = \
extras/keymap/keys-from-name.h \
extras/keymap/keys-to-name.h
BUILT_SOURCES += $( nodist_extras_keymap_keymap_SOURCES)
EXTRA_DIST += extras/keymap/check-keymaps.sh
dist_udevrules_DATA += extras/keymap/95-keymap.rules
2009-12-14 01:54:05 +03:00
dist_udevrules_DATA += extras/keymap/95-keyboard-force-release.rules
2009-08-14 21:27:00 +04:00
libexec_PROGRAMS += extras/keymap/keymap
dist_libexec_SCRIPTS += extras/keymap/findkeyboards
2009-12-14 01:54:05 +03:00
dist_libexec_SCRIPTS += extras/keymap/keyboard-force-release.sh
2009-08-14 21:27:00 +04:00
dist_doc_DATA = extras/keymap/README.keymap.txt
2009-08-07 04:58:23 +04:00
CLEANFILES += \
extras/keymap/keys.txt \
2009-08-07 05:18:44 +04:00
extras/keymap/keys-from-name.gperf
2009-08-07 04:58:23 +04:00
udevkeymapdir = $( libexecdir) /keymaps
dist_udevkeymap_DATA = \
extras/keymap/keymaps/acer \
2009-10-08 23:45:09 +04:00
extras/keymap/keymaps/acer-aspire_5720 \
2011-02-09 19:10:32 +03:00
extras/keymap/keymaps/acer-aspire_8930 \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/acer-aspire_5920g \
2009-08-24 10:36:30 +04:00
extras/keymap/keymaps/acer-aspire_6920 \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/acer-travelmate_c300 \
extras/keymap/keymaps/asus \
extras/keymap/keymaps/compaq-e_evo \
extras/keymap/keymaps/dell \
2011-04-05 20:43:00 +04:00
extras/keymap/keymaps/dell-latitude-xt2 \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/everex-xt5000 \
extras/keymap/keymaps/fujitsu-amilo_pa_2548 \
extras/keymap/keymaps/fujitsu-amilo_pro_edition_v3505 \
extras/keymap/keymaps/fujitsu-amilo_pro_v3205 \
extras/keymap/keymaps/fujitsu-amilo_si_1520 \
extras/keymap/keymaps/fujitsu-esprimo_mobile_v5 \
extras/keymap/keymaps/fujitsu-esprimo_mobile_v6 \
extras/keymap/keymaps/hewlett-packard \
extras/keymap/keymaps/hewlett-packard-2510p_2530p \
extras/keymap/keymaps/hewlett-packard-compaq_elitebook \
extras/keymap/keymaps/hewlett-packard-pavilion \
extras/keymap/keymaps/hewlett-packard-presario-2100 \
extras/keymap/keymaps/hewlett-packard-tablet \
extras/keymap/keymaps/hewlett-packard-tx2 \
2010-04-01 22:22:32 +04:00
extras/keymap/keymaps/ibm-thinkpad-usb-keyboard-trackpoint \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/inventec-symphony_6.0_7.0 \
extras/keymap/keymaps/lenovo-3000 \
2010-08-12 20:04:55 +04:00
extras/keymap/keymaps/lenovo-ideapad \
2010-01-03 13:42:12 +03:00
extras/keymap/keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/lenovo-thinkpad_x6_tablet \
extras/keymap/keymaps/lenovo-thinkpad_x200_tablet \
2010-02-12 21:25:47 +03:00
extras/keymap/keymaps/lg-x110 \
2009-10-08 23:43:38 +04:00
extras/keymap/keymaps/logitech-wave \
2009-10-15 02:13:17 +04:00
extras/keymap/keymaps/logitech-wave-cordless \
2010-07-05 11:35:36 +04:00
extras/keymap/keymaps/logitech-wave-pro-cordless \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/maxdata-pro_7000 \
extras/keymap/keymaps/medion-fid2060 \
extras/keymap/keymaps/medionnb-a555 \
extras/keymap/keymaps/micro-star \
extras/keymap/keymaps/module-asus-w3j \
extras/keymap/keymaps/module-ibm \
extras/keymap/keymaps/module-lenovo \
extras/keymap/keymaps/module-sony \
extras/keymap/keymaps/module-sony-old \
2010-10-26 06:01:03 +04:00
extras/keymap/keymaps/module-sony-vgn \
2009-12-24 15:43:46 +03:00
extras/keymap/keymaps/olpc-xo \
2010-08-22 13:00:34 +04:00
extras/keymap/keymaps/onkyo \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/oqo-model2 \
extras/keymap/keymaps/samsung-other \
extras/keymap/keymaps/samsung-sq1us \
extras/keymap/keymaps/samsung-sx20s \
extras/keymap/keymaps/toshiba-satellite_a100 \
extras/keymap/keymaps/toshiba-satellite_a110 \
2010-02-15 15:15:25 +03:00
extras/keymap/keymaps/toshiba-satellite_m30x \
2009-08-07 04:58:23 +04:00
extras/keymap/keymaps/zepto-znote
2009-08-07 04:01:29 +04:00
2009-12-14 01:54:05 +03:00
udevkeymapforcereldir = $( libexecdir) /keymaps/force-release
dist_udevkeymapforcerel_DATA = \
2010-12-08 18:21:02 +03:00
extras/keymap/force-release-maps/dell-touchpad \
2010-11-01 19:29:09 +03:00
extras/keymap/force-release-maps/hp-other \
2010-02-13 03:08:08 +03:00
extras/keymap/force-release-maps/samsung-other \
2010-04-19 10:48:34 +04:00
extras/keymap/force-release-maps/common-volume-keys
2009-12-14 01:54:05 +03:00
2010-01-25 10:22:47 +03:00
extras/keymap/keys.txt : $( INCLUDE_PREFIX ) /linux /input .h
2010-05-25 17:08:01 +04:00
$( AM_V_at) mkdir -p extras/keymap
2009-10-30 11:38:21 +03:00
$( AM_V_GEN) $( AWK) '/^#define.*KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' < $< | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
extras/keymap/keys-from-name.gperf : extras /keymap /keys .txt
$( AM_V_GEN) $( AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
2009-08-07 05:16:32 +04:00
2009-08-14 21:27:00 +04:00
extras/keymap/keys-from-name.h : extras /keymap /keys -from -name .gperf Makefile
$( AM_V_GEN) $( GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
2009-08-07 05:16:32 +04:00
2009-08-14 21:27:00 +04:00
extras/keymap/keys-to-name.h : extras /keymap /keys .txt Makefile
$( AM_V_GEN) $( AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2009-08-07 05:16:32 +04:00
2009-08-14 21:27:00 +04:00
keymaps-distcheck-hook : extras /keymap /keys .txt
$( top_srcdir) /extras/keymap/check-keymaps.sh $( top_srcdir) $^
2010-09-03 15:30:57 +04:00
DISTCHECK_HOOKS += keymaps-distcheck-hook
2011-04-29 16:27:11 +04:00
e n d i f
i f E N A B L E _ F L O P P Y
# ------------------------------------------------------------------------------
# create_floppy_devices - historical floppy kernel device nodes (/dev/fd0h1440, ...)
# ------------------------------------------------------------------------------
extras_floppy_create_floppy_devices_SOURCES = extras/floppy/create_floppy_devices.c
extras_floppy_create_floppy_devices_LDADD = libudev/libudev-private.la
libexec_PROGRAMS += extras/floppy/create_floppy_devices
dist_udevrules_DATA += extras/floppy/60-floppy.rules
e n d i f
i f E N A B L E _ E D D
# ------------------------------------------------------------------------------
# edd_id - create /dev/disk/by-id/edd-* links for BIOS EDD data
# ------------------------------------------------------------------------------
extras_edd_id_edd_id_SOURCES = extras/edd_id/edd_id.c
extras_edd_id_edd_id_LDADD = libudev/libudev-private.la
libexec_PROGRAMS += extras/edd_id/edd_id
dist_udevrules_DATA += extras/edd_id/61-persistent-storage-edd.rules
e n d i f
i f E N A B L E _ A C T I O N _ M O D E S W I T C H
# ------------------------------------------------------------------------------
# mobile-action-modeswitch - switch Mobile Action cables into serial mode
# ------------------------------------------------------------------------------
extras_mobile_action_modeswitch_mobile_action_modeswitch_SOURCES = \
extras/mobile-action-modeswitch/mobile-action-modeswitch.c \
extras/mobile-action-modeswitch/utils.c \
extras/mobile-action-modeswitch/utils.h \
extras/mobile-action-modeswitch/ma8280p_us.c \
extras/mobile-action-modeswitch/ma8280p_us.h
extras_mobile_action_modeswitch_mobile_action_modeswitch_CPPFLAGS = $( AM_CPPFLAGS) $( LIBUSB_CFLAGS)
extras_mobile_action_modeswitch_mobile_action_modeswitch_LDADD = libudev/libudev-private.la $( LIBUSB_LIBS)
dist_udevrules_DATA += \
extras/mobile-action-modeswitch/61-mobile-action.rules
libexec_PROGRAMS += extras/mobile-action-modeswitch/mobile-action-modeswitch
e n d i f
2009-08-07 13:22:49 +04:00
2009-08-07 04:01:29 +04:00
# ------------------------------------------------------------------------------
2009-08-14 21:27:00 +04:00
# install, uninstall, clean hooks
2009-08-07 04:01:29 +04:00
# ------------------------------------------------------------------------------
2009-08-14 21:27:00 +04:00
clean-local :
rm -rf udev-test-install
2009-08-07 04:38:02 +04:00
2009-08-14 21:27:00 +04:00
distclean-local :
rm -rf autom4te.cache
2009-08-07 04:38:02 +04:00
2009-08-14 21:27:00 +04:00
CLEANFILES += \
udev-$( VERSION) .tar.gz \
udev-$( VERSION) .tar.bz2 \
$( BUILT_SOURCES)
2009-08-07 22:05:55 +04:00
2009-08-14 21:27:00 +04:00
EXTRA_DIST += $( TESTS)
2010-09-21 14:45:52 +04:00
EXTRA_DIST += test/rule-syntax-check.py
2009-08-07 04:01:29 +04:00
2009-08-14 21:27:00 +04:00
install-exec-hook : $( INSTALL_EXEC_HOOKS )
2009-08-07 04:01:29 +04:00
2010-09-03 15:30:57 +04:00
install-data-hook : $( INSTALL_DATA_HOOKS )
2009-08-14 21:27:00 +04:00
uninstall-hook : $( UNINSTALL_EXEC_HOOKS )
2009-08-07 04:58:23 +04:00
2009-08-14 21:27:00 +04:00
distcheck-hook : $( DISTCHECK_HOOKS )
2009-08-07 22:05:55 +04:00
2009-08-07 04:58:23 +04:00
# ------------------------------------------------------------------------------
2009-08-14 21:27:00 +04:00
# custom release helpers
2009-08-07 04:58:23 +04:00
# ------------------------------------------------------------------------------
2009-08-14 21:27:00 +04:00
PREVIOUS_VERSION = ` expr $( VERSION) - 1`
changelog :
@ head -1 ChangeLog | grep -q " to v $( PREVIOUS_VERSION) "
@ mv ChangeLog ChangeLog.tmp
@ echo " Summary of changes from v $( PREVIOUS_VERSION) to v $( VERSION) " >> ChangeLog
@ echo "============================================" >> ChangeLog
@ echo >> ChangeLog
@ git log --pretty= short $( PREVIOUS_VERSION) ..HEAD | git shortlog >> ChangeLog
@ echo >> ChangeLog
@ cat ChangeLog
@ cat ChangeLog.tmp >> ChangeLog
@ rm ChangeLog.tmp
2009-08-07 04:58:23 +04:00
2009-08-14 21:27:00 +04:00
test-install :
rm -rf $( PWD) /udev-test-install/
make DESTDIR = $( PWD) /udev-test-install install
tree $( PWD) /udev-test-install/
2009-08-07 05:16:32 +04:00
2009-08-14 21:27:00 +04:00
git-release :
head -1 ChangeLog | grep -q " to v $( VERSION) "
head -1 NEWS | grep -q " udev $( VERSION) "
git commit -a -m " release $( VERSION) "
cat .git/refs/heads/master > .git/refs/tags/$( VERSION)
git gc
git prune
2009-08-07 05:16:32 +04:00
2009-08-14 21:27:00 +04:00
doc-sync :
2010-12-26 18:01:13 +03:00
rsync -av udev/*.html master.kernel.org:/pub/linux/utils/kernel/hotplug/udev/
2009-08-14 21:27:00 +04:00
rsync -av --delete libudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/libudev/
rsync -av --delete extras/gudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/gudev/