summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am3
-rw-r--r--tools/Makefile.am8
-rw-r--r--tools/wifi-scan.c29
4 files changed, 40 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index bdea2a85..6aa6a4e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@ scripts/connman
scripts/udhcpc-script
scripts/dhclient-script
client/cm
+tools/wifi-scan
doc/*.bak
doc/*.stamp
doc/connman.*
diff --git a/Makefile.am b/Makefile.am
index a949a551..b4c0917d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,7 +18,8 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
--enable-novatel \
--enable-huawei \
--enable-hso \
- --enable-client
+ --enable-client \
+ --enable-tools
DISTCLEANFILES = $(pkgconfig_DATA)
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 02742923..af219aca 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,2 +1,10 @@
+if TOOLS
+noinst_PROGRAMS = wifi-scan
+
+wifi_scan_LDADD = @GLIB_LIBS@ @NETLINK_LIBS@
+endif
+
+AM_CFLAGS = @NETLINK_CFLAGS@ @GLIB_CFLAGS@
+
MAINTAINERCLEANFILES = Makefile.in
diff --git a/tools/wifi-scan.c b/tools/wifi-scan.c
new file mode 100644
index 00000000..6f110c17
--- /dev/null
+++ b/tools/wifi-scan.c
@@ -0,0 +1,29 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007-2009 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
+
+int main(int argc, char *argv[])
+{
+ return 0;
+}