e4456411a8
Existing work is underway to import a newer version of heimdal, but this patchset gets us to a fully working tree to enable more wide spread testing of OpenSSL 1.1 for now. I've also enabled WARNS=1 for kerberos (which is the reason for the change in libroken). Having -Werror enabled was useful during the 1.1 updates and we probably should have warnings enabled by default for kerberos anyway. This passes make tinderbox, and I have also done some very light runtime testing on amd64. Reviewed by: bjk, jkim, emaste Differential Revision: https://reviews.freebsd.org/D17276
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
NO_LINT=
|
|
|
|
KRB5DIR= ${SRCTOP}/crypto/heimdal
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR:H:H}/include
|
|
|
|
WARNS?= 1
|
|
CWARNFLAGS.clang+= -Wno-error=absolute-value
|
|
CWARNFLAGS+= -Wno-error=deprecated-declarations
|
|
|
|
.if ${MK_OPENLDAP} != "no" && !defined(COMPAT_32BIT)
|
|
OPENLDAPBASE?= /usr/local
|
|
LDAPLDADD= -lldap -llber
|
|
LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
|
|
LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
|
|
LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -rpath ${OPENLDAPBASE}/lib
|
|
.endif
|
|
|
|
.if defined(SRCS)
|
|
|
|
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 \
|
|
${KRB5DIR}/lib/krb5/krb5_err.et \
|
|
${KRB5DIR}/lib/krb5/krb_err.et \
|
|
${KRB5DIR}/lib/hx509/hx509_err.et \
|
|
${KRB5DIR}/lib/wind/wind_err.et \
|
|
${KRB5DIR}/lib/ntlm/ntlm_err.et
|
|
|
|
.if ${MK_GSSAPI} != "no"
|
|
ETSRCS+= ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et
|
|
.endif
|
|
|
|
.for ET in ${ETSRCS}
|
|
.for _ET in ${ET:T:R}
|
|
.if ${SRCS:M${_ET}.[ch]} != ""
|
|
.ORDER: ${_ET}.h ${_ET}.c
|
|
${_ET}.c: .NOMETA
|
|
${_ET}.h ${_ET}.c: ${ET}
|
|
compile_et ${.ALLSRC}
|
|
CLEANFILES+= ${_ET}.h ${_ET}.c
|
|
.endif
|
|
.endfor
|
|
.endfor
|
|
|
|
.endif # defined(SRCS)
|
|
|
|
ASN1_COMPILE= asn1_compile
|
|
MAKE_ROKEN= make-roken
|
|
SLC= slc
|