element.c device.c network.c security.c resolver.c \
storage.c manager.c agent.c rtnl.c dbus.c
-connmand_LDADD = @GDBUS_LIBS@ @GLIB_LIBS@ -ldl
+if UDEV
+connmand_SOURCES += udev.c
+endif
+
+connmand_LDADD = @GDBUS_LIBS@ @GLIB_LIBS@ @UDEV_LIBS@ -ldl
connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=connman.ver
plugindir = $(libdir)/connman/plugins
endif
-AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
- -DSTATEDIR=\""$(statedir)"\" \
- -DSTORAGEDIR=\""$(storagedir)\"" \
- -DPLUGINDIR=\""$(plugindir)"\"
+AM_CFLAGS = @UDEV_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
+ -DSTATEDIR=\""$(statedir)"\" \
+ -DSTORAGEDIR=\""$(storagedir)\"" \
+ -DPLUGINDIR=\""$(plugindir)"\"
INCLUDES = -I$(top_builddir)/include
--- /dev/null
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007-2008 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
+#include <libudev.h>
+
+#include "connman.h"