2000-01-15 21:38:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.if !defined(DISTRIBUTION)
|
|
|
|
|
|
|
|
DISTRIBUTION= krb5
|
|
|
|
|
|
|
|
.if !defined(INCLUDEOBJDIR)
|
|
|
|
|
|
|
|
INCLUDEDIR= ${.CURDIR}/../../include
|
|
|
|
KRB4DIR= ${.CURDIR}/../../../crypto/kerberosIV
|
|
|
|
KRB5DIR= ${.CURDIR}/../../../crypto/heimdal
|
|
|
|
ROKENDIR= ${.CURDIR}/../../lib/libroken
|
2001-08-03 16:03:26 +00:00
|
|
|
TELNETDIR= ${.CURDIR}/../../../crypto/telnet
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2000-01-24 20:06:02 +00:00
|
|
|
CFLAGS+=-Wall -I${INCLUDEDIR} -I${INCLUDEOBJDIR} -DHAVE_CONFIG_H
|
|
|
|
|
2000-03-01 13:50:48 +00:00
|
|
|
.if defined(MAKE_KERBEROS4) && \
|
2000-03-23 14:56:47 +00:00
|
|
|
(${MAKE_KERBEROS4} == "YES" || ${MAKE_KERBEROS4} == "yes")
|
2000-03-01 13:50:48 +00:00
|
|
|
CFLAGS+=-DKRB5_KRB4_COMPAT -DKRB4
|
2000-01-24 20:06:02 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+=-DINET6
|
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
.if exists(${.OBJDIR}/../../include)
|
|
|
|
INCLUDEOBJDIR= ${.OBJDIR}/../../include
|
|
|
|
.else
|
|
|
|
INCLUDEOBJDIR= ${.CURDIR}/../../include
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libasn1)
|
|
|
|
ASN1OBJDIR= ${.OBJDIR}/../../lib/libasn1
|
|
|
|
.else
|
|
|
|
ASN1OBJDIR= ${.CURDIR}/../../lib/libasn1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libhdb)
|
|
|
|
HDBOBJDIR= ${.OBJDIR}/../../lib/libhdb
|
|
|
|
.else
|
|
|
|
HDBOBJDIR= ${.CURDIR}/../../lib/libhdb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libroken)
|
|
|
|
ROKENOBJDIR= ${.OBJDIR}/../../lib/libroken
|
|
|
|
.else
|
|
|
|
ROKENOBJDIR= ${.CURDIR}/../../lib/libroken
|
|
|
|
.endif
|
|
|
|
|
2001-02-13 16:57:04 +00:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libvers)
|
|
|
|
VERSOBJDIR= ${.OBJDIR}/../../lib/libvers
|
|
|
|
.else
|
|
|
|
VERSOBJDIR= ${.CURDIR}/../../lib/libvers
|
|
|
|
.endif
|
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libkrb4)
|
|
|
|
KRB4OBJDIR= ${.OBJDIR}/../../lib/libkrb4
|
|
|
|
.else
|
|
|
|
KRB4OBJDIR= ${.CURDIR}/../../lib/libkrb4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkrb5)
|
|
|
|
KRB5OBJDIR= ${.OBJDIR}/../../lib/libkrb5
|
|
|
|
.else
|
|
|
|
KRB5OBJDIR= ${.CURDIR}/../../lib/libkrb5
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkadm5clnt)
|
|
|
|
KADM5COBJDIR= ${.OBJDIR}/../../lib/libkadm5clnt
|
|
|
|
.else
|
|
|
|
KADM5COBJDIR= ${.CURDIR}/../../lib/libkadm5clnt
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkadm5srv)
|
|
|
|
KADM5SOBJDIR= ${.OBJDIR}/../../lib/libkadm5srv
|
|
|
|
.else
|
|
|
|
KADM5SOBJDIR= ${.CURDIR}/../../lib/libkadm5srv
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkafs5)
|
|
|
|
KAFS5OBJDIR= ${.OBJDIR}/../../lib/libkafs5
|
|
|
|
.else
|
|
|
|
KAFS5OBJDIR= ${.CURDIR}/../../lib/libkafs5
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkrb5util)
|
|
|
|
KRB5UTILOBJDIR= ${.OBJDIR}/../../lib/libkrb5util
|
|
|
|
.else
|
|
|
|
KRB5UTILOBJDIR= ${.CURDIR}/../../lib/libkrb5util
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkdb5)
|
|
|
|
KDB5OBJDIR= ${.OBJDIR}/../../lib/libkdb5
|
|
|
|
.else
|
|
|
|
KDB5OBJDIR= ${.CURDIR}/../../lib/libkdb5
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libsl)
|
|
|
|
SLOBJDIR= ${.OBJDIR}/../../lib/libsl
|
|
|
|
.else
|
|
|
|
SLOBJDIR= ${.CURDIR}/../../lib/libsl
|
|
|
|
.endif
|
|
|
|
|
2001-08-03 16:03:26 +00:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
|
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
|
|
.else
|
|
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
|
|
|
.endif
|
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
COMPILE_ET= compile_et
|
|
|
|
|
|
|
|
.ORDER: asn1_err.c asn1_err.h
|
|
|
|
asn1_err.c asn1_err.h: ${KRB5DIR}/lib/asn1/asn1_err.et
|
|
|
|
test -e ${.OBJDIR}/asn1_err.et || ln -sf ${.ALLSRC}
|
|
|
|
${COMPILE_ET} asn1_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=asn1_err.h asn1_err.c asn1_err.et
|
|
|
|
|
|
|
|
.ORDER: hdb_err.c hdb_err.h
|
|
|
|
hdb_err.c hdb_err.h: ${KRB5DIR}/lib/hdb/hdb_err.et
|
|
|
|
test -e ${.OBJDIR}/hdb_err.et || ln -sf ${.ALLSRC}
|
|
|
|
${COMPILE_ET} hdb_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=hdb_err.h hdb_err.c hdb_err.et
|
|
|
|
|
|
|
|
.ORDER: heim_err.c heim_err.h
|
|
|
|
heim_err.c heim_err.h: ${KRB5DIR}/lib/krb5/heim_err.et
|
|
|
|
test -e ${.OBJDIR}/heim_err.et || ln -sf ${.ALLSRC}
|
|
|
|
${COMPILE_ET} heim_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=heim_err.h heim_err.c heim_err.et
|
|
|
|
|
|
|
|
.ORDER: krb5_err.c krb5_err.h
|
|
|
|
krb5_err.c krb5_err.h: ${KRB5DIR}/lib/krb5/krb5_err.et
|
|
|
|
test -e ${.OBJDIR}/krb5_err.et || ln -sf ${.ALLSRC}
|
|
|
|
${COMPILE_ET} krb5_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=krb5_err.h krb5_err.c krb5_err.et
|
|
|
|
|
|
|
|
.ORDER: kadm5_err.c kadm5_err.h
|
|
|
|
kadm5_err.c kadm5_err.h: \
|
|
|
|
${KRB5DIR}/lib/kadm5/kadm5_err.et
|
|
|
|
test -e ${.OBJDIR}/kadm5_err.et || ln -sf ${.ALLSRC}
|
|
|
|
${COMPILE_ET} kadm5_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=kadm5_err.h kadm5_err.c kadm5_err.et
|
|
|
|
|
|
|
|
.if defined(INCLUDES)
|
|
|
|
beforeinstall: ${INCLUDES}
|
|
|
|
.for INC in ${INCLUDES}
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
2000-02-28 19:15:32 +00:00
|
|
|
${INC} ${DESTDIR}/usr/include
|
2000-01-15 21:38:08 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2000-02-24 21:15:14 +00:00
|
|
|
roken.h: make-roken
|
|
|
|
./make-roken > tmp.h ;\
|
|
|
|
if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
|
|
|
|
else rm -f roken.h; mv tmp.h roken.h; fi
|
|
|
|
|
|
|
|
make-roken.c: ${KRB5DIR}/lib/roken/roken.awk ${KRB5DIR}/lib/roken/roken.h.in
|
|
|
|
awk -f ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
CLEANFILES+= make-roken.c make-roken roken.h
|
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
.else
|
|
|
|
|
|
|
|
INCLUDEDIR= ${.CURDIR}/../../include
|
|
|
|
KRB4DIR= ${.CURDIR}/../../crypto/kerberosIV
|
|
|
|
KRB5DIR= ${.CURDIR}/../../crypto/heimdal
|
|
|
|
ROKENDIR= ${.CURDIR}/../../lib/libroken
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|