summaryrefslogtreecommitdiff
path: root/src/linux/Makefile.am
blob: c3653461b830cec9bef26ce40dfde03fd5359b65 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
## Process this file with automake to produce Makefile.in

AM_CPPFLAGS = \
	-I$(top_builddir)/src -I$(top_srcdir)/src		\
	-I$(top_builddir)/ -I$(top_srcdir)			\
	-DUP_COMPILATION					\
	-DG_LOG_DOMAIN=\"UPower-Linux\"				\
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\"		\
	-I$(top_srcdir)/libupower-glib				\
	$(USB_CFLAGS)						\
	$(GIO_CFLAGS)						\
	$(GIO_UNIX_CFLAGS)					\
	$(GUDEV_CFLAGS)						\
	$(POLKIT_CFLAGS)					\
	$(GLIB_CFLAGS)						\
	$(IDEVICE_CFLAGS)					\
	$(NULL)

if BACKEND_TYPE_LINUX
noinst_LTLIBRARIES = libupshared.la
endif

if HAVE_IDEVICE
idevice_files = up-device-idevice.c up-device-idevice.h
else
idevice_files =
endif

libupshared_la_SOURCES =					\
	up-device-supply.c					\
	up-device-supply.h					\
	up-device-csr.c						\
	up-device-csr.h						\
	up-device-unifying.c					\
	up-device-unifying.h					\
	up-device-hid.c						\
	up-device-hid.h						\
	up-device-wup.c						\
	up-device-wup.h						\
	up-device-bluez.c					\
	up-device-bluez.h					\
	up-backend.c						\
	up-backend-linux-private.h				\
	up-native.c						\
	hidpp-device.c						\
	hidpp-device.h						\
	sysfs-utils.c						\
	sysfs-utils.h						\
	$(idevice_files)					\
	$(BUILT_SOURCES)

noinst_PROGRAMS =						\
	hidpp-test
hidpp_test_SOURCES =						\
	hidpp-device.c						\
	hidpp-device.h						\
	hidpp-test.c
hidpp_test_LDADD =						\
	-lm							\
	$(GLIB_LIBS)						\
	$(GIO_LIBS)						\
	$(GIO_UNIX_LIBS)

hidpp_test_CFLAGS = $(AM_CFLAGS) $(WARNINGFLAGS_C)

EXTRA_DIST = $(libupshared_la_SOURCES) 			\
	     integration-test

libupshared_la_CFLAGS =					\
	$(WARNINGFLAGS_C)

libupshared_la_LIBADD = $(GIO_LIBS)

clean-local :
	rm -f *~

uninstall-hook:
	rm -f $(DESTDIR)$(localstatedir)/lib/upower/history-* && \
	rmdir $(DESTDIR)$(localstatedir)/lib/upower && \
	rmdir $(DESTDIR)$(localstatedir)/lib && \
	rmdir $(DESTDIR)$(localstatedir)

-include $(top_srcdir)/git.mk