BINDLIBIRSDIR=@Q@BINDLIBIRSDIR@Q@
BINDLIBDNSDIR=@Q@BINDLIBDNSDIR@Q@
BINDLIBISCCFGDIR=@Q@BINDLIBISCCFGDIR@Q@
BINDLIBISCDIR=@Q@BINDLIBISCDIR@Q@

bin_PROGRAMS = omshell
lib_@DHLIBS@ = libdhcpctl.@A@
noinst_PROGRAMS = cltest
man_MANS = omshell.1 dhcpctl.3
EXTRA_DIST = $(man_MANS)

omshell_SOURCES = omshell.c
omshell_LDADD = libdhcpctl.@A@ ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \
		$(BINDLIBIRSDIR)/libirs.@A@ \
		$(BINDLIBDNSDIR)/libdns.@A@ \
	        $(BINDLIBISCCFGDIR)/libisccfg.@A@ \
		$(BINDLIBISCDIR)/libisc.@A@

libdhcpctl_@A@_SOURCES = dhcpctl.c callback.c remote.c

cltest_SOURCES = cltest.c
cltest_LDADD = libdhcpctl.@A@ ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \
	       $(BINDLIBIRSDIR)/libirs.@A@ \
	       $(BINDLIBDNSDIR)/libdns.@A@ \
	       $(BINDLIBISCCFGDIR)/libisccfg.@A@ \
	       $(BINDLIBISCDIR)/libisc.@A@
