xref: /freebsd/kerberos5/Makefile.inc (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1c6063d0dSWarner Losh.include <src.opts.mk>
2f6092768SWarner Losh
3ab7a2947SRuslan ErmilovNO_LINT=
4eb9e1f54SMark Murray
54c3e79ceSEnji CooperKRB5DIR=	${SRCTOP}/crypto/heimdal
6eb9e1f54SMark Murray
74c3e79ceSEnji CooperCFLAGS+=	-DHAVE_CONFIG_H -I${.CURDIR:H:H}/include
8d12b18b9SMark Murray
9e4456411SJohn BaldwinWARNS?=		1
104f009328SAlex RichardsonCWARNFLAGS.clang+=	-Wno-absolute-value
11e4456411SJohn Baldwin
12*cb2f2faaSJessica Clarke.if ${MK_OPENLDAP} != "no" && !defined(COMPAT_LIBCOMPAT)
13bdf56035SMichael ReifenbergerOPENLDAPBASE?=	/usr/local
1411bf3600SRuslan ErmilovLDAPLDADD=	-lldap -llber
1511bf3600SRuslan ErmilovLDAPDPADD=	${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
16782ed6d3SHajimu UMEMOTOLDAPCFLAGS=	-I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
1734d2e76aSHajimu UMEMOTOLDAPLDFLAGS=	-L${OPENLDAPBASE}/lib -rpath ${OPENLDAPBASE}/lib
18eb9e1f54SMark Murray.endif
19eb9e1f54SMark Murray
2011bf3600SRuslan Ermilov.if defined(SRCS)
21eb9e1f54SMark Murray
2211bf3600SRuslan ErmilovETSRCS=	\
2311bf3600SRuslan Ermilov	${KRB5DIR}/lib/asn1/asn1_err.et \
2411bf3600SRuslan Ermilov	${KRB5DIR}/lib/hdb/hdb_err.et \
2511bf3600SRuslan Ermilov	${KRB5DIR}/lib/kadm5/kadm5_err.et \
2611bf3600SRuslan Ermilov	${KRB5DIR}/lib/krb5/heim_err.et \
2711bf3600SRuslan Ermilov	${KRB5DIR}/lib/krb5/k524_err.et \
2833f12199SDoug Rabson	${KRB5DIR}/lib/krb5/krb5_err.et \
2933f12199SDoug Rabson	${KRB5DIR}/lib/krb5/krb_err.et \
30ae771770SStanislav Sedov	${KRB5DIR}/lib/hx509/hx509_err.et \
31ae771770SStanislav Sedov	${KRB5DIR}/lib/wind/wind_err.et \
32ae771770SStanislav Sedov	${KRB5DIR}/lib/ntlm/ntlm_err.et
33eb9e1f54SMark Murray
34474da3c3SEnji Cooper.if ${MK_GSSAPI} != "no"
35474da3c3SEnji CooperETSRCS+=	${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et
36474da3c3SEnji Cooper.endif
37474da3c3SEnji Cooper
3811bf3600SRuslan Ermilov.for ET in ${ETSRCS}
3911bf3600SRuslan Ermilov.for _ET in ${ET:T:R}
4011bf3600SRuslan Ermilov.if ${SRCS:M${_ET}.[ch]} != ""
41bd831db6SSimon J. Gerraty.ORDER: ${_ET}.h ${_ET}.c
4292edc966SBryan Drewery${_ET}.c: .NOMETA
43359ca97cSBryan Drewery${_ET}.h ${_ET}.c: ${ET}
4411bf3600SRuslan Ermilov	compile_et ${.ALLSRC}
4511bf3600SRuslan ErmilovCLEANFILES+=	${_ET}.h ${_ET}.c
46eb9e1f54SMark Murray.endif
4711bf3600SRuslan Ermilov.endfor
4811bf3600SRuslan Ermilov.endfor
4911bf3600SRuslan Ermilov
50b7ca7813SWarner Losh.endif # defined(SRCS)
51b5ae8dbaSDavid E. O'Brien
52b5ae8dbaSDavid E. O'BrienASN1_COMPILE=	asn1_compile
53b5ae8dbaSDavid E. O'BrienMAKE_ROKEN=	make-roken
54b5ae8dbaSDavid E. O'BrienSLC=		slc
55