Update the kerberos5 build framework to work with heimdal 0.6.3.
[dragonfly.git] / kerberos5 / Makefile.inc
CommitLineData
8a443844
EN
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.6 2005/01/16 14:25:45 eirikn Exp $
984263bc 3
8a443844 4NO_LINT=
984263bc 5
8a443844 6KRB5DIR= ${.CURDIR}/../../../crypto/heimdal-0.6.3
984263bc 7
8a443844
EN
8CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include
9CFLAGS+= -DINET6
984263bc 10
8a443844
EN
11.if defined(WITH_OPENLDAP)
12OPENLDAPBASE?= /usr/local
13LDAPLDADD= -lldap -llber
14LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
15LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1
16LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib
984263bc
MD
17.endif
18
19.if exists(${.OBJDIR}/../../lib/libvers)
8a443844 20LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a
984263bc 21.else
8a443844 22LIBVERS= ${.CURDIR}/../../lib/libvers/libvers.a
984263bc
MD
23.endif
24
8a443844
EN
25.if exists(${.OBJDIR}/../../lib/libsl)
26LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a
984263bc 27.else
8a443844 28LIBSL= ${.CURDIR}/../../lib/libsl/libsl.a
984263bc
MD
29.endif
30
8a443844
EN
31.if exists(${.OBJDIR}/../../tools/make-print-version/make-print-version)
32MAKEPRINTVERSION=${.OBJDIR}/../../tools/make-print-version/make-print-version
33.elif exists(${.OBJDIR}/../../bintools/make-print-version/make-print-version)
34MAKEPRINTVERSION=${.OBJDIR}/../../bintools/make-print-version/make-print-version
984263bc 35.else
8a443844 36MAKEPRINTVERSION=make-print-version
984263bc 37.endif
8a443844
EN
38.if exists(${.OBJDIR}/../../tools/make-roken/make-roken)
39MAKEROKEN= ${.OBJDIR}/../../tools/make-roken/make-roken
40.elif exists(${.OBJDIR}/../../bintools/make-roken/make-roken)
41MAKEROKEN= ${.OBJDIR}/../../bintools/make-roken/make-roken
984263bc 42.else
8a443844 43MAKEROKEN= make-roken
984263bc 44.endif
8a443844
EN
45.if exists(${.OBJDIR}/../../tools/asn1_compile/asn1_compile)
46ASN1COMPILE= ${.OBJDIR}/../../tools/asn1_compile/asn1_compile
47.elif exists(${.OBJDIR}/../../bintools/asn1_compile/asn1_compile)
48ASN1COMPILE= ${.OBJDIR}/../../bintools/asn1_compile/asn1_compile
984263bc 49.else
8a443844 50ASN1COMPILE= asn1_compile
984263bc
MD
51.endif
52
8a443844
EN
53.if defined(SRCS)
54
55ETSRCS= \
56 ${KRB5DIR}/lib/asn1/asn1_err.et \
57 ${KRB5DIR}/lib/hdb/hdb_err.et \
58 ${KRB5DIR}/lib/kadm5/kadm5_err.et \
59 ${KRB5DIR}/lib/krb5/heim_err.et \
60 ${KRB5DIR}/lib/krb5/k524_err.et \
61 ${KRB5DIR}/lib/krb5/krb5_err.et
62
63.for ET in ${ETSRCS}
64.for _ET in ${ET:T:R}
65.if ${SRCS:M${_ET}.[ch]} != ""
66.ORDER: ${_ET}.c ${_ET}.h
67${_ET}.c ${_ET}.h: ${ET}
68 compile_et ${.ALLSRC}
69CLEANFILES+= ${_ET}.h ${_ET}.c
984263bc 70.endif
8a443844
EN
71.endfor
72.endfor
984263bc 73
8a443844 74.endif defined(SRCS)