blob: 27dfac6935c6c1834b6d95a86a4495ce8b2fc6a2 (
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
84
85
86
87
88
89
|
cpufreqselectordir = $(bindir)
AM_CPPFLAGS = $(CPUFREQ_SELECTOR_CFLAGS)
if HAVE_POLKIT
AM_CPPFLAGS += \
$(DBUS_CFLAGS) \
$(POLKIT_CFLAGS)
endif
bin_PROGRAMS = mate-cpufreq-selector
install-exec-hook:
if CPUFREQ_SELECTOR_SUID
chmod 4755 $(DESTDIR)$(bindir)/mate-cpufreq-selector
endif
if HAVE_LIBCPUFREQ
cpufreq_files=cpufreq-selector-libcpufreq.c cpufreq-selector-libcpufreq.h
endif
if HAVE_POLKIT
service_files=cpufreq-selector-service.c cpufreq-selector-service.h
endif
mate_cpufreq_selector_SOURCES = \
cpufreq-selector.c cpufreq-selector.h \
cpufreq-selector-sysfs.c cpufreq-selector-sysfs.h \
cpufreq-selector-procfs.c cpufreq-selector-procfs.h \
$(cpufreq_files) \
$(service_files) \
cpufreq-selector-factory.c cpufreq-selector-factory.h \
$(BUILT_SOURCES) \
main.c
mate_cpufreq_selector_LDADD = \
$(CPUFREQ_SELECTOR_LIBS) \
$(LIBCPUFREQ_LIBS)
if HAVE_POLKIT
mate_cpufreq_selector_LDADD += \
$(DBUS_LIBS) \
$(POLKIT_LIBS)
endif
mate_cpufreq_selector_LDFLAGS = $(LDFLAGS) -Wl,-z,now
dbus_services_in_files = org.mate.CPUFreqSelector.service.in
polkit_in_files = org.mate.cpufreqselector.policy.in
dbus_servicesdir = $(datadir)/dbus-1/system-services
dbus_confdir = $(sysconfdir)/dbus-1/system.d
polkitdir = $(datadir)/polkit-1/actions
if HAVE_POLKIT
BUILT_SOURCES = cpufreq-selector-service-glue.h
cpufreq-selector-service-glue.h: $(srcdir)/cpufreq-selector-service.xml
dbus-binding-tool --prefix=cpufreq_selector_service --mode=glib-server \
--output=cpufreq-selector-service-glue.h \
$(srcdir)/cpufreq-selector-service.xml
dbus_services_DATA = $(dbus_services_in_files:.service.in=.service)
$(dbus_services_DATA): $(dbus_services_in_files)
sed -e "s|\@BINDIR\@|$(DESTDIR)$(bindir)|" $< > $@
dbus_conf_DATA = org.mate.CPUFreqSelector.conf
@INTLTOOL_POLICY_RULE@
polkit_DATA = $(polkit_in_files:.policy.in=.policy)
else
dbus_services_DATA=
dbus_conf_DATA=
polkit_DATA=
endif
EXTRA_DIST = \
cpufreq-selector-service.xml \
$(dbus_services_in_files) \
org.mate.CPUFreqSelector.conf \
$(polkit_in_files)
CLEANFILES = \
$(BUILT_SOURCES) \
$(dbus_services_DATA) \
$(polkit_DATA)
-include $(top_srcdir)/git.mk
|