1 # -*- Makefile -*- 2 3 EXTRA_DIST = \ 4 util.h 5 6 if ENABLE_UNIT_TESTS 7 8 AM_CPPFLAGS = -Wall -I${top_srcdir}/include/linux-private -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\" 9 10 LDADD = \ 11 ${top_builddir}/lib/libnl-3.la \ 12 ${top_builddir}/lib/libnl-nf-3.la \ 13 ${top_builddir}/lib/libnl-genl-3.la \ 14 ${top_builddir}/lib/libnl-route-3.la \ 15 @CHECK_LIBS@ 16 17 AM_CFLAGS = @CHECK_CFLAGS@ 18 19 UNIT_TESTS = check-all 20 21 check_PROGRAMS = \ 22 test-create-bond \ 23 test-create-vlan \ 24 test-create-vxlan \ 25 test-create-veth \ 26 test-create-bridge \ 27 test-create-ip6tnl \ 28 test-create-ipgre \ 29 test-create-ipip \ 30 test-create-ipvti \ 31 test-create-sit \ 32 test-delete-link \ 33 test-socket-creation \ 34 test-complex-HTB-with-hash-filters \ 35 test-u32-filter-with-actions \ 36 ${UNIT_TESTS} 37 38 TESTS = \ 39 ${UNIT_TESTS} 40 41 if ENABLE_CLI 42 LDADD += ${top_builddir}/src/lib/libnl-cli-3.la 43 check_PROGRAMS += \ 44 test-cache-mngr \ 45 test-genl \ 46 test-nf-cache-mngr 47 endif 48 49 test_cache_mngr_SOURCES = test-cache-mngr.c 50 test_create_bond_SOURCES = test-create-bond.c 51 test_create_vlan_SOURCES = test-create-vlan.c 52 test_create_vxlan_SOURCES = test-create-vxlan.c 53 test_create_veth_SOURCES = test-create-veth.c 54 test_create_bridge_SOURCES = test-create-bridge.c 55 test_delete_link_SOURCES = test-delete-link.c 56 test_genl_SOURCES = test-genl.c 57 test_nf_cache_mngr_SOURCES = test-nf-cache-mngr.c 58 test_socket_creation_SOURCES = test-socket-creation.c 59 test_complex_HTB_with_hash_filters_SOURCES = test-complex-HTB-with-hash-filters.c 60 test_u32_filter_with_actions_SOURCES = test-u32-filter-with-actions.c 61 62 # Unit tests 63 check_all_SOURCES = \ 64 check-all.c \ 65 check-addr.c \ 66 check-attr.c 67 endif 68