|
|
26a25c |
diff --git a/client/Makefile.am b/client/Makefile.am
|
|
|
26a25c |
index b85f5d2..b1ecf82 100644
|
|
|
26a25c |
--- a/client/Makefile.am
|
|
|
26a25c |
+++ b/client/Makefile.am
|
|
|
26a25c |
@@ -15,6 +15,6 @@ dhclient_SOURCES = clparse.c dhclient.c dhc6.c \
|
|
|
26a25c |
scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
|
|
|
26a25c |
scripts/netbsd scripts/nextstep scripts/openbsd \
|
|
|
26a25c |
scripts/solaris scripts/openwrt
|
|
|
26a25c |
-dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a $(BIND_LIBS)
|
|
|
26a25c |
+dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.la $(BIND_LIBS)
|
|
|
26a25c |
man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
|
|
|
26a25c |
EXTRA_DIST = $(man_MANS)
|
|
|
26a25c |
diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am
|
|
|
26a25c |
index 196aa44..1ccaa05 100644
|
|
|
26a25c |
--- a/common/tests/Makefile.am
|
|
|
26a25c |
+++ b/common/tests/Makefile.am
|
|
|
26a25c |
@@ -15,22 +15,22 @@ ATF_TESTS += alloc_unittest dns_unittest misc_unittest ns_name_unittest
|
|
|
26a25c |
alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
|
|
|
26a25c |
alloc_unittest_LDADD = $(ATF_LDFLAGS)
|
|
|
26a25c |
alloc_unittest_LDADD += ../libdhcp.a \
|
|
|
26a25c |
- ../../omapip/libomapi.a $(BIND_LIBS)
|
|
|
26a25c |
+ ../../omapip/libomapi.la $(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
dns_unittest_SOURCES = dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
|
|
|
26a25c |
dns_unittest_LDADD = $(ATF_LDFLAGS)
|
|
|
26a25c |
dns_unittest_LDADD += ../libdhcp.a \
|
|
|
26a25c |
- ../../omapip/libomapi.a $(BIND_LIBS)
|
|
|
26a25c |
+ ../../omapip/libomapi.la $(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
misc_unittest_SOURCES = misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
|
|
|
26a25c |
misc_unittest_LDADD = $(ATF_LDFLAGS)
|
|
|
26a25c |
misc_unittest_LDADD += ../libdhcp.a \
|
|
|
26a25c |
- ../../omapip/libomapi.a $(BIND_LIBS)
|
|
|
26a25c |
+ ../../omapip/libomapi.la $(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
ns_name_unittest_SOURCES = ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c
|
|
|
26a25c |
ns_name_unittest_LDADD = $(ATF_LDFLAGS)
|
|
|
26a25c |
ns_name_unittest_LDADD += ../libdhcp.a \
|
|
|
26a25c |
- ../../omapip/libomapi.a $(BIND_LIBS)
|
|
|
26a25c |
+ ../../omapip/libomapi.la $(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
check: $(ATF_TESTS)
|
|
|
26a25c |
@if test $(top_srcdir) != ${top_builddir}; then \
|
|
|
26a25c |
diff --git a/configure.ac b/configure.ac
|
|
|
26a25c |
index f594cfa..adc98a8 100644
|
|
|
26a25c |
--- a/configure.ac
|
|
|
26a25c |
+++ b/configure.ac
|
|
|
26a25c |
@@ -47,7 +47,8 @@ AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
|
|
|
26a25c |
# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
|
|
|
26a25c |
AC_USE_SYSTEM_EXTENSIONS
|
|
|
26a25c |
|
|
|
26a25c |
-AC_PROG_RANLIB
|
|
|
26a25c |
+# Use libtool to simplify building of shared libraries
|
|
|
26a25c |
+AC_PROG_LIBTOOL
|
|
|
26a25c |
|
|
|
26a25c |
AC_PATH_PROG(AR, ar)
|
|
|
26a25c |
AC_SUBST(AR)
|
|
|
26a25c |
diff --git a/dhcpctl/Makefile.am b/dhcpctl/Makefile.am
|
|
|
26a25c |
index fa20a78..dd016e4 100644
|
|
|
26a25c |
--- a/dhcpctl/Makefile.am
|
|
|
26a25c |
+++ b/dhcpctl/Makefile.am
|
|
|
26a25c |
@@ -1,17 +1,17 @@
|
|
|
26a25c |
BIND_LIBS = @BIND_LIBS@
|
|
|
26a25c |
|
|
|
26a25c |
bin_PROGRAMS = omshell
|
|
|
26a25c |
-lib_LIBRARIES = libdhcpctl.a
|
|
|
26a25c |
+lib_LTLIBRARIES = libdhcpctl.la
|
|
|
26a25c |
noinst_PROGRAMS = cltest
|
|
|
26a25c |
man_MANS = omshell.1 dhcpctl.3
|
|
|
26a25c |
EXTRA_DIST = $(man_MANS)
|
|
|
26a25c |
|
|
|
26a25c |
omshell_SOURCES = omshell.c
|
|
|
26a25c |
-omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
|
|
|
26a25c |
+omshell_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
|
|
|
26a25c |
$(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
-libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
|
|
|
26a25c |
+libdhcpctl_la_SOURCES = dhcpctl.c callback.c remote.c
|
|
|
26a25c |
|
|
|
26a25c |
cltest_SOURCES = cltest.c
|
|
|
26a25c |
-cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
|
|
|
26a25c |
+cltest_LDADD = libdhcpctl.la ../common/libdhcp.a ../omapip/libomapi.la \
|
|
|
26a25c |
$(BIND_LIBS)
|
|
|
26a25c |
diff --git a/omapip/Makefile.am b/omapip/Makefile.am
|
|
|
26a25c |
index b0d2680..265bcef 100644
|
|
|
26a25c |
--- a/omapip/Makefile.am
|
|
|
26a25c |
+++ b/omapip/Makefile.am
|
|
|
26a25c |
@@ -1,9 +1,9 @@
|
|
|
26a25c |
BIND_LIBS = @BIND_LIBS@
|
|
|
26a25c |
|
|
|
26a25c |
-lib_LIBRARIES = libomapi.a
|
|
|
26a25c |
+lib_LTLIBRARIES = libomapi.la
|
|
|
26a25c |
noinst_PROGRAMS = svtest
|
|
|
26a25c |
|
|
|
26a25c |
-libomapi_a_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
|
|
|
26a25c |
+libomapi_la_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
|
|
|
26a25c |
errwarn.c listener.c dispatch.c generic.c support.c \
|
|
|
26a25c |
handle.c message.c convert.c hash.c auth.c inet_addr.c \
|
|
|
26a25c |
array.c trace.c toisc.c iscprint.c isclib.c
|
|
|
26a25c |
@@ -12,5 +12,5 @@ man_MANS = omapi.3
|
|
|
26a25c |
EXTRA_DIST = $(man_MANS)
|
|
|
26a25c |
|
|
|
26a25c |
svtest_SOURCES = test.c
|
|
|
26a25c |
-svtest_LDADD = libomapi.a $(BIND_LIBS)
|
|
|
26a25c |
+svtest_LDADD = libomapi.la $(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
diff --git a/relay/Makefile.am b/relay/Makefile.am
|
|
|
26a25c |
index c9a1cba..316a524 100644
|
|
|
26a25c |
--- a/relay/Makefile.am
|
|
|
26a25c |
+++ b/relay/Makefile.am
|
|
|
26a25c |
@@ -4,7 +4,7 @@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"'
|
|
|
26a25c |
|
|
|
26a25c |
sbin_PROGRAMS = dhcrelay
|
|
|
26a25c |
dhcrelay_SOURCES = dhcrelay.c
|
|
|
26a25c |
-dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
|
|
|
26a25c |
+dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
|
|
|
26a25c |
$(BIND_LIBS)
|
|
|
26a25c |
man_MANS = dhcrelay.8
|
|
|
26a25c |
EXTRA_DIST = $(man_MANS)
|
|
|
26a25c |
diff --git a/server/Makefile.am b/server/Makefile.am
|
|
|
26a25c |
index 30cf2b1..f56f310 100644
|
|
|
26a25c |
--- a/server/Makefile.am
|
|
|
26a25c |
+++ b/server/Makefile.am
|
|
|
26a25c |
@@ -15,8 +15,8 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \
|
|
|
26a25c |
dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c ldap_krb_helper.c
|
|
|
26a25c |
|
|
|
26a25c |
dhcpd_CFLAGS = $(LDAP_CFLAGS)
|
|
|
26a25c |
-dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
|
|
|
26a25c |
- ../dhcpctl/libdhcpctl.a $(BIND_LIBS) $(LDAP_LIBS)
|
|
|
26a25c |
+dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.la \
|
|
|
26a25c |
+ ../dhcpctl/libdhcpctl.la $(BIND_LIBS) $(LDAP_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5
|
|
|
26a25c |
EXTRA_DIST = $(man_MANS)
|
|
|
26a25c |
diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am
|
|
|
26a25c |
index 771de06..8d8a2c1 100644
|
|
|
26a25c |
--- a/server/tests/Makefile.am
|
|
|
26a25c |
+++ b/server/tests/Makefile.am
|
|
|
26a25c |
@@ -20,8 +20,8 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpars.c ../db.c ../class.c \
|
|
|
26a25c |
../ddns.c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c \
|
|
|
26a25c |
../ldap.c ../ldap_casa.c ../dhcpd.c ../leasechain.c
|
|
|
26a25c |
|
|
|
26a25c |
-DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
|
|
|
26a25c |
- $(top_builddir)/dhcpctl/libdhcpctl.a $(BIND_LIBS)
|
|
|
26a25c |
+DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.la \
|
|
|
26a25c |
+ $(top_builddir)/dhcpctl/libdhcpctl.la $(BIND_LIBS)
|
|
|
26a25c |
|
|
|
26a25c |
ATF_TESTS =
|
|
|
26a25c |
if HAVE_ATF
|