blob: 74f28dc32deedf49da987cb9f97fdc9cfb47f395 [file] [log] [blame]
AM_DEFAULT_SOURCE_EXT = .cpp
AM_CPPFLAGS = -iquote ${top_srcdir} -I${srcdir}/json -I${srcdir}/json/actions
bin_PROGRAMS = \
phosphor-fan-control
phosphor_fan_control_SOURCES = \
main.cpp
phosphor_fan_control_LDADD = \
-lstdc++fs \
$(SDBUSPLUS_LIBS) \
$(SDEVENTPLUS_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
${PHOSPHOR_DBUS_INTERFACES_LIBS} \
$(FMT_LIBS)
phosphor_fan_control_CXXFLAGS = \
$(SDBUSPLUS_CFLAGS) \
$(SDEVENTPLUS_CFLAGS) \
$(PHOSPHOR_LOGGING_CFLAGS) \
${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
-flto
if WANT_JSON_CONTROL
phosphor_fan_control_SOURCES += \
json/manager.cpp \
json/profile.cpp \
json/fan.cpp \
json/zone.cpp \
json/group.cpp \
json/event.cpp \
json/actions/default_floor.cpp \
json/actions/request_target_base.cpp \
json/actions/missing_owner_target.cpp \
json/actions/count_state_target.cpp \
json/actions/net_target_increase.cpp \
json/actions/net_target_decrease.cpp
else
phosphor_fan_control_SOURCES += \
argument.cpp \
fan.cpp \
manager.cpp \
utility.cpp \
preconditions.cpp \
actions.cpp \
triggers.cpp \
zone.cpp
BUILT_SOURCES = fan_zone_defs.cpp
nodist_phosphor_fan_control_SOURCES = \
fan_zone_defs.cpp
fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py
$(AM_V_GEN)$(GEN_FAN_ZONE_DEFS) > ${builddir}/$@
endif