xref: /freebsd/sbin/dhclient/Makefile (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1955cf67bSBrooks Davis# $OpenBSD: Makefile,v 1.9 2004/05/04 12:52:05 henning Exp $
2955cf67bSBrooks Davis#
3955cf67bSBrooks Davis# Copyright (c) 1996, 1997 The Internet Software Consortium.
4955cf67bSBrooks Davis# All rights reserved.
5955cf67bSBrooks Davis#
6955cf67bSBrooks Davis# Redistribution and use in source and binary forms, with or without
7955cf67bSBrooks Davis# modification, are permitted provided that the following conditions
8955cf67bSBrooks Davis# are met:
9955cf67bSBrooks Davis#
10955cf67bSBrooks Davis# 1. Redistributions of source code must retain the above copyright
11955cf67bSBrooks Davis#    notice, this list of conditions and the following disclaimer.
12955cf67bSBrooks Davis# 2. Redistributions in binary form must reproduce the above copyright
13955cf67bSBrooks Davis#    notice, this list of conditions and the following disclaimer in the
14955cf67bSBrooks Davis#    documentation and/or other materials provided with the distribution.
15955cf67bSBrooks Davis# 3. Neither the name of The Internet Software Consortium nor the names of its
16955cf67bSBrooks Davis#    contributors may be used to endorse or promote products derived
17955cf67bSBrooks Davis#    from this software without specific prior written permission.
18955cf67bSBrooks Davis#
19955cf67bSBrooks Davis# THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND
20955cf67bSBrooks Davis# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
21955cf67bSBrooks Davis# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22955cf67bSBrooks Davis# FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
23955cf67bSBrooks Davis# THE INTERNET SOFTWARE CONSORTIUM OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24955cf67bSBrooks Davis# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25955cf67bSBrooks Davis# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26955cf67bSBrooks Davis# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27955cf67bSBrooks Davis# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28955cf67bSBrooks Davis# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29955cf67bSBrooks Davis# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
30955cf67bSBrooks Davis# OF THE POSSIBILITY OF SUCH DAMAGE.
31955cf67bSBrooks Davis#
32914345e3SDavid E. O'Brien
33c6063d0dSWarner Losh.include <src.opts.mk>
34c68de748SJulio Merino
3562e23a47SBrad DavisCONFS=	dhclient.conf
36*ab4bd667SEmmanuel VadotPACKAGE=dhclient
37955cf67bSBrooks DavisSRCS=	dhclient.c clparse.c alloc.c dispatch.c hash.c bpf.c options.c \
38955cf67bSBrooks Davis	tree.c conflex.c errwarn.c inet.c packet.c convert.c tables.c \
39955cf67bSBrooks Davis	parse.c privsep.c
40d52ccfe3SMurray Stokely
41955cf67bSBrooks DavisPROG=	dhclient
4243c56a9bSBrooks DavisSCRIPTS=dhclient-script
43f9ba39e9SRuslan ErmilovMAN=	dhclient.8 dhclient.conf.5 dhclient.leases.5 dhcp-options.5 \
44f9ba39e9SRuslan Ermilov	dhclient-script.8
4513eb765fSBaptiste DaroussinLIBADD=	util
46d52ccfe3SMurray Stokely
472c208ed8SEd Maste.if ${MK_DYNAMICROOT} == "no"
482c208ed8SEd Maste.warning ${PROG} built without libcasper support
492c208ed8SEd Maste.elif ${MK_CASPER} != "no" && !defined(RESCUE)
50cb003dd9SMariusz ZaborskiLIBADD+=        casper
51cb003dd9SMariusz ZaborskiLIBADD+=        cap_syslog
52cb003dd9SMariusz ZaborskiCFLAGS+=-DWITH_CASPER
53cb003dd9SMariusz Zaborski.endif
54cb003dd9SMariusz Zaborski
5579a1d195SAlan SomersNO_WCAST_ALIGN=	yes
56106d8391SRuslan Ermilov
57d511b20aSEnji CooperHAS_TESTS=
584b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
59c68de748SJulio Merino
60955cf67bSBrooks Davis.include <bsd.prog.mk>
61