Makefile revision 243956
12519Sjjg# Copyright 1998 Juniper Networks, Inc.
23890Sanazarov# All rights reserved.
32519Sjjg#
42519Sjjg# Redistribution and use in source and binary forms, with or without
52519Sjjg# modification, are permitted provided that the following conditions
62519Sjjg# are met:
72519Sjjg# 1. Redistributions of source code must retain the above copyright
82519Sjjg#    notice, this list of conditions and the following disclaimer.
92519Sjjg# 2. Redistributions in binary form must reproduce the above copyright
102519Sjjg#    notice, this list of conditions and the following disclaimer in the
112519Sjjg#    documentation and/or other materials provided with the distribution.
122519Sjjg#
132519Sjjg# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
142519Sjjg# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
152519Sjjg# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
162519Sjjg# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
172519Sjjg# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
182519Sjjg# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
192519Sjjg# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
202519Sjjg# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
212519Sjjg# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
222519Sjjg# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
232519Sjjg# SUCH DAMAGE.
242519Sjjg#
252519Sjjg# $FreeBSD: head/lib/libradius/Makefile 243956 2012-12-06 19:00:37Z sem $
262587Saeremeev
272519Sjjg.include <bsd.own.mk>
282587Saeremeev
292587SaeremeevLIB=		radius
302587SaeremeevSRCS=		radlib.c
312519SjjgINCS=		radlib.h radlib_vs.h
322519SjjgCFLAGS+=	-Wall
332980SaeremeevSHLIB_MAJOR=	4
342519SjjgMAN=		libradius.3 radius.conf.5
352519Sjjg
362980SaeremeevMLINKS+=libradius.3 rad_acct_open.3 \
372519Sjjg	libradius.3 rad_add_server.3 \
382519Sjjg	libradius.3 rad_add_server_ex.3 \
392587Saeremeev	libradius.3 rad_auth_open.3 \
402587Saeremeev	libradius.3 rad_bind_to.3 \
412587Saeremeev	libradius.3 rad_close.3 \
422587Saeremeev	libradius.3 rad_config.3 \
432587Saeremeev	libradius.3 rad_continue_send_request.3 \
442587Saeremeev	libradius.3 rad_create_request.3 \
452980Saeremeev	libradius.3 rad_create_response.3 \
462980Saeremeev	libradius.3 rad_cvt_addr.3 \
472519Sjjg	libradius.3 rad_cvt_int.3 \
482519Sjjg	libradius.3 rad_cvt_string.3 \
492716Saeremeev	libradius.3 rad_demangle.3 \
502716Saeremeev	libradius.3 rad_demangle_mppe_key.3 \
512716Saeremeev	libradius.3 rad_get_attr.3 \
522860Saeremeev	libradius.3 rad_get_vendor_attr.3 \
532980Saeremeev	libradius.3 rad_init_send_request.3 \
542980Saeremeev	libradius.3 rad_put_addr.3 \
552716Saeremeev	libradius.3 rad_put_attr.3 \
562716Saeremeev	libradius.3 rad_put_int.3 \
572716Saeremeev	libradius.3 rad_put_message_authentic.3 \
582519Sjjg	libradius.3 rad_put_string.3 \
592519Sjjg	libradius.3 rad_put_vendor_addr.3 \
602716Saeremeev	libradius.3 rad_put_vendor_attr.3 \
612716Saeremeev	libradius.3 rad_put_vendor_int.3 \
622519Sjjg	libradius.3 rad_put_vendor_string.3 \
632519Sjjg	libradius.3 rad_receive_request.3 \
642716Saeremeev	libradius.3 rad_request_authenticator.3 \
652716Saeremeev	libradius.3 rad_send_request.3 \
662716Saeremeev	libradius.3 rad_send_response.3 \
672860Saeremeev	libradius.3 rad_server_open.3 \
682716Saeremeev	libradius.3 rad_server_secret.3 \
692716Saeremeev	libradius.3 rad_strerror.3
702716Saeremeev
712519SjjgWARNS?=		3
722519Sjjg
732716Saeremeev.if ${MK_OPENSSL} == "no"
742716SaeremeevDPADD=		${LIBMD}
752519SjjgLDADD=		-lmd
762519Sjjg.else
772716SaeremeevDPADD=		${LIBCRYPTO}
782716SaeremeevLDADD=		-lcrypto
792716SaeremeevCFLAGS+=	-DWITH_SSL
802716Saeremeev.endif
813294Salanb
822587Saeremeev.include <bsd.lib.mk>
832587Saeremeev