blob: 28412eef6dd5de9096f5da8f8d03ba6110985e31 [file] [log] [blame]
AM_DEFAULT_SOURCE_EXT = .cpp
AM_CPPFLAGS = -iquote ${top_srcdir}
bin_PROGRAMS = \
phosphor-fan-presence-tach
phosphor_fan_presence_tach_SOURCES = \
anyof.cpp \
fallback.cpp \
fan.cpp \
gpio.cpp \
psensor.cpp \
tach.cpp \
tach_detect.cpp
phosphor_fan_presence_tach_LDADD = \
$(SDBUSPLUS_LIBS) \
$(SDEVENTPLUS_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
${PHOSPHOR_DBUS_INTERFACES_LIBS} \
$(LIBEVDEV_LIBS)
phosphor_fan_presence_tach_CXXFLAGS = \
$(SDBUSPLUS_CFLAGS) \
$(SDEVENTPLUS_CFLAGS) \
$(PHOSPHOR_LOGGING_CFLAGS) \
${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
$(LIBEVDEV_CFLAGS) \
-flto
BUILT_SOURCES = generated.hpp
TEMPLATES = \
templates/generated.mako.hpp
generated.hpp: $(TEMPLATES) ${srcdir}/pfpgen.py $(PRESENCE_CONFIG)
$(AM_V_GEN)$(PFPGEN) > $(builddir)/$@