# -*- Makefile -*-

SUBDIRS = lib

AM_CPPFLAGS  = -Wall -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\"
AM_LDFLAGS = -L${top_builddir}/lib -L${top_builddir}/src/lib -lnl-cli -lnl -lnl-nf -lnl-genl -lnl-route

sbin_PROGRAMS = \
	nl-qdisc-add nl-qdisc-list nl-qdisc-delete \
	nl-class-add nl-class-list nl-class-delete \
	nl-cls-add nl-cls-list nl-cls-delete \
	nl-classid-lookup \
	nl-pktloc-lookup \
	nl-link-list

noinst_PROGRAMS = \
	genl-ctrl-list \
	nf-ct-list nf-log nf-queue nf-monitor \
	nl-addr-add nl-addr-delete nl-addr-list \
	nl-link-set nl-link-stats \
	nl-link-ifindex2name nl-link-name2ifindex \
	nl-neigh-add nl-neigh-delete nl-neigh-list \
	nl-rule-list \
	nl-neightbl-list \
	nl-monitor \
	nl-tctree-list \
	nl-route-add nl-route-delete nl-route-get nl-route-list \
	nl-fib-lookup \
	nl-list-caches nl-list-sockets \
	nl-util-addr

genl_ctrl_list_SOURCES = genl-ctrl-list.c 

nf_ct_list_SOURCES = nf-ct-list.c 
nf_log_SOURCES = nf-log.c
nf_queue_SOURCES = nf-queue.c 
nf_monitor_SOURCES = nf-monitor.c

nl_addr_add_SOURCES = nl-addr-add.c
nl_addr_delete_SOURCES = nl-addr-delete.c
nl_addr_list_SOURCES = nl-addr-list.c

nl_link_list_SOURCES = nl-link-list.c
nl_link_set_SOURCES = nl-link-set.c
nl_link_stats_SOURCES = nl-link-stats.c
nl_link_ifindex2name_SOURCES = nl-link-ifindex2name.c
nl_link_name2ifindex_SOURCES = nl-link-name2ifindex.c

nl_monitor_SOURCES = nl-monitor.c

nl_neigh_add_SOURCES = nl-neigh-add.c
nl_neigh_delete_SOURCES = nl-neigh-delete.c
nl_neigh_list_SOURCES = nl-neigh-list.c

nl_neightbl_list_SOURCES = nl-neightbl-list.c

nl_qdisc_add_SOURCES = nl-qdisc-add.c
nl_qdisc_delete_SOURCES = nl-qdisc-delete.c
nl_qdisc_list_SOURCES = nl-qdisc-list.c

nl_class_add_SOURCES = nl-class-add.c
nl_class_delete_SOURCES = nl-class-delete.c
nl_class_list_SOURCES = nl-class-list.c

nl_cls_add_SOURCES = nl-cls-add.c
nl_cls_list_SOURCES = nl-cls-list.c
nl_cls_delete_SOURCES = nl-cls-delete.c

nl_route_add_SOURCES = nl-route-add.c
nl_route_delete_SOURCES = nl-route-delete.c
nl_route_get_SOURCES = nl-route-get.c
nl_route_list_SOURCES = nl-route-list.c

nl_rule_list_SOURCES = nl-rule-list.c

nl_tctree_list_SOURCES = nl-tctree-list.c

nl_fib_lookup_SOURCES = nl-fib-lookup.c

nl_list_caches_SOURCES = nl-list-caches.c
nl_list_sockets_SOURCES = nl-list-sockets.c

nl_util_addr_SOURCES = nl-util-addr.c

nl_pktloc_lookup_SOURCES = nl-pktloc-lookup.c

nl_classid_lookup_SOURCES = nl-classid-lookup.c
