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 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
|
AM_CFLAGS = -W -Wall -Wshadow -W -Wpointer-arith \
-Wcast-qual -Wcast-align -Wwrite-strings \
-Wconversion -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wredundant-decls \
-Wnested-externs -Winline -Wundef -Wbad-function-cast \
-Waggregate-return \
-std=c99 \
-D_POSIX_SOURCE -D_GNU_SOURCE \
-I${top_builddir}
sbin_PROGRAMS = cpufreqd
cpufreqd_SOURCES = \
main.c \
config_parser.c \
cpufreqd_log.c \
daemon_utils.c \
plugin_utils.c \
sock_utils.c \
cpufreq_utils.c \
list.c
cpufreqd_LDFLAGS = -export-dynamic @CPUFREQD_LDFLAGS@
BUILD_PLUGINS = \
cpufreqd_programs.la \
cpufreqd_cpu.la
if ACPI_PLUGIN
#BUILD_PLUGINS += cpufreqd_acpi_battery.la \
# cpufreqd_acpi_temperature.la \
# cpufreqd_acpi_event.la \
# cpufreqd_acpi_ac.la
BUILD_PLUGINS += cpufreqd_acpi.la
endif
if NFORCE2_PLUGIN
BUILD_PLUGINS += cpufreqd_nforce2.la
endif
if NVCLOCK_PLUGIN
BUILD_PLUGINS += cpufreqd_nvclock.la
endif
if APM_PLUGIN
BUILD_PLUGINS += cpufreqd_apm.la
endif
if PMU_PLUGIN
BUILD_PLUGINS += cpufreqd_pmu.la
endif
if SENSORS_PLUGIN
BUILD_PLUGINS += cpufreqd_sensors.la
endif
if EXEC_PLUGIN
BUILD_PLUGINS += cpufreqd_exec.la
endif
if GOVERNOR_PARAMETERS_PLUGIN
BUILD_PLUGINS += cpufreqd_governor_parameters.la
endif
if TAU_PLUGIN
BUILD_PLUGINS += cpufreqd_tau.la
endif
lib_LTLIBRARIES = $(BUILD_PLUGINS)
if NFORCE2_PLUGIN
cpufreqd_nforce2_la_SOURCES = \
cpufreqd_nforce2.c
cpufreqd_nforce2_la_LDFLAGS = \
-module -avoid-version
endif
if NVCLOCK_PLUGIN
cpufreqd_nvclock_la_SOURCES = \
cpufreqd_nvclock.c
cpufreqd_nvclock_la_CFLAGS = \
$(AM_CFLAGS) -I/@NVCLOCK_SRCDIR@/src/backend
cpufreqd_nvclock_la_LDFLAGS = \
-module -avoid-version -L/@NVCLOCK_SRCDIR@/src/backend -lbackend
endif
if PMU_PLUGIN
cpufreqd_pmu_la_SOURCES = \
cpufreqd_pmu.c
cpufreqd_pmu_la_LDFLAGS = \
-module -avoid-version
endif
if APM_PLUGIN
cpufreqd_apm_la_SOURCES = \
cpufreqd_apm.c
cpufreqd_apm_la_LDFLAGS = \
-module -avoid-version
endif
if ACPI_PLUGIN
cpufreqd_acpi_la_SOURCES = \
cpufreqd_acpi.c \
cpufreqd_acpi_ac.c \
cpufreqd_acpi_battery.c \
cpufreqd_acpi_event.c \
cpufreqd_acpi_temperature.c
cpufreqd_acpi_la_CFLAGS = \
$(AM_CFLAGS) -I/@PTHREAD_SRCDIR@/include -I/usr/include/sysfs
cpufreqd_acpi_la_LDFLAGS = \
-module -avoid-version -L/@PTHREAD_SRCDIR@/lib -lpthread -lsysfs
#cpufreqd_acpi_ac_la_SOURCES = \
# cpufreqd_acpi_ac.c
#
#cpufreqd_acpi_ac_la_LDFLAGS = \
# -module -avoid-version
#
#cpufreqd_acpi_temperature_la_SOURCES = \
# cpufreqd_acpi_temperature.c
#
#cpufreqd_acpi_temperature_la_LDFLAGS = \
# -module -avoid-version
#
#cpufreqd_acpi_event_la_SOURCES = \
# cpufreqd_acpi_event.c
#
#cpufreqd_acpi_event_la_CFLAGS = \
# $(AM_CFLAGS) -I/@PTHREAD_SRCDIR@/include
#
#cpufreqd_acpi_event_la_LDFLAGS = \
# -module -avoid-version -L/@PTHREAD_SRCDIR@/lib -lpthread
#
#cpufreqd_acpi_battery_la_SOURCES = \
# cpufreqd_acpi_battery.c
#
#cpufreqd_acpi_battery_la_LDFLAGS = \
# -module -avoid-version
endif
cpufreqd_cpu_la_SOURCES = \
cpufreqd_cpu.c
cpufreqd_cpu_la_LDFLAGS = \
-module -avoid-version
cpufreqd_programs_la_SOURCES = \
cpufreqd_programs.c
cpufreqd_programs_la_LDFLAGS = \
-module -avoid-version
if EXEC_PLUGIN
cpufreqd_exec_la_SOURCES = \
cpufreqd_exec.c
cpufreqd_exec_la_CFLAGS = \
$(AM_CFLAGS) -I/@PTHREAD_SRCDIR@/include
cpufreqd_exec_la_LDFLAGS = \
-module -avoid-version -L/@PTHREAD_SRCDIR@/lib -lpthread
endif
if SENSORS_PLUGIN
cpufreqd_sensors_la_SOURCES = \
cpufreqd_sensors.c
cpufreqd_sensors_la_CFLAGS = \
$(AM_CFLAGS) -I/@SENSORS_SRCDIR@/include
cpufreqd_sensors_la_LDFLAGS = \
-module -avoid-version -L/@SENSORS_SRCDIR@/lib -lsensors
endif
if GOVERNOR_PARAMETERS_PLUGIN
cpufreqd_governor_parameters_la_SOURCES = \
cpufreqd_governor_parameters.c
cpufreqd_governor_parameters_la_CFLAGS = \
$(AM_CFLAGS) -I/usr/include/sysfs
cpufreqd_governor_parameters_la_LDFLAGS = \
-module -avoid-version -lsysfs
endif
if TAU_PLUGIN
cpufreqd_tau_la_SOURCES = \
cpufreqd_tau.c
cpufreqd_tau_la_LDFLAGS = \
-module -avoid-version
endif
noinst_HEADERS = \
cpufreqd.h \
cpufreqd_plugin.h \
cpufreqd_log.h \
cpufreqd_acpi.h \
cpufreqd_acpi_ac.h \
cpufreqd_acpi_battery.h \
cpufreqd_acpi_event.h \
cpufreqd_acpi_temperature.h \
cpufreq_utils.h \
daemon_utils.h \
plugin_utils.h \
cpufreqd_remote.h \
sock_utils.h \
config_parser.h \
list.h
|