summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: a82123e067513d1d6cf8501b39f7c14fb5d7cfb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Process this file with automake to produce Makefile.in

INCLUDES = \
	-DUP_COMPILATION					\
	-I$(top_srcdir)						\
	-I$(top_srcdir)/devkit-power-gobject			\
	$(DBUS_GLIB_CFLAGS)					\
	$(POLKIT_DBUS_CFLAGS)					\
	$(GLIB_CFLAGS)

DEVKIT_POWER_LIBS = $(top_builddir)/devkit-power-gobject/libdevkit-power-gobject.la

bin_PROGRAMS = upower

upower_SOURCES = 					\
	egg-debug.c					\
	egg-debug.h					\
	up-tool.c					\
	$(BUILT_SOURCES)

upower_CPPFLAGS = 					\
	$(AM_CPPFLAGS)

upower_LDADD = 						\
	$(DBUS_GLIB_LIBS)				\
	$(DEVKIT_POWER_LIBS)				\
	$(POLKIT_DBUS_LIBS)

install-exec-hook:
	cd $(DESTDIR)$(bindir) && $(LN_S) -f upower devkit-power

CLEANFILES = $(BUILT_SOURCES)

clean-local :
	rm -f *~ $(service_DATA) $(dbusconf_DATA)