blob: 66f6528ce1761ada63196fea7c86a36a4103483b [file] [log] [blame]
# export these headers
nobase_include_HEADERS = snmp.hpp \
snmp_notification.hpp
nobase_nodist_include_HEADERS = \
xyz/openbmc_project/Network/Client/Create/server.hpp
bin_PROGRAMS = phosphor-network-snmpconf
noinst_HEADERS = \
snmp_client.hpp \
snmp_conf_manager.hpp \
snmp_util.hpp \
snmp_serialize.hpp
phosphor_network_snmpconf_SOURCES = \
snmp_main.cpp \
snmp_conf_manager.cpp \
snmp_client.cpp \
snmp_util.cpp \
snmp_serialize.cpp \
xyz/openbmc_project/Network/Client/Create/server.cpp
CLEANFILES = \
xyz/openbmc_project/Network/Client/Create/server.cpp \
xyz/openbmc_project/Network/Client/Create/server.hpp
BUILT_SOURCES = \
xyz/openbmc_project/Network/Client/Create/server.cpp \
xyz/openbmc_project/Network/Client/Create/server.hpp
phosphor_network_snmpconf_LDFLAGS = \
$(SYSTEMD_LIBS) \
$(SDBUSPLUS_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
-lstdc++fs
phosphor_network_snmpconf_CXXFLAGS = \
$(SYSTEMD_CFLAGS) \
$(SDBUSPLUS_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
$(PHOSPHOR_LOGGING_CFLAGS)
xyz/openbmc_project/Network/Client/Create/server.cpp: xyz/openbmc_project/Network/Client/Create.interface.yaml xyz/openbmc_project/Network/Client/Create/server.hpp
@mkdir -p `dirname $@`
$(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.Client.Create > $@
xyz/openbmc_project/Network/Client/Create/server.hpp: xyz/openbmc_project/Network/Client/Create.interface.yaml
@mkdir -p `dirname $@`
$(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.Client.Create > $@
sed -i '5i #include \"xyz\/openbmc_project\/Network\/Client\/server.hpp\"' $@
libsnmpdir = ${libdir}
libsnmp_LTLIBRARIES = libsnmp.la
libsnmp_la_SOURCES = \
snmp_notification.cpp \
snmp_util.cpp
libsnmp_la_LDFLAGS = \
$(SDBUSPLUS_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
-lnetsnmp \
-lcrypto \
-version-info 0:0:0 -shared
pkgconfiglibdir = ${libdir}/pkgconfig
pkgconfiglib_DATA = phosphor-snmp.pc
@CODE_COVERAGE_RULES@
check_PROGRAMS =
XFAIL_TESTS =
include test/Makefile.am.include
TESTS = $(check_PROGRAMS)
clean-local: code-coverage-clean
dist-clean-local: code-coverage-dist-clean