1# $FreeBSD$ 2 3DISTRIBUTION?= crypto 4NOLINT= true 5 6.if !defined(INCLUDEOBJDIR) 7 8KRB5DIR= ${.CURDIR}/../../../crypto/heimdal 9ROKENDIR= ${.CURDIR}/../../lib/libroken 10TELNETDIR= ${.CURDIR}/../../../crypto/telnet 11 12CFLAGS+=-I${INCLUDEOBJDIR} -DHAVE_CONFIG_H 13 14CFLAGS+=-DINET6 15 16.if exists(${.OBJDIR}/../../include) 17INCLUDEOBJDIR= ${.OBJDIR}/../../include 18.else 19INCLUDEOBJDIR= ${.CURDIR}/../../include 20.endif 21 22.if exists(${.OBJDIR}/../../lib/libasn1) 23ASN1OBJDIR= ${.OBJDIR}/../../lib/libasn1 24.else 25ASN1OBJDIR= ${.CURDIR}/../../lib/libasn1 26.endif 27 28.if exists(${.OBJDIR}/../../lib/libhdb) 29HDBOBJDIR= ${.OBJDIR}/../../lib/libhdb 30.else 31HDBOBJDIR= ${.CURDIR}/../../lib/libhdb 32.endif 33 34.if exists(${.OBJDIR}/../../lib/libroken) 35ROKENOBJDIR= ${.OBJDIR}/../../lib/libroken 36.else 37ROKENOBJDIR= ${.CURDIR}/../../lib/libroken 38.endif 39 40.if exists(${.OBJDIR}/../../lib/libvers) 41VERSOBJDIR= ${.OBJDIR}/../../lib/libvers 42.else 43VERSOBJDIR= ${.CURDIR}/../../lib/libvers 44.endif 45 46.if exists(${.OBJDIR}/../../lib/libkrb5) 47KRB5OBJDIR= ${.OBJDIR}/../../lib/libkrb5 48.else 49KRB5OBJDIR= ${.CURDIR}/../../lib/libkrb5 50.endif 51 52.if exists(${.OBJDIR}/../../lib/libkadm5clnt) 53KADM5COBJDIR= ${.OBJDIR}/../../lib/libkadm5clnt 54.else 55KADM5COBJDIR= ${.CURDIR}/../../lib/libkadm5clnt 56.endif 57 58.if exists(${.OBJDIR}/../../lib/libkadm5srv) 59KADM5SOBJDIR= ${.OBJDIR}/../../lib/libkadm5srv 60.else 61KADM5SOBJDIR= ${.CURDIR}/../../lib/libkadm5srv 62.endif 63 64.if exists(${.OBJDIR}/../../lib/libkafs5) 65KAFS5OBJDIR= ${.OBJDIR}/../../lib/libkafs5 66.else 67KAFS5OBJDIR= ${.CURDIR}/../../lib/libkafs5 68.endif 69 70.if exists(${.OBJDIR}/../../lib/libkrb5util) 71KRB5UTILOBJDIR= ${.OBJDIR}/../../lib/libkrb5util 72.else 73KRB5UTILOBJDIR= ${.CURDIR}/../../lib/libkrb5util 74.endif 75 76.if exists(${.OBJDIR}/../../lib/libkdb5) 77KDB5OBJDIR= ${.OBJDIR}/../../lib/libkdb5 78.else 79KDB5OBJDIR= ${.CURDIR}/../../lib/libkdb5 80.endif 81 82.if exists(${.OBJDIR}/../../lib/libsl) 83SLOBJDIR= ${.OBJDIR}/../../lib/libsl 84.else 85SLOBJDIR= ${.CURDIR}/../../lib/libsl 86.endif 87 88.if exists(${.OBJDIR}/../../lib/libtelnet) 89LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a 90.else 91LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a 92.endif 93 94COMPILE_ET= compile_et 95 96.ORDER: asn1_err.c asn1_err.h 97asn1_err.c asn1_err.h: ${KRB5DIR}/lib/asn1/asn1_err.et 98 test -e ${.OBJDIR}/asn1_err.et || ln -sf ${.ALLSRC} 99 ${COMPILE_ET} asn1_err.et 100 101CLEANFILES+=asn1_err.h asn1_err.c asn1_err.et 102 103.ORDER: hdb_err.c hdb_err.h 104hdb_err.c hdb_err.h: ${KRB5DIR}/lib/hdb/hdb_err.et 105 test -e ${.OBJDIR}/hdb_err.et || ln -sf ${.ALLSRC} 106 ${COMPILE_ET} hdb_err.et 107 108CLEANFILES+=hdb_err.h hdb_err.c hdb_err.et 109 110.ORDER: heim_err.c heim_err.h 111heim_err.c heim_err.h: ${KRB5DIR}/lib/krb5/heim_err.et 112 test -e ${.OBJDIR}/heim_err.et || ln -sf ${.ALLSRC} 113 ${COMPILE_ET} heim_err.et 114 115CLEANFILES+=heim_err.h heim_err.c heim_err.et 116 117.ORDER: krb5_err.c krb5_err.h 118krb5_err.c krb5_err.h: ${KRB5DIR}/lib/krb5/krb5_err.et 119 test -e ${.OBJDIR}/krb5_err.et || ln -sf ${.ALLSRC} 120 ${COMPILE_ET} krb5_err.et 121 122CLEANFILES+=krb5_err.h krb5_err.c krb5_err.et 123 124.ORDER: kadm5_err.c kadm5_err.h 125kadm5_err.c kadm5_err.h: \ 126 ${KRB5DIR}/lib/kadm5/kadm5_err.et 127 test -e ${.OBJDIR}/kadm5_err.et || ln -sf ${.ALLSRC} 128 ${COMPILE_ET} kadm5_err.et 129 130CLEANFILES+=kadm5_err.h kadm5_err.c kadm5_err.et 131 132.ORDER: k524_err.c k524_err.h 133k524_err.c k524_err.h: \ 134 ${KRB5DIR}/lib/krb5/k524_err.et 135 test -e ${.OBJDIR}/k524_err.et || ln -sf ${.ALLSRC} 136 ${COMPILE_ET} k524_err.et 137 138CLEANFILES+=k524_err.h k524_err.c k524_err.et 139 140roken.h: make-roken 141 ./make-roken > tmp.h ;\ 142 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ 143 else rm -f roken.h; mv tmp.h roken.h; fi 144 145make-roken.c: ${KRB5DIR}/lib/roken/roken.awk ${KRB5DIR}/lib/roken/roken.h.in 146 awk -f ${.ALLSRC} > ${.TARGET} 147 148CLEANFILES+= make-roken.c make-roken roken.h 149 150.else 151 152KRB5DIR= ${.CURDIR}/../../crypto/heimdal 153ROKENDIR= ${.CURDIR}/../../lib/libroken 154 155.endif 156