1# $FreeBSD$ 2 3NO_LINT= 4 5KRB5DIR= ${.CURDIR}/../../../crypto/heimdal 6 7CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include 8CFLAGS+= -DINET6 9 10.if defined(WITH_OPENLDAP) 11OPENLDAPBASE?= /usr/local 12LDAPLDADD= -lldap -llber 13LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;} 14LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 15LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib 16.endif 17 18LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a 19LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a 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 31.for ET in ${ETSRCS} 32.for _ET in ${ET:T:R} 33.if ${SRCS:M${_ET}.[ch]} != "" 34.ORDER: ${_ET}.c ${_ET}.h 35${_ET}.c ${_ET}.h: ${ET} 36 compile_et ${.ALLSRC} 37CLEANFILES+= ${_ET}.h ${_ET}.c 38.endif 39.endfor 40.endfor 41 42.endif # defined(SRCS) 43