Deleted Added
full compact
Makefile.inc (287208) Makefile.inc (287216)
1# $FreeBSD: head/kerberos5/Makefile.inc 287208 2015-08-27 15:03:34Z ume $
1# $FreeBSD: head/kerberos5/Makefile.inc 287216 2015-08-27 17:16:18Z ume $
2
3.include <src.opts.mk>
4
5NO_LINT=
6
7KRB5DIR= ${.CURDIR}/../../../crypto/heimdal
8
9CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include
10
11.if ${MK_OPENLDAP} != "no" && !defined(COMPAT_32BIT)
12OPENLDAPBASE?= /usr/local
13LDAPLDADD= -lldap -llber
14LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
15LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
16LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -rpath ${OPENLDAPBASE}/lib
2
3.include <src.opts.mk>
4
5NO_LINT=
6
7KRB5DIR= ${.CURDIR}/../../../crypto/heimdal
8
9CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include
10
11.if ${MK_OPENLDAP} != "no" && !defined(COMPAT_32BIT)
12OPENLDAPBASE?= /usr/local
13LDAPLDADD= -lldap -llber
14LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
15LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
16LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -rpath ${OPENLDAPBASE}/lib
17LDFLAGS+= ${LDAPLDFLAGS}
18.endif
19
20.if defined(SRCS)
21
22ETSRCS= \
23 ${KRB5DIR}/lib/asn1/asn1_err.et \
24 ${KRB5DIR}/lib/hdb/hdb_err.et \
25 ${KRB5DIR}/lib/kadm5/kadm5_err.et \
26 ${KRB5DIR}/lib/krb5/heim_err.et \
27 ${KRB5DIR}/lib/krb5/k524_err.et \
28 ${KRB5DIR}/lib/krb5/krb5_err.et \
29 ${KRB5DIR}/lib/krb5/krb_err.et \
30 ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et \
31 ${KRB5DIR}/lib/hx509/hx509_err.et \
32 ${KRB5DIR}/lib/wind/wind_err.et \
33 ${KRB5DIR}/lib/ntlm/ntlm_err.et
34
35.for ET in ${ETSRCS}
36.for _ET in ${ET:T:R}
37.if ${SRCS:M${_ET}.[ch]} != ""
38.ORDER: ${_ET}.h ${_ET}.c
39${_ET}.c ${_ET}.h: ${ET}
40 compile_et ${.ALLSRC}
41CLEANFILES+= ${_ET}.h ${_ET}.c
42.endif
43.endfor
44.endfor
45
46.endif # defined(SRCS)
47
48ASN1_COMPILE= asn1_compile
49MAKE_ROKEN= make-roken
50SLC= slc
17.endif
18
19.if defined(SRCS)
20
21ETSRCS= \
22 ${KRB5DIR}/lib/asn1/asn1_err.et \
23 ${KRB5DIR}/lib/hdb/hdb_err.et \
24 ${KRB5DIR}/lib/kadm5/kadm5_err.et \
25 ${KRB5DIR}/lib/krb5/heim_err.et \
26 ${KRB5DIR}/lib/krb5/k524_err.et \
27 ${KRB5DIR}/lib/krb5/krb5_err.et \
28 ${KRB5DIR}/lib/krb5/krb_err.et \
29 ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et \
30 ${KRB5DIR}/lib/hx509/hx509_err.et \
31 ${KRB5DIR}/lib/wind/wind_err.et \
32 ${KRB5DIR}/lib/ntlm/ntlm_err.et
33
34.for ET in ${ETSRCS}
35.for _ET in ${ET:T:R}
36.if ${SRCS:M${_ET}.[ch]} != ""
37.ORDER: ${_ET}.h ${_ET}.c
38${_ET}.c ${_ET}.h: ${ET}
39 compile_et ${.ALLSRC}
40CLEANFILES+= ${_ET}.h ${_ET}.c
41.endif
42.endfor
43.endfor
44
45.endif # defined(SRCS)
46
47ASN1_COMPILE= asn1_compile
48MAKE_ROKEN= make-roken
49SLC= slc