Ratan Gupta | ec26fa6 | 2018-04-16 15:28:36 +0530 | [diff] [blame] | 1 | # export these headers |
Ratan Gupta | e4e08e0 | 2018-04-16 15:32:48 +0530 | [diff] [blame] | 2 | nobase_include_HEADERS = snmp.hpp \ |
| 3 | snmp_notification.hpp |
Ratan Gupta | ec26fa6 | 2018-04-16 15:28:36 +0530 | [diff] [blame] | 4 | |
Ratan Gupta | 1dc9178 | 2018-04-19 16:47:12 +0530 | [diff] [blame] | 5 | nobase_nodist_include_HEADERS = \ |
| 6 | xyz/openbmc_project/Network/Client/Create/server.hpp |
| 7 | |
| 8 | sbin_PROGRAMS = phosphor-network-snmpconf |
| 9 | |
| 10 | noinst_HEADERS = \ |
| 11 | snmp_client.hpp \ |
Ratan Gupta | 6347619 | 2018-04-19 16:55:32 +0530 | [diff] [blame] | 12 | snmp_conf_manager.hpp \ |
Ratan Gupta | 212f53e | 2018-04-30 17:28:05 +0530 | [diff] [blame^] | 13 | snmp_util.hpp \ |
| 14 | snmp_serialize.hpp |
Ratan Gupta | 1dc9178 | 2018-04-19 16:47:12 +0530 | [diff] [blame] | 15 | |
| 16 | phosphor_network_snmpconf_SOURCES = \ |
| 17 | snmp_main.cpp \ |
| 18 | snmp_conf_manager.cpp \ |
| 19 | snmp_client.cpp \ |
Ratan Gupta | 213517b | 2018-04-28 13:41:09 +0530 | [diff] [blame] | 20 | snmp_util.cpp \ |
Ratan Gupta | 212f53e | 2018-04-30 17:28:05 +0530 | [diff] [blame^] | 21 | snmp_serialize.cpp \ |
Ratan Gupta | 1dc9178 | 2018-04-19 16:47:12 +0530 | [diff] [blame] | 22 | xyz/openbmc_project/Network/Client/Create/server.cpp |
| 23 | |
| 24 | CLEANFILES = \ |
| 25 | xyz/openbmc_project/Network/Client/Create/server.cpp \ |
| 26 | xyz/openbmc_project/Network/Client/Create/server.hpp |
| 27 | |
| 28 | BUILT_SOURCES = \ |
| 29 | xyz/openbmc_project/Network/Client/Create/server.cpp \ |
| 30 | xyz/openbmc_project/Network/Client/Create/server.hpp |
| 31 | |
| 32 | phosphor_network_snmpconf_LDFLAGS = \ |
| 33 | $(SYSTEMD_LIBS) \ |
| 34 | $(SDBUSPLUS_LIBS) \ |
| 35 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 36 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 37 | -lstdc++fs |
| 38 | |
| 39 | phosphor_network_snmpconf_CXXFLAGS = \ |
| 40 | $(SYSTEMD_CFLAGS) \ |
| 41 | $(SDBUSPLUS_CFLAGS) \ |
| 42 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 43 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 44 | |
| 45 | xyz/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 | |
| 49 | xyz/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 Gupta | ec26fa6 | 2018-04-16 15:28:36 +0530 | [diff] [blame] | 54 | libsnmpdir = ${libdir} |
| 55 | |
| 56 | libsnmp_LTLIBRARIES = libsnmp.la |
| 57 | libsnmp_la_SOURCES = \ |
Ratan Gupta | 6347619 | 2018-04-19 16:55:32 +0530 | [diff] [blame] | 58 | snmp_notification.cpp \ |
| 59 | snmp_util.cpp |
Ratan Gupta | ec26fa6 | 2018-04-16 15:28:36 +0530 | [diff] [blame] | 60 | |
| 61 | libsnmp_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 | |
| 69 | pkgconfiglibdir = ${libdir}/pkgconfig |
| 70 | pkgconfiglib_DATA = phosphor-snmp.pc |
| 71 | |
| 72 | @CODE_COVERAGE_RULES@ |
| 73 | |
| 74 | check_PROGRAMS = |
| 75 | XFAIL_TESTS = |
| 76 | |
| 77 | include test/Makefile.am.include |
| 78 | |
| 79 | TESTS = $(check_PROGRAMS) |
| 80 | |
| 81 | clean-local: code-coverage-clean |
| 82 | dist-clean-local: code-coverage-dist-clean |
| 83 | |