1999-08-28 03:35:59 +02:00
|
|
|
# $FreeBSD$
|
1997-09-24 22:37:15 +02:00
|
|
|
|
|
|
|
.if !defined(DISTRIBUTION)
|
|
|
|
|
1999-09-20 00:00:58 +02:00
|
|
|
DISTRIBUTION= krb4
|
1997-09-24 22:37:15 +02:00
|
|
|
|
|
|
|
.if !defined(INCLUDEOBJDIR)
|
|
|
|
|
|
|
|
KRB4DIR= ${.CURDIR}/../../../crypto/kerberosIV
|
|
|
|
TELNETDIR= ${.CURDIR}/../../../crypto/telnet
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../include)
|
|
|
|
INCLUDEOBJDIR= ${.OBJDIR}/../../include
|
|
|
|
.else
|
|
|
|
INCLUDEOBJDIR= ${.CURDIR}/../../include
|
|
|
|
.endif
|
|
|
|
|
1999-09-20 00:00:58 +02:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libacl)
|
|
|
|
ROKENOBJDIR= ${.OBJDIR}/../../../kerberosIV/lib/libroken
|
|
|
|
.else
|
|
|
|
ROKENOBJDIR= ${.CURDIR}/../../../kerberosIV/lib/libroken
|
|
|
|
.endif
|
|
|
|
|
1997-09-24 22:37:15 +02:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libacl)
|
|
|
|
ACLOBJDIR= ${.OBJDIR}/../../lib/libacl
|
|
|
|
.else
|
|
|
|
ACLOBJDIR= ${.CURDIR}/../../lib/libacl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkadm)
|
|
|
|
KADMOBJDIR= ${.OBJDIR}/../../lib/libkadm
|
|
|
|
.else
|
|
|
|
KADMOBJDIR= ${.CURDIR}/../../lib/libkadm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkafs)
|
|
|
|
KAFSOBJDIR= ${.OBJDIR}/../../lib/libkafs
|
|
|
|
.else
|
|
|
|
KAFSOBJDIR= ${.CURDIR}/../../lib/libkafs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkdb)
|
|
|
|
KDBOBJDIR= ${.OBJDIR}/../../lib/libkdb
|
|
|
|
.else
|
|
|
|
KDBOBJDIR= ${.CURDIR}/../../lib/libkdb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkrb)
|
|
|
|
KRBOBJDIR= ${.OBJDIR}/../../lib/libkrb
|
|
|
|
.else
|
|
|
|
KRBOBJDIR= ${.CURDIR}/../../lib/libkrb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libroken)
|
|
|
|
ROKENOBJDIR= ${.OBJDIR}/../../lib/libroken
|
|
|
|
.else
|
|
|
|
ROKENOBJDIR= ${.CURDIR}/../../lib/libroken
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libsl)
|
|
|
|
SLOBJDIR= ${.OBJDIR}/../../lib/libsl
|
|
|
|
.else
|
|
|
|
SLOBJDIR= ${.CURDIR}/../../lib/libsl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
2001-03-28 14:08:22 +02:00
|
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
1997-09-24 22:37:15 +02:00
|
|
|
.else
|
2001-03-28 14:08:22 +02:00
|
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
1997-09-24 22:37:15 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../include -Wall -DHAVE_CONFIG_H \
|
2000-12-30 00:43:23 +01:00
|
|
|
-I${INCLUDEOBJDIR} \
|
|
|
|
-DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\" \
|
|
|
|
-DLIBEXECDIR=\"/usr/libexec\"
|
1997-09-24 22:37:15 +02:00
|
|
|
|
1999-09-20 00:00:58 +02:00
|
|
|
protos.h: ${KRB4DIR}/include/protos.H
|
|
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
1997-09-24 22:37:15 +02:00
|
|
|
|
|
|
|
COMPILE_ET= compile_et
|
|
|
|
|
1998-03-26 17:57:36 +01:00
|
|
|
.ORDER: ${KADMOBJDIR}/kadm_err.c ${KADMOBJDIR}/kadm_err.h
|
1997-09-24 22:37:15 +02:00
|
|
|
${KADMOBJDIR}/kadm_err.c ${KADMOBJDIR}/kadm_err.h: ${KRB4DIR}/lib/kadm/kadm_err.et
|
1998-03-28 08:47:05 +01:00
|
|
|
test -e ${KADMOBJDIR}/kadm_err.et || ln -s ${.ALLSRC} ${KADMOBJDIR}
|
1997-09-24 22:37:15 +02:00
|
|
|
cd ${KADMOBJDIR}; ${COMPILE_ET} kadm_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=${KADMOBJDIR}/kadm_err.h ${KADMOBJDIR}/kadm_err.c ${KADMOBJDIR}/kadm_err.et
|
|
|
|
|
1998-03-26 17:57:36 +01:00
|
|
|
.ORDER: ${KRBOBJDIR}/krb_err.c ${KRBOBJDIR}/krb_err.h
|
1997-09-24 22:37:15 +02:00
|
|
|
${KRBOBJDIR}/krb_err.c ${KRBOBJDIR}/krb_err.h: ${KRB4DIR}/lib/krb/krb_err.et
|
1998-03-28 08:47:05 +01:00
|
|
|
test -e ${KRBOBJDIR}/krb_err.et || ln -s ${.ALLSRC} ${KRBOBJDIR}
|
1997-09-24 22:37:15 +02:00
|
|
|
cd ${KRBOBJDIR}; ${COMPILE_ET} krb_err.et
|
|
|
|
|
|
|
|
CLEANFILES+=${KRBOBJDIR}/krb_err.h ${KRBOBJDIR}/krb_err.c ${KRBOBJDIR}/krb_err.et
|
|
|
|
|
|
|
|
.if defined(INCLUDES)
|
|
|
|
beforeinstall: ${INCLUDES}
|
|
|
|
.for INC in ${INCLUDES}
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
|
|
${INC} ${DESTDIR}/usr/include
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
KRB4DIR= ${.CURDIR}/../../crypto/kerberosIV
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|