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