1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5NO_LINT= 6 7KRB5DIR= ${SRCTOP}/crypto/heimdal 8 9CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR:H:H}/include 10 11WARNS?= 1 12CWARNFLAGS.clang+= -Wno-error=absolute-value 13CWARNFLAGS+= -Wno-error=deprecated-declarations 14 15.if ${MK_OPENLDAP} != "no" && !defined(COMPAT_32BIT) 16OPENLDAPBASE?= /usr/local 17LDAPLDADD= -lldap -llber 18LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;} 19LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1 20LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -rpath ${OPENLDAPBASE}/lib 21.endif 22 23.if defined(SRCS) 24 25ETSRCS= \ 26 ${KRB5DIR}/lib/asn1/asn1_err.et \ 27 ${KRB5DIR}/lib/hdb/hdb_err.et \ 28 ${KRB5DIR}/lib/kadm5/kadm5_err.et \ 29 ${KRB5DIR}/lib/krb5/heim_err.et \ 30 ${KRB5DIR}/lib/krb5/k524_err.et \ 31 ${KRB5DIR}/lib/krb5/krb5_err.et \ 32 ${KRB5DIR}/lib/krb5/krb_err.et \ 33 ${KRB5DIR}/lib/hx509/hx509_err.et \ 34 ${KRB5DIR}/lib/wind/wind_err.et \ 35 ${KRB5DIR}/lib/ntlm/ntlm_err.et 36 37.if ${MK_GSSAPI} != "no" 38ETSRCS+= ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et 39.endif 40 41.for ET in ${ETSRCS} 42.for _ET in ${ET:T:R} 43.if ${SRCS:M${_ET}.[ch]} != "" 44.ORDER: ${_ET}.h ${_ET}.c 45${_ET}.c: .NOMETA 46${_ET}.h ${_ET}.c: ${ET} 47 compile_et ${.ALLSRC} 48CLEANFILES+= ${_ET}.h ${_ET}.c 49.endif 50.endfor 51.endfor 52 53.endif # defined(SRCS) 54 55ASN1_COMPILE= asn1_compile 56MAKE_ROKEN= make-roken 57SLC= slc 58