blob: c133dd39e2631a88ac50fe7bdc5d8e4348060f25 [file] [log] [blame]
Ratan Guptaec26fa62018-04-16 15:28:36 +05301# export these headers
Ratan Guptae4e08e02018-04-16 15:32:48 +05302nobase_include_HEADERS = snmp.hpp \
3 snmp_notification.hpp
Ratan Guptaec26fa62018-04-16 15:28:36 +05304
Ratan Gupta1dc91782018-04-19 16:47:12 +05305nobase_nodist_include_HEADERS = \
6 xyz/openbmc_project/Network/Client/Create/server.hpp
7
8sbin_PROGRAMS = phosphor-network-snmpconf
9
10noinst_HEADERS = \
11 snmp_client.hpp \
Ratan Gupta63476192018-04-19 16:55:32 +053012 snmp_conf_manager.hpp \
Ratan Gupta212f53e2018-04-30 17:28:05 +053013 snmp_util.hpp \
14 snmp_serialize.hpp
Ratan Gupta1dc91782018-04-19 16:47:12 +053015
16phosphor_network_snmpconf_SOURCES = \
17 snmp_main.cpp \
18 snmp_conf_manager.cpp \
19 snmp_client.cpp \
Ratan Gupta213517b2018-04-28 13:41:09 +053020 snmp_util.cpp \
Ratan Gupta212f53e2018-04-30 17:28:05 +053021 snmp_serialize.cpp \
Ratan Gupta1dc91782018-04-19 16:47:12 +053022 xyz/openbmc_project/Network/Client/Create/server.cpp
23
24CLEANFILES = \
25 xyz/openbmc_project/Network/Client/Create/server.cpp \
26 xyz/openbmc_project/Network/Client/Create/server.hpp
27
28BUILT_SOURCES = \
29 xyz/openbmc_project/Network/Client/Create/server.cpp \
30 xyz/openbmc_project/Network/Client/Create/server.hpp
31
32phosphor_network_snmpconf_LDFLAGS = \
33 $(SYSTEMD_LIBS) \
34 $(SDBUSPLUS_LIBS) \
35 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
36 $(PHOSPHOR_LOGGING_LIBS) \
37 -lstdc++fs
38
39phosphor_network_snmpconf_CXXFLAGS = \
40 $(SYSTEMD_CFLAGS) \
41 $(SDBUSPLUS_CFLAGS) \
42 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
43 $(PHOSPHOR_LOGGING_CFLAGS)
44
45xyz/openbmc_project/Network/Client/Create/server.cpp: xyz/openbmc_project/Network/Client/Create.interface.yaml xyz/openbmc_project/Network/Client/Create/server.hpp
46 @mkdir -p `dirname $@`
47 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.Client.Create > $@
48
49xyz/openbmc_project/Network/Client/Create/server.hpp: xyz/openbmc_project/Network/Client/Create.interface.yaml
50 @mkdir -p `dirname $@`
51 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.Client.Create > $@
52 sed -i '5i #include \"xyz\/openbmc_project\/Network\/Client\/server.hpp\"' $@
53
Ratan Guptaec26fa62018-04-16 15:28:36 +053054libsnmpdir = ${libdir}
55
56libsnmp_LTLIBRARIES = libsnmp.la
57libsnmp_la_SOURCES = \
Ratan Gupta63476192018-04-19 16:55:32 +053058 snmp_notification.cpp \
59 snmp_util.cpp
Ratan Guptaec26fa62018-04-16 15:28:36 +053060
61libsnmp_la_LDFLAGS = \
62 $(SDBUSPLUS_LIBS) \
63 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
64 $(PHOSPHOR_LOGGING_LIBS) \
65 -lnetsnmp \
66 -lcrypto \
67 -version-info 0:0:0 -shared
68
69pkgconfiglibdir = ${libdir}/pkgconfig
70pkgconfiglib_DATA = phosphor-snmp.pc
71
72@CODE_COVERAGE_RULES@
73
74check_PROGRAMS =
75XFAIL_TESTS =
76
77include test/Makefile.am.include
78
79TESTS = $(check_PROGRAMS)
80
81clean-local: code-coverage-clean
82dist-clean-local: code-coverage-dist-clean
83