summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-25 03:16:53 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-25 03:16:53 +0000
commitf74cd6a71b113eae1cf5d3760c7a6260d3e0de41 (patch)
tree6fd45983b1676043de2f5bdade3bde4ca89b7506 /sbin/dhclient
parent27882ca9633faff94cb1cce521aa9fc9db805339 (diff)
downloadFreeBSD-src-f74cd6a71b113eae1cf5d3760c7a6260d3e0de41.zip
FreeBSD-src-f74cd6a71b113eae1cf5d3760c7a6260d3e0de41.tar.gz
Hook omshell(1) up to the build.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/Makefile5
-rw-r--r--sbin/dhclient/Makefile.inc6
-rw-r--r--sbin/dhclient/dhcpctl/Makefile15
-rw-r--r--sbin/dhclient/omshell/Makefile15
4 files changed, 40 insertions, 1 deletions
diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile
index d280ef7..9f2384f 100644
--- a/sbin/dhclient/Makefile
+++ b/sbin/dhclient/Makefile
@@ -1,7 +1,7 @@
# Makefile for ISC DHCP client.
# $FreeBSD$
-SUBDIR= common dst minires omapip client
+SUBDIR= common dst minires omapip dhcpctl client omshell
# Our directory structure confuses crunchgen, so we must explicitly
@@ -43,6 +43,9 @@ OBJS+= omapip/alloc.o omapip/array.o omapip/auth.o omapip/buffer.o \
omapip/mrtrace.o omapip/protocol.o omapip/result.o \
omapip/support.o omapip/toisc.o omapip/trace.o
+# dhcpctl
+OBJS+= dhcpctl/dhcpctl.o dhcpctl/callback.o dhcpctl/remote.o
+
# src/release/Makefile (release.4) tries to invokes this makefile with
# the target set to the list of all objects defined above. This
# top-level Makefile doesn't actually know how to build those objects
diff --git a/sbin/dhclient/Makefile.inc b/sbin/dhclient/Makefile.inc
index c707a8f..7b2738d 100644
--- a/sbin/dhclient/Makefile.inc
+++ b/sbin/dhclient/Makefile.inc
@@ -39,4 +39,10 @@ LIBDST= ${.OBJDIR}/../dst/libdst.a
LIBDST= ${.CURDIR}/../dst/libdst.a
.endif
+.if exists(${.OBJDIR}/../dhcpctl)
+LIBDHCPCTL= ${.OBJDIR}/../dhcpctl/libdhcpctl.a
+.else
+LIBDHCPCTL= ${.CURDIR}/../dhcpctl/libdhcpctl.a
+.endif
+
.include "../Makefile.inc"
diff --git a/sbin/dhclient/dhcpctl/Makefile b/sbin/dhclient/dhcpctl/Makefile
new file mode 100644
index 0000000..1f3ecbd
--- /dev/null
+++ b/sbin/dhclient/dhcpctl/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/dhcpctl
+
+LIB= dhcpctl
+INTERNALLIB= true
+
+SRCS= dhcpctl.c callback.c remote.c
+
+MAN= dhcpctl.3
+NOMAN= true
+
+.include <bsd.lib.mk>
diff --git a/sbin/dhclient/omshell/Makefile b/sbin/dhclient/omshell/Makefile
new file mode 100644
index 0000000..4bc5e70
--- /dev/null
+++ b/sbin/dhclient/omshell/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/dhcpctl
+
+PROG= omshell
+SRCS= omshell.c
+
+DPADD= ${LIBDHCP} ${LIBRES} ${LIBOMAPI} ${LIBDST} ${LIBDHCPCTL}
+LDADD= ${LIBDHCP} ${LIBRES} ${LIBOMAPI} ${LIBDST} ${LIBDHCPCTL}
+
+MAN= omshell.1
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud