2009-08-07 07:01:29 +07:00
|
|
|
SUBDIRS = . libudev/docs
|
2008-07-30 06:45:23 +07:00
|
|
|
|
|
|
|
udevconfdir = $(sysconfdir)/udev
|
2009-06-20 00:33:22 +07:00
|
|
|
dist_udevconf_DATA = \
|
2008-07-30 06:45:23 +07:00
|
|
|
udev.conf
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2009-08-07 07:01:29 +07:00
|
|
|
autogen.sh \
|
2009-08-07 08:16:32 +07:00
|
|
|
libudev/exported_symbols \
|
|
|
|
extras/gudev/gudevmarshal.list \
|
|
|
|
extras/gudev/gudevenumtypes.h.template \
|
|
|
|
extras/gudev/gudevenumtypes.c.template
|
2008-07-30 06:45:23 +07:00
|
|
|
|
2008-12-06 10:03:08 +07:00
|
|
|
CLEANFILES = \
|
|
|
|
udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2
|
|
|
|
|
2009-08-07 07:58:23 +07:00
|
|
|
BUILT_SOURCES =
|
|
|
|
|
2009-02-26 20:11:43 +07:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2009-08-06 20:51:47 +07:00
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
|
|
|
|
2009-08-08 00:44:30 +07:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-include $(top_builddir)/config.h \
|
|
|
|
-I$(top_srcdir)/libudev \
|
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)"\" \
|
|
|
|
-DLIBEXECDIR=\""$(libexecdir)"\"
|
|
|
|
|
|
|
|
AM_CFLAGS =
|
|
|
|
|
|
|
|
AM_LDFLAGS = \
|
|
|
|
-Wl,--as-needed
|
|
|
|
|
|
|
|
udevrulesdir = \
|
|
|
|
$(libexecdir)/rules.d
|
|
|
|
|
2009-06-16 22:43:12 +07:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--enable-gtk-doc \
|
|
|
|
--enable-extras
|
2009-06-15 18:22:21 +07:00
|
|
|
|
2008-12-06 10:03:08 +07:00
|
|
|
clean-local:
|
|
|
|
rm -rf udev-test-install
|
2008-08-13 05:01:46 +07:00
|
|
|
|
2008-07-30 06:45:23 +07:00
|
|
|
distclean-local:
|
|
|
|
rm -rf autom4te.cache
|
2008-12-06 10:03:08 +07:00
|
|
|
|
|
|
|
PREVIOUS_VERSION = `expr $(VERSION) - 1`
|
2008-07-30 06:45:23 +07:00
|
|
|
|
2008-07-30 18:38:53 +07:00
|
|
|
changelog:
|
2008-08-13 16:41:25 +07:00
|
|
|
@ head -1 ChangeLog | grep -q "to v$(PREVIOUS_VERSION)"
|
2008-07-30 18:38:53 +07:00
|
|
|
@ mv ChangeLog ChangeLog.tmp
|
2008-08-13 05:01:46 +07:00
|
|
|
@ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
|
2008-07-30 18:38:53 +07:00
|
|
|
@ echo "============================================" >> ChangeLog
|
|
|
|
@ echo >> ChangeLog
|
2008-08-13 05:01:46 +07:00
|
|
|
@ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog
|
2008-07-30 18:38:53 +07:00
|
|
|
@ echo >> ChangeLog
|
|
|
|
@ cat ChangeLog
|
|
|
|
@ cat ChangeLog.tmp >> ChangeLog
|
|
|
|
@ rm ChangeLog.tmp
|
2008-07-30 06:45:23 +07:00
|
|
|
|
|
|
|
test-install:
|
|
|
|
rm -rf $(PWD)/udev-test-install/
|
|
|
|
make DESTDIR=$(PWD)/udev-test-install install
|
|
|
|
tree $(PWD)/udev-test-install/
|
|
|
|
|
2008-08-02 15:51:23 +07: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)
|
2008-09-29 10:18:23 +07:00
|
|
|
git gc
|
|
|
|
git prune
|
2009-06-15 18:22:21 +07:00
|
|
|
|
|
|
|
doc-sync:
|
|
|
|
rsync -av --delete libudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/libudev/
|
2009-06-20 00:33:22 +07:00
|
|
|
rsync -av --delete extras/gudev/docs/html/ master.kernel.org:/pub/linux/utils/kernel/hotplug/gudev/
|
2009-08-07 07:01:29 +07:00
|
|
|
|
2009-08-07 07:52:49 +07:00
|
|
|
INSTALL_EXEC_HOOKS = libudev-install-move-hook
|
|
|
|
UNINSTALL_EXEC_HOOKS = libudev-uninstall-move-hook
|
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
include_HEADERS = libudev/libudev.h
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Libraries
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
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_CURRENT=5
|
|
|
|
LIBUDEV_REVISION=0
|
|
|
|
LIBUDEV_AGE=5
|
|
|
|
libudev_libudev_la_LDFLAGS = \
|
|
|
|
-version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
|
|
|
|
-export-symbols $(top_srcdir)/libudev/exported_symbols
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
libudev_libudev_private_la_LIBADD =
|
|
|
|
|
2009-08-07 08:16:32 +07: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 \
|
|
|
|
extras/gudev/gudevprivate.h
|
|
|
|
|
|
|
|
dist_extras_gudev_libgudev_1_0_la_SOURCES = \
|
|
|
|
extras/gudev/gudevmarshal.h \
|
|
|
|
extras/gudev/gudevmarshal.c \
|
|
|
|
extras/gudev/gudevenumtypes.h \
|
|
|
|
extras/gudev/gudevenumtypes.c
|
|
|
|
|
|
|
|
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_UDEV_API_IS_SUBJECT_TO_CHANGE \
|
|
|
|
-DG_LOG_DOMAIN=\"GUdev\"
|
|
|
|
extras_gudev_libgudev_1_0_la_CFLAGS = $(GLIB_CFLAGS)
|
|
|
|
extras_gudev_libgudev_1_0_la_LIBADD = libudev/libudev.la $(GLIB_LIBS)
|
|
|
|
|
|
|
|
LIBGUDEV_CURRENT=0
|
|
|
|
LIBGUDEV_REVISION=1
|
|
|
|
LIBGUDEV_AGE=0
|
|
|
|
|
|
|
|
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 07:01:29 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Programs
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
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_common_libs = libudev/libudev-private.la
|
|
|
|
|
|
|
|
udev_udevd_SOURCES = \
|
|
|
|
$(udev_common_sources) \
|
|
|
|
udev/udevd.c
|
|
|
|
|
|
|
|
udev_udevd_LDADD = $(udev_common_libs)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
udev_udevadm_LDADD = $(udev_common_libs)
|
|
|
|
|
|
|
|
libexec_PROGRAMS = \
|
|
|
|
extras/ata_id/ata_id \
|
|
|
|
extras/cdrom_id/cdrom_id \
|
|
|
|
extras/collect/collect \
|
|
|
|
extras/edd_id/edd_id \
|
|
|
|
extras/floppy/create_floppy_devices \
|
|
|
|
extras/path_id/path_id \
|
|
|
|
extras/fstab_import/fstab_import \
|
|
|
|
extras/scsi_id/scsi_id \
|
|
|
|
extras/usb_id/usb_id \
|
|
|
|
extras/v4l_id/v4l_id
|
|
|
|
|
|
|
|
dist_libexec_SCRIPTS = \
|
|
|
|
extras/firmware/firmware.sh \
|
|
|
|
extras/rule_generator/write_cd_rules \
|
|
|
|
extras/rule_generator/write_net_rules
|
|
|
|
|
|
|
|
udevhomedir = $(libexecdir)
|
|
|
|
dist_udevhome_DATA = \
|
|
|
|
extras/rule_generator/rule_generator.functions
|
|
|
|
|
|
|
|
extras_ata_id_ata_id_SOURCES = extras/ata_id/ata_id.c
|
|
|
|
extras_ata_id_ata_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_cdrom_id_cdrom_id_SOURCES = extras/cdrom_id/cdrom_id.c
|
|
|
|
extras_cdrom_id_cdrom_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_collect_collect_SOURCES = extras/collect/collect.c
|
|
|
|
extras_collect_collect_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_edd_id_edd_id_SOURCES = extras/edd_id/edd_id.c
|
|
|
|
extras_edd_id_edd_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_floppy_create_floppy_devices_SOURCES = extras/floppy/create_floppy_devices.c
|
|
|
|
extras_floppy_create_floppy_devices_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_path_id_path_id_SOURCES = extras/path_id/path_id.c
|
|
|
|
extras_path_id_path_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_fstab_import_fstab_import_SOURCES = extras/fstab_import/fstab_import.c
|
|
|
|
extras_fstab_import_fstab_import_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_scsi_id_scsi_id_SOURCES =\
|
|
|
|
extras/scsi_id/scsi_id.c \
|
|
|
|
extras/scsi_id/scsi_serial.c \
|
|
|
|
extras/scsi_id/scsi.h \
|
|
|
|
extras/scsi_id/scsi_id.h \
|
|
|
|
extras/scsi_id/bsg.h
|
|
|
|
extras_scsi_id_scsi_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_usb_id_usb_id_SOURCES = extras/usb_id/usb_id.c
|
|
|
|
extras_usb_id_usb_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_v4l_id_v4l_id_SOURCES = extras/v4l_id/v4l_id.c
|
|
|
|
extras_v4l_id_v4l_id_LDADD = libudev/libudev-private.la
|
|
|
|
|
2009-08-07 07:38:02 +07:00
|
|
|
extras_hid2hci_hid2hci_SOURCES = extras/hid2hci/hid2hci.c
|
|
|
|
extras_hid2hci_hid2hci_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS)
|
|
|
|
extras_hid2hci_hid2hci_LDADD = libudev/libudev-private.la $(LIBUSB_LIBS)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
extras_usb_db_pci_db_SOURCES = extras/usb-db/usb-db.c
|
|
|
|
extras_usb_db_pci_db_CPPFLAGS = $(AM_CPPFLAGS) -DPCI_DATABASE=\"$(USB_DATABASE)\" -DBUILD_FOR_PCI
|
|
|
|
extras_usb_db_pci_db_LDADD = libudev/libudev-private.la
|
|
|
|
|
|
|
|
extras_modem_modeswitch_modem_modeswitch_SOURCES =\
|
|
|
|
extras/modem-modeswitch/modem-modeswitch.c \
|
|
|
|
extras/modem-modeswitch/utils.c \
|
|
|
|
extras/modem-modeswitch/utils.h \
|
|
|
|
extras/modem-modeswitch/ma8280p_us.c \
|
|
|
|
extras/modem-modeswitch/ma8280p_us.h \
|
|
|
|
extras/modem-modeswitch/option.c \
|
|
|
|
extras/modem-modeswitch/option.h
|
|
|
|
extras_modem_modeswitch_modem_modeswitch_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS)
|
|
|
|
extras_modem_modeswitch_modem_modeswitch_LDADD = libudev/libudev-private.la $(LIBUSB_LIBS)
|
|
|
|
|
2009-08-07 07:58:23 +07:00
|
|
|
extras_keymap_keymap_SOURCES = extras/keymap/keymap.c
|
2009-08-07 16:21:34 +07:00
|
|
|
extras_keymap_keymap_CPPFLAGS = $(AM_CPPFLAGS) -I extras/keymap
|
2009-08-07 07:58:23 +07:00
|
|
|
nodist_extras_keymap_keymap_SOURCES = \
|
|
|
|
extras/keymap/keys-from-name.h \
|
|
|
|
extras/keymap/keys-to-name.h
|
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Tests
|
|
|
|
# ------------------------------------------------------------------------------
|
2009-08-07 07:23:01 +07:00
|
|
|
|
|
|
|
TESTS = test/udev-test.pl
|
|
|
|
|
2009-08-07 07:01:29 +07: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 = $(udev_common_libs)
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Basic rules
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
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 \
|
|
|
|
extras/rule_generator/75-cd-aliases-generator.rules \
|
|
|
|
extras/rule_generator/75-persistent-net-generator.rules \
|
|
|
|
extras/cdrom_id/60-cdrom_id.rules \
|
|
|
|
extras/edd_id/61-persistent-storage-edd.rules \
|
|
|
|
extras/firmware/50-firmware.rules \
|
|
|
|
extras/fstab_import/79-fstab_import.rules \
|
|
|
|
extras/v4l_id/60-persistent-v4l.rules
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
rules/packages \
|
|
|
|
rules/redhat \
|
|
|
|
rules/suse \
|
|
|
|
rules/gentoo
|
|
|
|
|
2009-08-07 08:07:51 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Pkg-config, docs and man pages
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = \
|
|
|
|
libudev/libudev.pc \
|
|
|
|
udev/udev.pc
|
|
|
|
|
|
|
|
writing_udev_rulesdir = $(docdir)/writing_udev_rules
|
|
|
|
dist_writing_udev_rules_DATA = \
|
|
|
|
docs/writing_udev_rules/index.html
|
|
|
|
|
|
|
|
dist_man_MANS = \
|
|
|
|
udev/udev.7 \
|
|
|
|
udev/udevadm.8 \
|
|
|
|
udev/udevd.8 \
|
|
|
|
extras/scsi_id/scsi_id.8
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
udev/udev.xml \
|
|
|
|
udev/udevadm.xml \
|
|
|
|
udev/udevd.xml
|
|
|
|
|
|
|
|
%.7 %.8 : %.xml
|
|
|
|
$(XSLTPROC) -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Conditionals (SElinux, etc…)
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
if WITH_SELINUX
|
|
|
|
libudev_libudev_private_la_SOURCES += \
|
|
|
|
libudev/libudev-selinux-private.c
|
|
|
|
libudev_libudev_private_la_LIBADD += \
|
|
|
|
$(SELINUX_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_EXTRAS
|
2009-08-07 07:52:49 +07:00
|
|
|
INSTALL_EXEC_HOOKS += udevacl-install-hook
|
|
|
|
|
2009-08-07 08:16:32 +07:00
|
|
|
lib_LTLIBRARIES += extras/gudev/libgudev-1.0.la
|
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
dist_udevrules_DATA += \
|
|
|
|
rules/rules.d/75-net-description.rules \
|
|
|
|
rules/rules.d/75-tty-description.rules \
|
2009-08-07 07:38:02 +07:00
|
|
|
rules/rules.d/78-sound-card.rules \
|
|
|
|
extras/hid2hci/70-hid2hci.rules \
|
|
|
|
extras/modem-modeswitch/61-option-modem-modeswitch.rules \
|
2009-08-07 07:58:23 +07:00
|
|
|
extras/modem-modeswitch/61-mobile-action.rules \
|
|
|
|
extras/keymap/95-keymap.rules
|
2009-08-07 07:38:02 +07:00
|
|
|
|
|
|
|
libexec_PROGRAMS += \
|
|
|
|
extras/hid2hci/hid2hci \
|
|
|
|
extras/udev-acl/udev-acl \
|
|
|
|
extras/usb-db/usb-db \
|
|
|
|
extras/usb-db/pci-db \
|
2009-08-07 07:58:23 +07:00
|
|
|
extras/modem-modeswitch/modem-modeswitch \
|
|
|
|
extras/keymap/keymap
|
|
|
|
|
|
|
|
dist_libexec_SCRIPTS += \
|
|
|
|
extras/keymap/findkeyboards
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
2009-08-07 08:16:32 +07:00
|
|
|
$(nodist_extras_keymap_keymap_SOURCES) \
|
|
|
|
$(dist_extras_gudev_libgudev_1_0_la_SOURCES)
|
2009-08-07 07:58:23 +07:00
|
|
|
|
|
|
|
TESTS += extras/keymap/check-keymaps.sh
|
|
|
|
|
|
|
|
check_DATA = extras/keymap/keys.txt
|
|
|
|
|
|
|
|
CLEANFILES += \
|
|
|
|
extras/keymap/keys.txt \
|
2009-08-07 08:18:44 +07:00
|
|
|
extras/keymap/keys-from-name.gperf
|
2009-08-07 07:58:23 +07:00
|
|
|
|
|
|
|
dist_doc_DATA = extras/keymap/README.keymap.txt
|
|
|
|
|
|
|
|
udevkeymapdir = $(libexecdir)/keymaps
|
|
|
|
dist_udevkeymap_DATA = \
|
|
|
|
extras/keymap/keymaps/acer \
|
|
|
|
extras/keymap/keymaps/acer-aspire_5920g \
|
|
|
|
extras/keymap/keymaps/acer-travelmate_c300 \
|
|
|
|
extras/keymap/keymaps/asus \
|
|
|
|
extras/keymap/keymaps/compaq-e_evo \
|
|
|
|
extras/keymap/keymaps/dell \
|
|
|
|
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 \
|
|
|
|
extras/keymap/keymaps/inventec-symphony_6.0_7.0 \
|
|
|
|
extras/keymap/keymaps/lenovo-3000 \
|
|
|
|
extras/keymap/keymaps/lenovo-thinkpad_x6_tablet \
|
|
|
|
extras/keymap/keymaps/lenovo-thinkpad_x200_tablet \
|
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
extras/keymap/keymaps/zepto-znote
|
2009-08-07 07:01:29 +07:00
|
|
|
|
2009-08-07 08:16:32 +07: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 \
|
|
|
|
extras/gudev/gudevdevice.h
|
|
|
|
|
|
|
|
pkgconfig_DATA += extras/gudev/gudev-1.0.pc
|
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
SUBDIRS += \
|
2009-08-07 08:16:32 +07:00
|
|
|
extras/gudev/docs
|
2009-08-07 07:01:29 +07:00
|
|
|
endif
|
|
|
|
|
2009-08-07 08:16:32 +07:00
|
|
|
if ENABLE_INTROSPECTION
|
|
|
|
girdir = $(GIRDIR)
|
|
|
|
gir_DATA = extras/gudev/GUdev-1.0.gir
|
|
|
|
|
|
|
|
typelibsdir = $(GIRTYPELIBDIR)
|
|
|
|
typelibs_DATA = extras/gudev/GUdev-1.0.typelib
|
|
|
|
|
|
|
|
EXTRA_DIST += GUdev-1.0.gir
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
|
|
|
|
endif # ENABLE_INTROSPECTION
|
|
|
|
|
2009-08-07 08:18:44 +07:00
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
|
|
|
|
2009-08-07 16:22:49 +07:00
|
|
|
EXTRA_DIST += $(TESTS)
|
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Install and uninstall hooks
|
|
|
|
# ------------------------------------------------------------------------------
|
2009-08-07 07:52:49 +07:00
|
|
|
install-exec-hook: $(INSTALL_EXEC_HOOKS)
|
2009-08-07 07:38:02 +07:00
|
|
|
|
2009-08-07 07:52:49 +07:00
|
|
|
uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
|
2009-08-07 07:38:02 +07:00
|
|
|
|
2009-08-07 07:01:29 +07:00
|
|
|
# move lib from $(libdir) to $(rootlib_execdir) and update devel link, if needed
|
2009-08-07 07:38:02 +07:00
|
|
|
libudev-install-move-hook:
|
2009-08-07 07:01:29 +07:00
|
|
|
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 07:38:02 +07:00
|
|
|
libudev-uninstall-move-hook:
|
2009-08-07 07:01:29 +07:00
|
|
|
rm -f $(DESTDIR)$(rootlib_execdir)/libudev.so*
|
|
|
|
|
2009-08-07 07:38:02 +07:00
|
|
|
udevacl-install-hook:
|
|
|
|
mkdir -p $(DESTDIR)$(prefix)/lib/ConsoleKit/run-session.d
|
|
|
|
ln -sf $(libexecdir)/udev-acl $(DESTDIR)$(prefix)/lib/ConsoleKit/run-session.d/udev-acl.ck
|
2009-08-07 07:58:23 +07:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Custom rules
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
extras/keymap/keys.txt: /usr/include/linux/input.h
|
2009-08-07 08:00:23 +07:00
|
|
|
$(AM_V_GEN)$(AWK) '/^#define.*KEY_/ { if ($$2 != "KEY_MAX" && $$2 != "KEY_CNT") { print $$2 } }' < $< > $@
|
2009-08-07 07:58:23 +07:00
|
|
|
|
|
|
|
extras/keymap/keys-from-name.gperf: extras/keymap/keys.txt
|
2009-08-07 08:00:23 +07:00
|
|
|
$(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
|
2009-08-07 07:58:23 +07:00
|
|
|
|
|
|
|
extras/keymap/keys-from-name.h: extras/keymap/keys-from-name.gperf Makefile
|
2009-08-08 00:41:17 +07:00
|
|
|
$(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
|
2009-08-07 07:58:23 +07:00
|
|
|
|
|
|
|
extras/keymap/keys-to-name.h: extras/keymap/keys.txt Makefile
|
2009-08-07 08:00:23 +07:00
|
|
|
$(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
|
2009-08-07 08:16:32 +07:00
|
|
|
|
|
|
|
extras/gudev/gudevmarshal.h: extras/gudev/gudevmarshal.list
|
2009-08-07 08:22:21 +07:00
|
|
|
$(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
|
2009-08-07 08:16:32 +07:00
|
|
|
|
|
|
|
extras/gudev/gudevmarshal.c: extras/gudev/gudevmarshal.list
|
2009-08-07 08:22:21 +07:00
|
|
|
$(AM_V_GEN)echo "#include \"gudevmarshal.h\"" > $@ && \
|
2009-08-07 08:16:32 +07:00
|
|
|
glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
|
|
|
|
|
|
|
|
extras/gudev/gudevenumtypes.h: extras/gudev/gudevenumtypes.h.template extras/gudev/gudevenums.h
|
2009-08-07 08:22:21 +07:00
|
|
|
$(AM_V_GEN)glib-mkenums --template $^ > \
|
2009-08-07 08:21:00 +07:00
|
|
|
$@.tmp && mv $@.tmp $@
|
2009-08-07 08:16:32 +07:00
|
|
|
|
|
|
|
extras/gudev/gudevenumtypes.c: extras/gudev/gudevenumtypes.c.template extras/gudev/gudevenums.h
|
2009-08-07 08:22:21 +07:00
|
|
|
$(AM_V_GEN)glib-mkenums --template $^ > \
|
2009-08-07 08:21:00 +07:00
|
|
|
$@.tmp && mv $@.tmp $@
|
2009-08-07 08:16:32 +07:00
|
|
|
|
|
|
|
extras/gudev/GUdev-1.0.gir: extras/gudev/libgudev-1.0.la $(G_IR_SCANNER) Makefile.am
|
2009-08-07 08:22:21 +07:00
|
|
|
$(AM_V_GEN)PKG_CONFIG_PATH=$(top_builddir)/data:$$PKG_CONFIG_PATH \
|
2009-08-07 08:16:32 +07:00
|
|
|
$(G_IR_SCANNER) -v \
|
|
|
|
--namespace GUdev \
|
|
|
|
--nsversion=1.0 \
|
|
|
|
--include=GObject-2.0 \
|
|
|
|
--library=gudev-1.0 \
|
2009-08-07 16:04:58 +07:00
|
|
|
--library-path=extras/gudev \
|
2009-08-07 08:16:32 +07:00
|
|
|
--output $@ \
|
|
|
|
--pkg=glib-2.0 \
|
|
|
|
--pkg=gobject-2.0 \
|
|
|
|
-I$(top_srcdir)/extras \
|
|
|
|
-D_GUDEV_COMPILATION \
|
|
|
|
-DG_UDEV_API_IS_SUBJECT_TO_CHANGE \
|
|
|
|
$(top_srcdir)/extras/gudev/gudev.h \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevtypes.h \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevenums.h \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevenumtypes.h \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevclient.h \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevdevice.h \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevclient.c \
|
|
|
|
$(top_srcdir)/extras/gudev/gudevdevice.c
|
|
|
|
|
|
|
|
extras/gudev/GUdev-1.0.typelib: extras/gudev/GUdev-1.0.gir $(G_IR_COMPILER)
|
2009-08-07 08:22:21 +07:00
|
|
|
$(AM_V_GEN)g-ir-compiler $< -o $@
|