1# $FreeBSD$ 2 3NO_LINT= 4 5KRB5DIR= ${.CURDIR}/../../../crypto/heimdal 6 7CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include 8 9.if defined(WITH_OPENLDAP) && !defined(COMPAT_32BIT) 10OPENLDAPBASE?= /usr/local 11LDAPLDADD= -lldap -llber 12LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;} 13LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1 14LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib 15.endif 16 17LIBHEIMIPCC= ${.OBJDIR}/../../lib/libheimipcc/libheimipcc.a 18LIBHEIMIPCS= ${.OBJDIR}/../../lib/libheimipcs/libheimipcs.a 19LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a 20LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a 21 22.if defined(SRCS) 23 24ETSRCS= \ 25 ${KRB5DIR}/lib/asn1/asn1_err.et \ 26 ${KRB5DIR}/lib/hdb/hdb_err.et \ 27 ${KRB5DIR}/lib/kadm5/kadm5_err.et \ 28 ${KRB5DIR}/lib/krb5/heim_err.et \ 29 ${KRB5DIR}/lib/krb5/k524_err.et \ 30 ${KRB5DIR}/lib/krb5/krb5_err.et \ 31 ${KRB5DIR}/lib/krb5/krb_err.et \ 32 ${KRB5DIR}/lib/gssapi/krb5/gkrb5_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.for ET in ${ETSRCS} 38.for _ET in ${ET:T:R} 39.if ${SRCS:M${_ET}.[ch]} != "" 40.ORDER: ${_ET}.c ${_ET}.h 41${_ET}.c ${_ET}.h: ${ET} 42 compile_et ${.ALLSRC} 43CLEANFILES+= ${_ET}.h ${_ET}.c 44.endif 45.endfor 46.endfor 47 48.endif # defined(SRCS) 49 50ASN1_COMPILE= asn1_compile 51MAKE_ROKEN= make-roken 52SLC= slc 53