include $(top_srcdir)/Makefile.am.inc
SUBDIRS = \
+ libudev \
udev \
rules \
extras
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
+ -I$(top_builddir)/libudev \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
- -DUDEV_PREFIX=\""$(udev_prefix)"\" \
- -D_LIBUDEV_COMPILATION
+ -DUDEV_PREFIX=\""$(udev_prefix)"\"
AM_CFLAGS =
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([
Makefile
+ libudev/Makefile
+ libudev/libudev.pc
udev/Makefile
- udev/lib/Makefile
- udev/lib/libudev.pc
rules/Makefile
extras/Makefile
extras/ata_id/Makefile
ata_id_SOURCES = \
ata_id.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c
+ ../../udev/udev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c
dist_man_MANS = \
ata_id.8
cdrom_id_SOURCES = \
cdrom_id.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c
dist_man_MANS = \
cdrom_id.8
collect_SOURCES = \
collect.c \
- ../../udev/lib/libudev-private.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-util.c \
- ../../udev/lib/libudev-list.c
+ ../../libudev/libudev-private.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-util.c \
+ ../../libudev/libudev-list.c
#include <sys/types.h>
#include <sys/stat.h>
-#include "../../udev/lib/libudev.h"
-#include "../../udev/lib/libudev-private.h"
+#include "libudev.h"
+#include "libudev-private.h"
#define TMPFILE UDEV_PREFIX "/dev/.udev/collect"
#define BUFSIZE 16
edd_id_SOURCES = \
edd_id.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c
dist_man_MANS = \
edd_id.8
create_floppy_devices_SOURCES = \
create_floppy_devices.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c \
- ../../udev/lib/libudev-device.c \
- ../../udev/lib/libudev-enumerate.c \
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c \
+ ../../libudev/libudev-device.c \
+ ../../libudev/libudev-enumerate.c \
../../udev/udev-util.c
if USE_SELINUX
fstab_import_SOURCES = \
fstab_import.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c
path_id_SOURCES = \
path_id.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-device.c \
- ../../udev/lib/libudev-enumerate.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-device.c \
+ ../../libudev/libudev-enumerate.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c
dist_man_MANS = \
path_id.8
#include <dirent.h>
#include <getopt.h>
-#include <../../udev/lib/libudev.h>
-#include <../../udev/udev.h>
+#include "libudev.h"
+#include "../../udev/udev.h"
int debug;
if (udev == NULL)
goto exit;
- logging_init("usb_id");
+ logging_init("path_id");
udev_set_log_fn(udev, log_fn);
while (1) {
scsi.h \
scsi_id.h \
bsg.h \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c
dist_sysconf_DATA = \
scsi_id.config
usb_id_SOURCES = \
usb_id.c \
- ../../udev/lib/libudev.h \
- ../../udev/lib/libudev.c \
- ../../udev/lib/libudev-list.c \
- ../../udev/lib/libudev-util.c \
- ../../udev/lib/libudev-device.c \
- ../../udev/lib/libudev-enumerate.c
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c \
+ ../../libudev/libudev-device.c \
+ ../../libudev/libudev-enumerate.c
dist_man_MANS = \
usb_id.8
libudev_la_LDFLAGS = \
-version-info $(LIBUDEV_LT_CURRENT):$(LIBUDEV_LT_REVISION):$(LIBUDEV_LT_AGE) \
- -export-symbols $(top_srcdir)/udev/lib/exported_symbols
+ -export-symbols $(top_srcdir)/libudev/exported_symbols
pkgconfigdir = $(prefix)/$(libdir_name)/pkgconfig
pkgconfig_DATA = libudev.pc
#include <sys/types.h>
#include <sys/stat.h>
-/* this will stay as long as the DeviceKit integration of udev is work in progress */
-#if !defined _LIBUDEV_COMPILATION && !defined LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
-#error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to use this experimental library version"
-#endif
-
/*
* udev - library context
*
include $(top_srcdir)/Makefile.am.inc
-SUBDIRS = \
- lib
-
sbin_PROGRAMS = \
udevd \
udevadm
udev-node.c \
udev-rules.c \
udev-util.c \
- lib/libudev.h \
- lib/libudev-private.h \
- lib/libudev.c \
- lib/libudev-list.c \
- lib/libudev-util.c \
- lib/libudev-device.c \
- lib/libudev-device-db-write.c \
- lib/libudev-monitor.c \
- lib/libudev-enumerate.c \
- lib/libudev-queue.c \
- lib/libudev-queue-export.c \
- lib/libudev-ctrl.c
+ ../libudev/libudev.h \
+ ../libudev/libudev-private.h \
+ ../libudev/libudev.c \
+ ../libudev/libudev-list.c \
+ ../libudev/libudev-util.c \
+ ../libudev/libudev-device.c \
+ ../libudev/libudev-device-db-write.c \
+ ../libudev/libudev-monitor.c \
+ ../libudev/libudev-enumerate.c \
+ ../libudev/libudev-queue.c \
+ ../libudev/libudev-queue-export.c \
+ ../libudev/libudev-ctrl.c
if USE_SELINUX
common_files += \
#include <sys/types.h>
#include <sys/param.h>
-#include "lib/libudev.h"
-#include "lib/libudev-private.h"
+#include "libudev.h"
+#include "libudev-private.h"
#define DEFAULT_FAKE_PARTITIONS_COUNT 15
#define UDEV_EVENT_TIMEOUT 180