summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2008-05-08 22:29:38 -0400
committerDavid Zeuthen <davidz@redhat.com>2008-05-08 22:29:38 -0400
commit37f9df9b0568f9834452c949336783bf34e02ab9 (patch)
tree567a010da3aa10870c7f52f1c311a5e36bc9cc0f /tools/Makefile.am
initial commit
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am49
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
new file mode 100644
index 0000000..237c46b
--- /dev/null
+++ b/tools/Makefile.am
@@ -0,0 +1,49 @@
+## Process this file with automake to produce Makefile.in
+
+INCLUDES = \
+ -I$(top_builddir)/src -I$(top_srcdir)/src \
+ -DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
+ -DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
+ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+ -DPACKAGE_BIN_DIR=\""$(bindir)"\" \
+ -DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
+ -DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
+ -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
+ -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
+ $(DBUS_GLIB_CFLAGS) \
+ $(POLKIT_DBUS_CFLAGS) \
+ $(GLIB_CFLAGS)
+
+BUILT_SOURCES = \
+ devkit-power-daemon-glue.h \
+ devkit-power-marshal.h devkit-power-marshal.c
+
+devkit-power-marshal.h: $(top_srcdir)/src/devkit-power-marshal.list
+ glib-genmarshal $< --prefix=devkit_power_marshal --header > $@
+
+devkit-power-marshal.c: $(top_srcdir)/src/devkit-power-marshal.list
+ echo "#include \"devkit-power-marshal.h\"" > $@ && glib-genmarshal $< --prefix=devkit_power_marshal --body >> $@
+
+devkit-power-daemon-glue.h: $(top_srcdir)/src/org.freedesktop.DeviceKit.Power.xml Makefile.am
+ dbus-binding-tool --prefix=devkit_power_daemon --mode=glib-client --output=devkit-power-daemon-glue.h $(top_srcdir)/src/org.freedesktop.DeviceKit.Power.xml
+
+bin_PROGRAMS = devkit-power
+
+devkit_power_SOURCES = \
+ devkit-power.c \
+ $(BUILT_SOURCES)
+
+
+devkit_power_CPPFLAGS = \
+ -DG_LOG_DOMAIN=\"devkit-power\" \
+ $(DISABLE_DEPRECATED) \
+ $(AM_CPPFLAGS)
+
+devkit_power_LDADD = \
+ $(DBUS_GLIB_LIBS) \
+ $(POLKIT_DBUS_LIBS)
+
+CLEANFILES = $(BUILT_SOURCES)
+
+clean-local :
+ rm -f *~ $(service_DATA) $(dbusconf_DATA)