blob: 7167b1dd4a95363e78fcc1a7ac669f71a771ab62 [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 \
12 snmp_conf_manager.hpp
13
14phosphor_network_snmpconf_SOURCES = \
15 snmp_main.cpp \
16 snmp_conf_manager.cpp \
17 snmp_client.cpp \
18 xyz/openbmc_project/Network/Client/Create/server.cpp
19
20CLEANFILES = \
21 xyz/openbmc_project/Network/Client/Create/server.cpp \
22 xyz/openbmc_project/Network/Client/Create/server.hpp
23
24BUILT_SOURCES = \
25 xyz/openbmc_project/Network/Client/Create/server.cpp \
26 xyz/openbmc_project/Network/Client/Create/server.hpp
27
28phosphor_network_snmpconf_LDFLAGS = \
29 $(SYSTEMD_LIBS) \
30 $(SDBUSPLUS_LIBS) \
31 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
32 $(PHOSPHOR_LOGGING_LIBS) \
33 -lstdc++fs
34
35phosphor_network_snmpconf_CXXFLAGS = \
36 $(SYSTEMD_CFLAGS) \
37 $(SDBUSPLUS_CFLAGS) \
38 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
39 $(PHOSPHOR_LOGGING_CFLAGS)
40
41xyz/openbmc_project/Network/Client/Create/server.cpp: xyz/openbmc_project/Network/Client/Create.interface.yaml xyz/openbmc_project/Network/Client/Create/server.hpp
42 @mkdir -p `dirname $@`
43 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.Client.Create > $@
44
45xyz/openbmc_project/Network/Client/Create/server.hpp: xyz/openbmc_project/Network/Client/Create.interface.yaml
46 @mkdir -p `dirname $@`
47 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.Client.Create > $@
48 sed -i '5i #include \"xyz\/openbmc_project\/Network\/Client\/server.hpp\"' $@
49
Ratan Guptaec26fa62018-04-16 15:28:36 +053050libsnmpdir = ${libdir}
51
52libsnmp_LTLIBRARIES = libsnmp.la
53libsnmp_la_SOURCES = \
54 snmp_notification.cpp
55
56libsnmp_la_LDFLAGS = \
57 $(SDBUSPLUS_LIBS) \
58 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
59 $(PHOSPHOR_LOGGING_LIBS) \
60 -lnetsnmp \
61 -lcrypto \
62 -version-info 0:0:0 -shared
63
64pkgconfiglibdir = ${libdir}/pkgconfig
65pkgconfiglib_DATA = phosphor-snmp.pc
66
67@CODE_COVERAGE_RULES@
68
69check_PROGRAMS =
70XFAIL_TESTS =
71
72include test/Makefile.am.include
73
74TESTS = $(check_PROGRAMS)
75
76clean-local: code-coverage-clean
77dist-clean-local: code-coverage-dist-clean
78