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 18.if exists(${.OBJDIR}/../../lib/libvers) 19LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a 20.else 21LIBVERS= ${.CURDIR}/../../lib/libvers/libvers.a 22.endif 23 24.if exists(${.OBJDIR}/../../lib/libsl) 25LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a 26.else 27LIBSL= ${.CURDIR}/../../lib/libsl/libsl.a 28.endif 29 30.if defined(SRCS) 31 32ETSRCS= \ 33 ${KRB5DIR}/lib/asn1/asn1_err.et \ 34 ${KRB5DIR}/lib/hdb/hdb_err.et \ 35 ${KRB5DIR}/lib/kadm5/kadm5_err.et \ 36 ${KRB5DIR}/lib/krb5/heim_err.et \ 37 ${KRB5DIR}/lib/krb5/k524_err.et \ 38 ${KRB5DIR}/lib/krb5/krb5_err.et 39 40.for ET in ${ETSRCS} 41.for _ET in ${ET:T:R} 42.if ${SRCS:M${_ET}.[ch]} != "" 43.ORDER: ${_ET}.c ${_ET}.h 44${_ET}.c ${_ET}.h: ${ET} 45 compile_et ${.ALLSRC} 46CLEANFILES+= ${_ET}.h ${_ET}.c 47.endif 48.endfor 49.endfor 50 51.endif defined(SRCS) 52