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