summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2002-02-19 12:57:18 +0000
committermurray <murray@FreeBSD.org>2002-02-19 12:57:18 +0000
commit91492d0f97fe1d093f725bdbe8abad77ab8a7722 (patch)
treee3e13797bea07b4b249642874f917fc0b7c21411
parentdfedbefce858fb5578a49dc4b51ff6435f8e84f0 (diff)
downloadFreeBSD-src-91492d0f97fe1d093f725bdbe8abad77ab8a7722.zip
FreeBSD-src-91492d0f97fe1d093f725bdbe8abad77ab8a7722.tar.gz
Makefile glue for DHCP v3 import.
-rw-r--r--sbin/dhclient/Makefile23
-rw-r--r--sbin/dhclient/Makefile.inc37
-rw-r--r--sbin/dhclient/client/Makefile23
-rw-r--r--sbin/dhclient/common/Makefile23
-rw-r--r--sbin/dhclient/dst/Makefile20
-rw-r--r--sbin/dhclient/minires/Makefile21
-rw-r--r--sbin/dhclient/omapip/Makefile24
7 files changed, 151 insertions, 20 deletions
diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile
index 45c2a0f..8df6e75 100644
--- a/sbin/dhclient/Makefile
+++ b/sbin/dhclient/Makefile
@@ -1,23 +1,6 @@
+# Makefile for ISC DHCP client.
# $FreeBSD$
-DIST_DIR= ${.CURDIR}/../../contrib/isc-dhcp
+SUBDIR= common dst minires omapip client
-.PATH: ${DIST_DIR}/client ${DIST_DIR}/common
-
-PROG= dhclient
-SRCS= clparse.c dhclient.c
-SRCS+= alloc.c bpf.c conflex.c convert.c dispatch.c errwarn.c ethernet.c \
- hash.c icmp.c inet.c inet_addr.c memory.c nit.c options.c packet.c \
- parse.c print.c raw.c socket.c tables.c tree.c upf.c
-
-CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR}
-CFLAGS+= -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn
-WARNS= 0
-
-SCRIPTS= scripts/freebsd
-SCRIPTSNAME= dhclient-script
-
-MAN= dhclient.conf.5 dhclient.leases.5 dhcp-options.5
-MAN+= dhclient.8 dhclient-script.8
-
-.include <bsd.prog.mk>
+.include <bsd.subdir.mk>
diff --git a/sbin/dhclient/Makefile.inc b/sbin/dhclient/Makefile.inc
new file mode 100644
index 0000000..cca723d
--- /dev/null
+++ b/sbin/dhclient/Makefile.inc
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+MAINTAINER= murray
+WARNS= 0
+
+CLIENTBINDIR= /sbin
+RUNDIR= /var/run
+ETCDIR= /etc
+DBDIR= /var/db
+
+MANFILTER= perl -pe 's\#DBDIR\#${DBDIR}\#g;s\#ETCDIR\#${ETCDIR}\#g;s\#CLIENTBINDIR\#${CLIENTBINDIR}\#g;s\#RUNDIR\#${RUNDIR}\#g;'
+
+.if exists(${.OBJDIR}/../common)
+LIBDHCP= ${.OBJDIR}/../common/libdhcp.a
+.else
+LIBDHCP= ${.CURDIR}/../common/libdhcp.a
+.endif
+
+.if exists(${.OBJDIR}/../minires)
+LIBRES= ${.OBJDIR}/../minires/libres.a
+.else
+LIBRES= ${.CURDIR}/../minires/libres.a
+.endif
+
+.if exists(${.OBJDIR}/../omapip)
+LIBOMAPI= ${.OBJDIR}/../omapip/libomapi.a
+.else
+LIBOMAPI= ${.CURDIR}/../omapip/libomapi.a
+.endif
+
+.if exists(${.OBJDIR}/../dst)
+LIBDST= ${.OBJDIR}/../dst/libdst.a
+.else
+LIBDST= ${.CURDIR}/../dst/libdst.a
+.endif
+
+.include "../Makefile.inc"
diff --git a/sbin/dhclient/client/Makefile b/sbin/dhclient/client/Makefile
new file mode 100644
index 0000000..37d8b3d
--- /dev/null
+++ b/sbin/dhclient/client/Makefile
@@ -0,0 +1,23 @@
+# client
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/client
+
+PROG= dhclient
+SRCS= clparse.c dhclient.c
+
+CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR}
+CFLAGS+= -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn
+
+DPADD= ${LIBDHCP} ${LIBRES} ${LIBOMAPI} ${LIBDST}
+LDADD= ${LIBDHCP} ${LIBRES} ${LIBOMAPI} ${LIBDST}
+
+SCRIPTS= scripts/freebsd
+SCRIPTSNAME= dhclient-script
+
+MAN= dhclient.conf.5 dhclient.leases.5
+MAN+= dhclient.8 dhclient-script.8
+
+.include <bsd.prog.mk>
diff --git a/sbin/dhclient/common/Makefile b/sbin/dhclient/common/Makefile
new file mode 100644
index 0000000..c34c8a3
--- /dev/null
+++ b/sbin/dhclient/common/Makefile
@@ -0,0 +1,23 @@
+# common
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/common
+
+LIB= dhcp
+NOPROFILE= true
+INTERNALLIB= true
+NOPIC= true
+INTERNALSTATICLIB= true
+
+SRCS= raw.c parse.c nit.c icmp.c dispatch.c conflex.c upf.c bpf.c \
+ socket.c lpf.c dlpi.c packet.c tr.c ethernet.c memory.c print.c \
+ options.c inet.c tree.c tables.c alloc.c fddi.c ctrace.c dns.c \
+ resolv.c execute.c discover.c comapi.c
+
+CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR}
+
+MAN= dhcp-eval.5 dhcp-options.5
+
+.include <bsd.lib.mk>
diff --git a/sbin/dhclient/dst/Makefile b/sbin/dhclient/dst/Makefile
new file mode 100644
index 0000000..41dcf6a
--- /dev/null
+++ b/sbin/dhclient/dst/Makefile
@@ -0,0 +1,20 @@
+# dst
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/dst
+
+LIB= dst
+NOPROFILE= true
+INTERNALLIB= true
+NOPIC= true
+INTERNALSTATICLIB= true
+NOMAN= true
+
+SRCS= dst_support.c dst_api.c hmac_link.c md5_dgst.c base64.c prandom.c
+
+#CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -DHMAC_MD5 -DMINIRES_LIB
+CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR} -DHMAC_MD5 -DMINIRES_LIB
+
+.include <bsd.lib.mk>
diff --git a/sbin/dhclient/minires/Makefile b/sbin/dhclient/minires/Makefile
new file mode 100644
index 0000000..4ee0d03
--- /dev/null
+++ b/sbin/dhclient/minires/Makefile
@@ -0,0 +1,21 @@
+# minires
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/minires
+
+LIB= res
+NOPROFILE= true
+INTERNALLIB= true
+NOPIC= true
+INTERNALSTATICLIB= true
+NOMAN= true
+
+SRCS= res_mkupdate.c res_init.c res_update.c res_send.c res_comp.c \
+ res_sendsigned.c res_findzonecut.c res_query.c res_mkquery.c \
+ ns_date.c ns_parse.c ns_sign.c ns_name.c ns_samedomain.c ns_verify.c
+
+CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR} -DHMAC_MD5 -DMINIRES_LIB
+
+.include <bsd.lib.mk>
diff --git a/sbin/dhclient/omapip/Makefile b/sbin/dhclient/omapip/Makefile
new file mode 100644
index 0000000..faee8f3
--- /dev/null
+++ b/sbin/dhclient/omapip/Makefile
@@ -0,0 +1,24 @@
+# omapip
+# $FreeBSD$
+
+DIST_DIR= ${.CURDIR}/../../../contrib/isc-dhcp
+
+.PATH: ${DIST_DIR}/omapip
+
+LIB= omapi
+NOPROFILE= true
+INTERNALLIB= true
+NOPIC= true
+INTERNALSTATICLIB= true
+NOMAN= true
+
+SRCS= protocol.c buffer.c alloc.c result.c connection.c errwarn.c \
+ listener.c dispatch.c generic.c support.c handle.c message.c \
+ convert.c hash.c auth.c inet_addr.c array.c trace.c mrtrace.c \
+ toisc.c
+
+CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR}
+
+MAN= omapi.3
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud