[enable fake device support]), [enable_fake=${enableval}])
AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes")
-AC_OUTPUT(Makefile gdbus/Makefile include/Makefile src/Makefile doc/Makefile
- test/Makefile plugins/Makefile client/Makefile scripts/Makefile
- scripts/connman src/connman.service doc/version.xml connman.pc)
+AC_OUTPUT(Makefile gdbus/Makefile include/Makefile include/version.h
+ src/Makefile src/connman.service scripts/connman
+ scripts/Makefile plugins/Makefile client/Makefile
+ test/Makefile doc/Makefile doc/version.xml connman.pc)
include_HEADERS = types.h log.h plugin.h security.h resolver.h \
storage.h device.h network.h
+nodist_include_HEADERS = version.h
+
noinst_HEADERS = driver.h element.h property.h ipv4.h rtnl.h dbus.h
MAINTAINERCLEANFILES = Makefile.in
all-local:
- @if [ ! -e connman ] ; then $(LN_S) $(top_srcdir)/include connman ; fi
+ @if [ ! -e connman ]; then \
+ mkdir connman; \
+ list='$(include_HEADERS) $(noinst_HEADERS)'; for i in $$list; \
+ do cp $(top_srcdir)/include/$$i connman/; done; \
+ list='$(nodist_include_HEADERS)'; for i in $$list; \
+ do cp $(top_builddir)/include/$$i connman/; done; \
+ fi
clean-local:
- @rm -f connman
+ @rm -rf connman
#ifndef __CONNMAN_PLUGIN_H
#define __CONNMAN_PLUGIN_H
+#include <connman/version.h>
+
#ifdef __cplusplus
extern "C" {
#endif
--- /dev/null
+/*
+ *
+ * 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
+ *
+ */
+
+#ifndef __CONNMAN_VERSION_H
+#define __CONNMAN_VERSION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CONNMAN_VERSION @VERSION@
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CONNMAN_VERSION_H */