summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 3764391f26eb6ecfbe312a9a8d33f7ddda528108 (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
36
37
## Process this file with automake to produce Makefile.in

AM_CPPFLAGS = \
	$(PIE_CFLAGS)						\
	-DUP_COMPILATION					\
	-DG_LOG_DOMAIN=\"UPower\"				\
	-I$(top_srcdir)						\
	-I$(top_srcdir)/libupower-glib				\
	$(POLKIT_DBUS_CFLAGS)					\
	$(GLIB_CFLAGS)

UPOWER_LIBS = $(top_builddir)/libupower-glib/libupower-glib.la

bin_PROGRAMS = upower

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

upower_CPPFLAGS = 					\
	$(AM_CPPFLAGS)

upower_LDFLAGS =
	-pthread					\
	$(PIE_LDFLAGS)

upower_LDADD = 						\
	$(GLIB_LIBS)					\
	$(UPOWER_LIBS)					\
	$(POLKIT_DBUS_LIBS)

CLEANFILES = $(BUILT_SOURCES)

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

-include $(top_srcdir)/git.mk