xref: /freebsd/sbin/dhclient/Makefile (revision ec965063070e5753c166cf592c9336444b74720a)
1# $OpenBSD: Makefile,v 1.9 2004/05/04 12:52:05 henning Exp $
2# $FreeBSD$
3#
4# Copyright (c) 1996, 1997 The Internet Software Consortium.
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions
9# are met:
10#
11# 1. Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in the
15#    documentation and/or other materials provided with the distribution.
16# 3. Neither the name of The Internet Software Consortium nor the names of its
17#    contributors may be used to endorse or promote products derived
18#    from this software without specific prior written permission.
19#
20# THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND
21# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
22# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23# FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
24# THE INTERNET SOFTWARE CONSORTIUM OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
25# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
31# OF THE POSSIBILITY OF SUCH DAMAGE.
32#
33
34.include <src.opts.mk>
35
36CONFS=	dhclient.conf
37PACKAGE=dhclient
38SRCS=	dhclient.c clparse.c alloc.c dispatch.c hash.c bpf.c options.c \
39	tree.c conflex.c errwarn.c inet.c packet.c convert.c tables.c \
40	parse.c privsep.c
41
42PROG=	dhclient
43SCRIPTS=dhclient-script
44MAN=	dhclient.8 dhclient.conf.5 dhclient.leases.5 dhcp-options.5 \
45	dhclient-script.8
46LIBADD=	util
47
48.if ${MK_DYNAMICROOT} == "no"
49.warning ${PROG} built without libcasper support
50.elif ${MK_CASPER} != "no" && !defined(RESCUE)
51LIBADD+=        casper
52LIBADD+=        cap_syslog
53CFLAGS+=-DWITH_CASPER
54.endif
55
56NO_WCAST_ALIGN=	yes
57
58HAS_TESTS=
59SUBDIR.${MK_TESTS}+= tests
60
61.include <bsd.prog.mk>
62