diff options
author | Thomas Graf <tgraf@suug.ch> | 2009-12-16 15:20:46 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2009-12-16 15:20:46 (GMT) |
commit | 8808743839b0f459394ecd00cb0f7c1896c0ab7a (patch) | |
tree | a3ab1da0c8bb02390662891bcb92e2130662b5d7 /src/Makefile.am | |
parent | ff76549013c31082d303b3feef755bbd35e13ec6 (diff) | |
download | libnl-8808743839b0f459394ecd00cb0f7c1896c0ab7a.zip libnl-8808743839b0f459394ecd00cb0f7c1896c0ab7a.tar.gz libnl-8808743839b0f459394ecd00cb0f7c1896c0ab7a.tar.bz2 |
CLI - Command Line Interface Library
Moved common code in src/ used by CLI tools to src/lib/ for possible use
by other CLI tools. Just link to libnl-cli.{so|la}
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 73 |
1 files changed, 34 insertions, 39 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 1f2fe70..ca37843 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,9 @@ # -*- Makefile -*- +SUBDIRS = lib + AM_CFLAGS = -Wall -I${top_srcdir}/include -D_GNU_SOURCE -AM_LDFLAGS = -L${top_builddir}/lib +AM_LDFLAGS = -L${top_builddir}/lib -L${top_builddir}/src/lib -lnl-cli noinst_PROGRAMS = \ genl-ctrl-list \ @@ -20,83 +22,76 @@ noinst_PROGRAMS = \ nl-list-caches nl-list-sockets \ nl-util-addr -rtnl_utils_c = rtnl-utils.c utils.c - -genl_ctrl_list_SOURCES = genl-ctrl-list.c ctrl-utils.c utils.c -genl_ctrl_list_LDADD = -lnl-genl +genl_ctrl_list_SOURCES = genl-ctrl-list.c +genl_ctrl_list_LDADD = -lnl-genl -lnl-route -nf_ct_list_SOURCES = nf-ct-list.c ct-utils.c utils.c +nf_ct_list_SOURCES = nf-ct-list.c nf_ct_list_LDADD = -lnl-nf -nf_log_SOURCES = nf-log.c log-utils.c ${rtnl_utils_c} +nf_log_SOURCES = nf-log.c nf_log_LDADD = -lnl-nf -nf_queue_SOURCES = nf-queue.c queue-utils.c ${rtnl_utils_c} +nf_queue_SOURCES = nf-queue.c nf_queue_LDADD = -lnl-nf -nf_monitor_SOURCES = nf-monitor.c utils.c +nf_monitor_SOURCES = nf-monitor.c nf_monitor_LDADD = -lnl-nf -addr_c = addr-utils.c ${rtnl_utils_c} -nl_addr_add_SOURCES = nl-addr-add.c ${addr_c} +nl_addr_add_SOURCES = nl-addr-add.c nl_addr_add_LDADD = -lnl-route -nl_addr_delete_SOURCES = nl-addr-delete.c ${addr_c} +nl_addr_delete_SOURCES = nl-addr-delete.c nl_addr_delete_LDADD = -lnl-route -nl_addr_list_SOURCES = nl-addr-list.c ${addr_c} +nl_addr_list_SOURCES = nl-addr-list.c nl_addr_list_LDADD = -lnl-route -link_c = link-utils.c ${rtnl_utils_c} -nl_link_list_SOURCES = nl-link-list.c ${link_c} +nl_link_list_SOURCES = nl-link-list.c nl_link_list_LDADD = -lnl-route -nl_link_set_SOURCES = nl-link-set.c ${link_c} +nl_link_set_SOURCES = nl-link-set.c nl_link_set_LDADD = -lnl-route -nl_link_stats_SOURCES = nl-link-stats.c ${link_c} +nl_link_stats_SOURCES = nl-link-stats.c nl_link_stats_LDADD = -lnl-route -nl_link_ifindex2name_SOURCES = nl-link-ifindex2name.c ${rtnl_utils_c} +nl_link_ifindex2name_SOURCES = nl-link-ifindex2name.c nl_link_ifindex2name_LDADD = -lnl-route -nl_link_name2ifindex_SOURCES = nl-link-name2ifindex.c ${rtnl_utils_c} +nl_link_name2ifindex_SOURCES = nl-link-name2ifindex.c nl_link_name2ifindex_LDADD = -lnl-route -nl_monitor_SOURCES = nl-monitor.c ${rtnl_utils_c} +nl_monitor_SOURCES = nl-monitor.c nl_monitor_LDADD = -lnl-route -neigh_c = neigh-utils.c ${rtnl_utils_c} -nl_neigh_add_SOURCES = nl-neigh-add.c ${neigh_c} +nl_neigh_add_SOURCES = nl-neigh-add.c nl_neigh_add_LDADD = -lnl-route -nl_neigh_delete_SOURCES = nl-neigh-delete.c ${neigh_c} +nl_neigh_delete_SOURCES = nl-neigh-delete.c nl_neigh_delete_LDADD = -lnl-route -nl_neigh_list_SOURCES = nl-neigh-list.c ${neigh_c} +nl_neigh_list_SOURCES = nl-neigh-list.c nl_neigh_list_LDADD = -lnl-route -nl_neightbl_list_SOURCES = nl-neightbl-list.c ${rtnl_utils_c} +nl_neightbl_list_SOURCES = nl-neightbl-list.c nl_neightbl_list_LDADD = -lnl-route -qdisc_c = qdisc-utils.c ${rtnl_utils_c} -nl_qdisc_delete_SOURCES = nl-qdisc-delete.c ${qdisc_c} +nl_qdisc_delete_SOURCES = nl-qdisc-delete.c nl_qdisc_delete_LDADD = -lnl-route -nl_qdisc_list_SOURCES = nl-qdisc-list.c ${qdisc_c} +nl_qdisc_list_SOURCES = nl-qdisc-list.c nl_qdisc_list_LDADD = -lnl-route -route_c = route-utils.c ${rtnl_utils_c} -nl_route_add_SOURCES = nl-route-add.c ${route_c} +nl_route_add_SOURCES = nl-route-add.c nl_route_add_LDADD = -lnl-route -nl_route_delete_SOURCES = nl-route-delete.c ${route_c} +nl_route_delete_SOURCES = nl-route-delete.c nl_route_delete_LDADD = -lnl-route -nl_route_get_SOURCES = nl-route-get.c ${route_c} +nl_route_get_SOURCES = nl-route-get.c nl_route_get_LDADD = -lnl-route -nl_route_list_SOURCES = nl-route-list.c ${route_c} +nl_route_list_SOURCES = nl-route-list.c nl_route_list_LDADD = -lnl-route -nl_rule_list_SOURCES = nl-rule-list.c rule-utils.c ${rtnl_utils_c} +nl_rule_list_SOURCES = nl-rule-list.c nl_rule_list_LDADD = -lnl-route -nl_tctree_list_SOURCES = nl-tctree-list.c ${rtnl_utils_c} +nl_tctree_list_SOURCES = nl-tctree-list.c nl_tctree_list_LDADD = -lnl-route -nl_fib_lookup_SOURCES = nl-fib-lookup.c ${rtnl_utils_c} +nl_fib_lookup_SOURCES = nl-fib-lookup.c nl_fib_lookup_LDADD = -lnl-route -nl_list_caches_SOURCES = nl-list-caches.c ${rtnl_utils_c} +nl_list_caches_SOURCES = nl-list-caches.c nl_list_caches_LDADD = -lnl-route -nl_list_sockets_SOURCES = nl-list-sockets.c ${rtnl_utils_c} +nl_list_sockets_SOURCES = nl-list-sockets.c nl_list_sockets_LDADD = -lnl-route -nl_util_addr_SOURCES = nl-util-addr.c ${rtnl_utils_c} +nl_util_addr_SOURCES = nl-util-addr.c nl_util_addr_LDADD = -lnl-route |