aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: edf56318a77d5cb0621b25843fd0329584ac25c3 (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
AUTOMAKE_OPTIONS = subdir-objects

sbin_PROGRAMS = powertop
nodist_powertop_SOURCES = css.h

powertop_SOURCES = \
	css.h \
	devlist.cpp \
	devlist.h \
	display.cpp \
	display.h \
	lib.cpp \
	lib.h \
	main.cpp \
	powertop.css \
	\
	calibrate/calibrate.cpp \
	calibrate/calibrate.h \
	cpu/abstract_cpu.cpp \
	cpu/cpu.cpp \
	cpu/cpu.h \
	cpu/cpu_core.cpp \
	cpu/cpu_linux.cpp \
	cpu/cpu_package.cpp \
	cpu/cpu_rapl_device.cpp \
	cpu/cpu_rapl_device.h \
	cpu/cpudevice.cpp \
	cpu/cpudevice.h \
	cpu/dram_rapl_device.cpp \
	cpu/dram_rapl_device.h \
	cpu/intel_cpus.cpp \
	cpu/intel_cpus.h \
	cpu/intel_gpu.cpp \
	cpu/rapl/rapl_interface.cpp \
	cpu/rapl/rapl_interface.h \
	devices/ahci.cpp \
	devices/ahci.h \
	devices/alsa.cpp \
	devices/alsa.h \
	devices/backlight.cpp \
	devices/backlight.h \
	devices/devfreq.cpp \
	devices/devfreq.h \
	devices/device.cpp \
	devices/device.h \
	devices/gpu_rapl_device.cpp \
	devices/gpu_rapl_device.h \
	devices/i915-gpu.cpp \
	devices/i915-gpu.h \
	devices/network.cpp \
	devices/network.h \
	devices/rfkill.cpp \
	devices/rfkill.h \
	devices/runtime_pm.cpp \
	devices/runtime_pm.h \
	devices/thinkpad-fan.cpp \
	devices/thinkpad-fan.h \
	devices/thinkpad-light.cpp \
	devices/thinkpad-light.h \
	devices/usb.h \
	devices/usb.cpp \
	measurement/acpi.cpp \
	measurement/acpi.h \
	measurement/extech.cpp \
	measurement/extech.h \
	measurement/measurement.cpp \
	measurement/measurement.h \
	measurement/sysfs.cpp \
	measurement/sysfs.h \
	measurement/opal-sensors.cpp \
	measurement/opal-sensors.h \
	parameters/learn.cpp \
	parameters/parameters.cpp \
	parameters/parameters.h \
	parameters/persistent.cpp \
	perf/perf.cpp \
	perf/perf.h \
	perf/perf_bundle.cpp \
	perf/perf_bundle.h \
	perf/perf_event.h \
	process/do_process.cpp \
	process/interrupt.cpp \
	process/interrupt.h \
	process/powerconsumer.cpp \
	process/powerconsumer.h \
	process/process.cpp \
	process/process.h \
	process/processdevice.cpp \
	process/processdevice.h \
	process/timer.cpp \
	process/timer.h \
	process/work.cpp \
	process/work.h \
	report/report-data-html.cpp \
	report/report-data-html.h \
	report/report-formatter-base.cpp \
	report/report-formatter-base.h \
	report/report-formatter-csv.cpp \
	report/report-formatter-csv.h \
	report/report-formatter-html.cpp \
	report/report-formatter-html.h \
	report/report-formatter.h \
	report/report-maker.cpp \
	report/report-maker.h \
	report/report.cpp \
	report/report.h \
	tuning/bluetooth.cpp \
	tuning/bluetooth.h \
	tuning/ethernet.cpp \
	tuning/ethernet.h \
	tuning/iw.c \
	tuning/iw.h \
	tuning/nl80211.h \
	tuning/runtime.cpp \
	tuning/runtime.h \
	tuning/tunable.cpp \
	tuning/tunable.h \
	tuning/tuning.cpp \
	tuning/tuning.h \
	tuning/tuningsysfs.cpp \
	tuning/tuningsysfs.h \
	tuning/tuningusb.cpp \
	tuning/tuningusb.h \
	tuning/tuningi2c.cpp \
	tuning/tuningi2c.h \
	tuning/wifi.cpp \
	tuning/wifi.h

powertop_CXXFLAGS = \
	-Wall \
	-Wformat \
	-Wshadow \
	-fno-omit-frame-pointer \
	-fstack-protector \
	$(GLIB2_CFLAGS) \
	$(LIBNL_CFLAGS) \
	$(NCURSES_CFLAGS) \
	$(PCIUTILS_CFLAGS) \
	$(PTHREAD_CFLAGS)


powertop_CPPFLAGS = \
	-DLOCALEDIR=\"$(localedir)\" \
	$(GLIB2_CFLAGS) \
	$(LIBNL_CFLAGS) \
	$(LIBZ_CFLAGS) \
	$(NCURSES_CFLAGS) \
	$(PCIUTILS_CFLAGS) \
	$(PTHREAD_CFLAGS)

powertop_LDADD = \
	../traceevent/libtraceevnet.la

AM_LDFLAGS = \
	$(LIBNL_LIBS) \
	$(LIBS) \
	$(LIBZ_LIBS) \
	$(NCURSES_LIBS) \
	$(PCIUTILS_LIBS) \
	$(PTHREAD_LIBS) \
	$(RESOLV_LIBS)

BUILT_SOURCES = css.h
CLEANFILES = css.h

css.h: powertop.css
	$(SHELL) ${srcdir}/csstoh.sh ${srcdir}/powertop.css css.h

EXTRA_DIST = ${srcdir}/csstoh.sh