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 \ |
| 12 | snmp_conf_manager.hpp |
| 13 | |
| 14 | phosphor_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 | |
| 20 | CLEANFILES = \ |
| 21 | xyz/openbmc_project/Network/Client/Create/server.cpp \ |
| 22 | xyz/openbmc_project/Network/Client/Create/server.hpp |
| 23 | |
| 24 | BUILT_SOURCES = \ |
| 25 | xyz/openbmc_project/Network/Client/Create/server.cpp \ |
| 26 | xyz/openbmc_project/Network/Client/Create/server.hpp |
| 27 | |
| 28 | phosphor_network_snmpconf_LDFLAGS = \ |
| 29 | $(SYSTEMD_LIBS) \ |
| 30 | $(SDBUSPLUS_LIBS) \ |
| 31 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 32 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 33 | -lstdc++fs |
| 34 | |
| 35 | phosphor_network_snmpconf_CXXFLAGS = \ |
| 36 | $(SYSTEMD_CFLAGS) \ |
| 37 | $(SDBUSPLUS_CFLAGS) \ |
| 38 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 39 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 40 | |
| 41 | xyz/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 | |
| 45 | xyz/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 Gupta | ec26fa6 | 2018-04-16 15:28:36 +0530 | [diff] [blame] | 50 | libsnmpdir = ${libdir} |
| 51 | |
| 52 | libsnmp_LTLIBRARIES = libsnmp.la |
| 53 | libsnmp_la_SOURCES = \ |
| 54 | snmp_notification.cpp |
| 55 | |
| 56 | libsnmp_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 | |
| 64 | pkgconfiglibdir = ${libdir}/pkgconfig |
| 65 | pkgconfiglib_DATA = phosphor-snmp.pc |
| 66 | |
| 67 | @CODE_COVERAGE_RULES@ |
| 68 | |
| 69 | check_PROGRAMS = |
| 70 | XFAIL_TESTS = |
| 71 | |
| 72 | include test/Makefile.am.include |
| 73 | |
| 74 | TESTS = $(check_PROGRAMS) |
| 75 | |
| 76 | clean-local: code-coverage-clean |
| 77 | dist-clean-local: code-coverage-dist-clean |
| 78 | |