summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-04 17:31:52 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-04 17:31:52 +0100
commit9dca67f115ff8a71c1f633356918a9e056d24cac (patch)
treee5891f9501a6f7757c0db1c4fd1c5601badf9396 /tools/Makefile.am
parent53d3e2bf255fba4f73cab0120e487d16214242af (diff)
downloadupower-9dca67f115ff8a71c1f633356918a9e056d24cac.tar.gz
add a new ninary to get the battery power state
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am19
1 files changed, 16 insertions, 3 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 0f8143f..6dfe157 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -30,13 +30,12 @@ dkp-marshal.c: $(top_srcdir)/src/dkp-marshal.list
dkp-daemon-glue.h: $(top_srcdir)/src/org.freedesktop.DeviceKit.Power.xml Makefile.am
dbus-binding-tool --prefix=devkit_power_daemon --mode=glib-client --output=dkp-daemon-glue.h $(top_srcdir)/src/org.freedesktop.DeviceKit.Power.xml
-bin_PROGRAMS = devkit-power
+bin_PROGRAMS = devkit-power devkit-battery-power
devkit_power_SOURCES = \
- dkp-tool.c \
+ dkp-tool.c \
$(BUILT_SOURCES)
-
devkit_power_CPPFLAGS = \
-DG_LOG_DOMAIN=\"devkit-power\" \
$(DISABLE_DEPRECATED) \
@@ -47,6 +46,20 @@ devkit_power_LDADD = \
$(DEVKIT_POWER_LIBS) \
$(POLKIT_DBUS_LIBS)
+devkit_battery_power_SOURCES = \
+ dkp-battery-power.c \
+ $(BUILT_SOURCES)
+
+devkit_battery_power_CPPFLAGS = \
+ -DG_LOG_DOMAIN=\"devkit-power\" \
+ $(DISABLE_DEPRECATED) \
+ $(AM_CPPFLAGS)
+
+devkit_battery_power_LDADD = \
+ $(DBUS_GLIB_LIBS) \
+ $(DEVKIT_POWER_LIBS) \
+ $(POLKIT_DBUS_LIBS)
+
CLEANFILES = $(BUILT_SOURCES)
clean-local :