1 # $FreeBSD: src/kerberos5/Makefile.inc,v 1.24 2004/12/21 09:33:44 ru Exp $
2 # $DragonFly: src/kerberos5/Makefile.inc,v 1.7 2005/07/14 18:02:33 joerg Exp $
6 KRB5DIR= ${.CURDIR}/../../../crypto/heimdal-0.6.3
8 CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include
11 .if defined(WITH_OPENLDAP)
12 OPENLDAPBASE?= /usr/local
13 LDAPLDADD= -lldap -llber
14 LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
15 LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1
16 LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib
19 .if exists(${.OBJDIR}/../../lib/libvers)
20 LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a
22 LIBVERS= ${.CURDIR}/../../lib/libvers/libvers.a
25 .if exists(${.OBJDIR}/../../lib/libsl)
26 LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a
28 LIBSL= ${.CURDIR}/../../lib/libsl/libsl.a
31 MAKEPRINTVERSION=${.OBJDIR}/../../tools/make-print-version/make-print-version.nx
32 MAKEROKEN= ${.OBJDIR}/../../tools/make-roken/make-roken.nx
33 ASN1COMPILE= ${.OBJDIR}/../../tools/asn1_compile/asn1_compile.nx
38 ${KRB5DIR}/lib/asn1/asn1_err.et \
39 ${KRB5DIR}/lib/hdb/hdb_err.et \
40 ${KRB5DIR}/lib/kadm5/kadm5_err.et \
41 ${KRB5DIR}/lib/krb5/heim_err.et \
42 ${KRB5DIR}/lib/krb5/k524_err.et \
43 ${KRB5DIR}/lib/krb5/krb5_err.et
47 .if ${SRCS:M${_ET}.[ch]} != ""
48 .ORDER: ${_ET}.c ${_ET}.h
49 ${_ET}.c ${_ET}.h: ${ET}
51 CLEANFILES+= ${_ET}.h ${_ET}.c