summaryrefslogtreecommitdiff
path: root/crypto/external/bsd/libsaslc/lib/Makefile
blob: 4afa5db8ee14edb8a21e5707a1acd494f77b2af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# $NetBSD: Makefile,v 1.10 2023/05/09 02:19:32 christos Exp $

.include <bsd.own.mk>

USE_FORT?= yes

LIB=saslc
SRCS=
SRCS+= buffer.c
SRCS+= crypto.c
SRCS+= dict.c
SRCS+= error.c
SRCS+= list.c
SRCS+= mech.c
SRCS+= mech_anonymous.c
SRCS+= mech_crammd5.c
SRCS+= mech_digestmd5.c
SRCS+= mech_external.c
.if (${MKKERBEROS} != "no")
SRCS+= mech_gssapi.c
.endif
SRCS+= mech_login.c
SRCS+= mech_plain.c
SRCS+= msg.c
SRCS+= parser.c
SRCS+= saslc.c
SRCS+= xsess.c

COPTS.msg.c = -Wno-format-nonliteral

CPPFLAGS+=-I${EXTDIST}/include
WARNS?=4

MAN=libsaslc.3
MLINKS+=libsaslc.3 saslc.d.3 \
	libsaslc.3 saslc_alloc.3 \
	libsaslc.3 saslc_end.3 \
	libsaslc.3 saslc_init.3 \
	libsaslc.3 saslc_sess_init.3 \
	libsaslc.3 saslc_sess_end.3 \
	libsaslc.3 saslc_sess_getprop.3 \
	libsaslc.3 saslc_sess_setprop.3 \
	libsaslc.3 saslc_sess_cont.3 \
	libsaslc.3 saslc_sess_decode.3 \
	libsaslc.3 saslc_sess_encode.3 \
	libsaslc.3 saslc_sess_getmech.3 \
	libsaslc.3 saslc_sess_strerror.3 \
	libsaslc.3 saslc_strerror.3

EXTDIST=${.CURDIR}/../dist

.PATH: ${EXTDIST}/include ${EXTDIST}/src ${EXTDIST}/man

INCS+= saslc.h
INCSDIR=/usr/include

LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl
.if (${MKKERBEROS} != "no")
LIBDPLIBS+= gssapi ${NETBSDSRCDIR}/crypto/external/bsd/heimdal/lib/libgssapi

COPTS.crypto.c+=-Wno-error=deprecated-declarations
.endif

.include <bsd.lib.mk>