2000-01-15 21:38:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2014-04-24 23:17:31 +00:00
|
|
|
|
2004-12-21 09:33:47 +00:00
|
|
|
NO_LINT=
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2017-03-04 11:34:36 +00:00
|
|
|
KRB5DIR= ${SRCTOP}/crypto/heimdal
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2017-03-04 11:34:36 +00:00
|
|
|
CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR:H:H}/include
|
2000-01-24 20:06:02 +00:00
|
|
|
|
2018-10-05 16:35:24 +00:00
|
|
|
WARNS?= 1
|
2021-01-27 10:41:57 +00:00
|
|
|
CWARNFLAGS.clang+= -Wno-absolute-value
|
2018-10-05 16:35:24 +00:00
|
|
|
|
2014-04-24 23:17:31 +00:00
|
|
|
.if ${MK_OPENLDAP} != "no" && !defined(COMPAT_32BIT)
|
2003-06-18 09:11:34 +00:00
|
|
|
OPENLDAPBASE?= /usr/local
|
2004-01-31 08:15:57 +00:00
|
|
|
LDAPLDADD= -lldap -llber
|
|
|
|
LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
|
2011-12-05 16:38:52 +00:00
|
|
|
LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
|
2015-08-27 15:03:34 +00:00
|
|
|
LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -rpath ${OPENLDAPBASE}/lib
|
2000-01-15 21:38:08 +00:00
|
|
|
.endif
|
|
|
|
|
2004-01-31 08:15:57 +00:00
|
|
|
.if defined(SRCS)
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2004-01-31 08:15:57 +00:00
|
|
|
ETSRCS= \
|
|
|
|
${KRB5DIR}/lib/asn1/asn1_err.et \
|
|
|
|
${KRB5DIR}/lib/hdb/hdb_err.et \
|
|
|
|
${KRB5DIR}/lib/kadm5/kadm5_err.et \
|
|
|
|
${KRB5DIR}/lib/krb5/heim_err.et \
|
|
|
|
${KRB5DIR}/lib/krb5/k524_err.et \
|
2008-05-07 13:53:12 +00:00
|
|
|
${KRB5DIR}/lib/krb5/krb5_err.et \
|
|
|
|
${KRB5DIR}/lib/krb5/krb_err.et \
|
2012-03-22 08:48:42 +00:00
|
|
|
${KRB5DIR}/lib/hx509/hx509_err.et \
|
|
|
|
${KRB5DIR}/lib/wind/wind_err.et \
|
|
|
|
${KRB5DIR}/lib/ntlm/ntlm_err.et
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2017-01-02 19:03:01 +00:00
|
|
|
.if ${MK_GSSAPI} != "no"
|
|
|
|
ETSRCS+= ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et
|
|
|
|
.endif
|
|
|
|
|
2004-01-31 08:15:57 +00:00
|
|
|
.for ET in ${ETSRCS}
|
|
|
|
.for _ET in ${ET:T:R}
|
|
|
|
.if ${SRCS:M${_ET}.[ch]} != ""
|
2015-06-11 21:13:05 +00:00
|
|
|
.ORDER: ${_ET}.h ${_ET}.c
|
2016-06-03 19:25:41 +00:00
|
|
|
${_ET}.c: .NOMETA
|
2016-06-14 16:19:59 +00:00
|
|
|
${_ET}.h ${_ET}.c: ${ET}
|
2004-01-31 08:15:57 +00:00
|
|
|
compile_et ${.ALLSRC}
|
|
|
|
CLEANFILES+= ${_ET}.h ${_ET}.c
|
2000-01-15 21:38:08 +00:00
|
|
|
.endif
|
2004-01-31 08:15:57 +00:00
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
|
2005-04-18 22:03:21 +00:00
|
|
|
.endif # defined(SRCS)
|
2012-06-01 21:26:28 +00:00
|
|
|
|
|
|
|
ASN1_COMPILE= asn1_compile
|
|
|
|
MAKE_ROKEN= make-roken
|
|
|
|
SLC= slc
|