Home | History | Annotate | Line # | Download | only in lib
      1  1.13       kre # $NetBSD: Makefile,v 1.13 2025/07/14 10:25:50 kre Exp $
      2   1.1       agc 
      3   1.1       agc .include <bsd.own.mk>
      4   1.1       agc 
      5   1.1       agc USE_FORT?= yes
      6   1.1       agc 
      7   1.1       agc LIB=saslc
      8   1.2  christos SRCS=
      9   1.2  christos SRCS+= buffer.c
     10   1.2  christos SRCS+= crypto.c
     11   1.2  christos SRCS+= dict.c
     12   1.2  christos SRCS+= error.c
     13   1.2  christos SRCS+= list.c
     14   1.2  christos SRCS+= mech.c
     15   1.2  christos SRCS+= mech_anonymous.c
     16   1.2  christos SRCS+= mech_crammd5.c
     17   1.2  christos SRCS+= mech_digestmd5.c
     18   1.2  christos SRCS+= mech_external.c
     19   1.3      matt .if (${MKKERBEROS} != "no")
     20   1.2  christos SRCS+= mech_gssapi.c
     21   1.3      matt .endif
     22   1.2  christos SRCS+= mech_login.c
     23   1.2  christos SRCS+= mech_plain.c
     24   1.2  christos SRCS+= msg.c
     25   1.2  christos SRCS+= parser.c
     26   1.2  christos SRCS+= saslc.c
     27   1.2  christos SRCS+= xsess.c
     28   1.2  christos 
     29   1.5     joerg COPTS.msg.c = -Wno-format-nonliteral
     30   1.5     joerg 
     31   1.1       agc CPPFLAGS+=-I${EXTDIST}/include
     32   1.6    jruoho WARNS?=4
     33   1.6    jruoho 
     34   1.1       agc MAN=libsaslc.3
     35   1.7    jruoho MLINKS+=libsaslc.3 saslc.d.3 \
     36   1.7    jruoho 	libsaslc.3 saslc_alloc.3 \
     37   1.6    jruoho 	libsaslc.3 saslc_end.3 \
     38   1.6    jruoho 	libsaslc.3 saslc_init.3 \
     39   1.6    jruoho 	libsaslc.3 saslc_sess_init.3 \
     40   1.6    jruoho 	libsaslc.3 saslc_sess_end.3 \
     41   1.6    jruoho 	libsaslc.3 saslc_sess_getprop.3 \
     42   1.6    jruoho 	libsaslc.3 saslc_sess_setprop.3 \
     43   1.6    jruoho 	libsaslc.3 saslc_sess_cont.3 \
     44   1.6    jruoho 	libsaslc.3 saslc_sess_decode.3 \
     45   1.6    jruoho 	libsaslc.3 saslc_sess_encode.3 \
     46   1.6    jruoho 	libsaslc.3 saslc_sess_getmech.3 \
     47   1.6    jruoho 	libsaslc.3 saslc_sess_strerror.3 \
     48   1.6    jruoho 	libsaslc.3 saslc_strerror.3
     49   1.1       agc 
     50   1.1       agc EXTDIST=${.CURDIR}/../dist
     51   1.1       agc 
     52   1.1       agc .PATH: ${EXTDIST}/include ${EXTDIST}/src ${EXTDIST}/man
     53   1.1       agc 
     54   1.1       agc INCS+= saslc.h
     55   1.1       agc INCSDIR=/usr/include
     56   1.1       agc 
     57  1.13       kre LIBDPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
     58  1.13       kre LIBDPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl
     59   1.3      matt .if (${MKKERBEROS} != "no")
     60   1.4     elric LIBDPLIBS+= gssapi ${NETBSDSRCDIR}/crypto/external/bsd/heimdal/lib/libgssapi
     61  1.10  christos 
     62  1.11  christos .endif
     63  1.11  christos 
     64  1.10  christos COPTS.crypto.c+=-Wno-error=deprecated-declarations
     65   1.1       agc 
     66  1.12  christos EXPSYM_SRCS+=	saslc.common.expsym
     67  1.12  christos .if ${MKKERBEROS:Uno} != "no"
     68  1.12  christos EXPSYM_SRCS+=	saslc.kerberos.expsym
     69  1.12  christos .endif
     70  1.12  christos 
     71  1.12  christos LIB_EXPSYM=	saslc.expsym
     72  1.12  christos saslc.expsym: ${EXPSYM_SRCS}
     73  1.12  christos 	${_MKTARGET_CREATE}
     74  1.12  christos 	LC_ALL=C sort -m ${.ALLSRC} >${.TARGET}.tmp && \
     75  1.12  christos 	${MV} ${.TARGET}.tmp ${.TARGET}
     76  1.12  christos CLEANFILES+=	saslc.expsym saslc.expsym.tmp
     77  1.12  christos 
     78   1.1       agc .include <bsd.lib.mk>
     79