Centralize the specification of the krb5 build tools.

This commit is contained in:
David E. O'Brien 2012-06-01 21:26:28 +00:00
parent 597646daac
commit b5ae8dbaa5
14 changed files with 11 additions and 19 deletions

View File

@ -46,3 +46,7 @@ CLEANFILES+= ${_ET}.h ${_ET}.c
.endfor
.endif # defined(SRCS)
ASN1_COMPILE= asn1_compile
MAKE_ROKEN= make-roken
SLC= slc

View File

@ -56,8 +56,6 @@ INCS+= krb5_asn1.h \
digest_asn1.h \
kx509_asn1.h
ASN1_COMPILE= asn1_compile
${GEN_CMS}: cms.asn1 cms.opt
${ASN1_COMPILE} --one-code-file \
--option-file=${.ALLSRC:M*.opt} ${.ALLSRC:M*.asn1} cms_asn1

View File

@ -38,8 +38,6 @@ CFLAGS+=-I${KRB5DIR}/lib/roken -I.
CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \
spnego_asn1_files spnego_asn1-template.c
ASN1_COMPILE= asn1_compile
${GEN}: spnego.asn1 spnego.opt
${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
${.ALLSRC:M*.asn1} spnego_asn1

View File

@ -84,8 +84,6 @@ GEN= asn1_Salt.x \
CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} hdb_asn1_files \
hdb_asn1-template.[ch]*
ASN1_COMPILE= asn1_compile
${GEN}: hdb.asn1
${ASN1_COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1

View File

@ -269,8 +269,6 @@ CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} ocsp_asn1_files \
INCS+= ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h
ASN1_COMPILE= asn1_compile
${GEN_OCSP}: ocsp.asn1 ocsp.opt
${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
${.ALLSRC:M*.asn1} ocsp_asn1

View File

@ -82,8 +82,6 @@ CFLAGS+=-I${KRB5DIR}/lib/roken -I.
CLEANFILES= roken.h
MAKE_ROKEN= make-roken
roken.h:
${MAKE_ROKEN} > ${.TARGET}

View File

@ -7,8 +7,6 @@ CFLAGS+=-I. -I${KRB5DIR}/lib/roken
CLEANFILES= roken.h
MAKE_ROKEN= make-roken
roken.h:
${MAKE_ROKEN} > ${.TARGET}

View File

@ -14,7 +14,7 @@ SRCS= kdigest.c \
kdigest-commands.h
kdigest-commands.h: kdigest-commands.in
slc ${.ALLSRC:M*.in}
${SLC} ${.ALLSRC:M*.in}
.for ext in c o
kdigest-commands.${ext}: kdigest-commands.h

View File

@ -15,7 +15,7 @@ CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/sl -I${KRB5DIR}/lib/vers -I.
CLEANFILES= roken.h
roken.h:
make-roken > ${.TARGET}
${MAKE_ROKEN} > ${.TARGET}
# ${.OBJDIR}/../make-roken/make-roken > ${.TARGET}

View File

@ -11,7 +11,7 @@ LDADD= -lhx509 -lroken -lasn1 -lcrypto -lcrypt ${LIBSL} ${LIBVERS} -ledit
SRCS= hxtool.c hxtool-commands.c hxtool-commands.h
hxtool-commands.h: hxtool-commands.in
slc ${.ALLSRC:M*.in}
${SLC} ${.ALLSRC:M*.in}
.for ext in c o
hxtool-commands.${ext}: hxtool-commands.h

View File

@ -39,7 +39,7 @@ LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
kadmin-commands.h: ${KRB5DIR}/kadmin/kadmin-commands.in
slc ${.ALLSRC:M*.in}
${SLC} ${.ALLSRC:M*.in}
.for ext in o c
kadmin-commands.${ext}: kadmin-commands.h

View File

@ -20,7 +20,7 @@ SRCS= kcc.c \
copy_cred_cache.c
kcc-commands.h: kcc-commands.in
slc ${.ALLSRC:M*.in}
${SLC} ${.ALLSRC:M*.in}
.for ext in c o
kcc-commands.${ext}: kcc-commands.h

View File

@ -14,7 +14,7 @@ LDADD= -lkadm5srv -lhdb -lkrb5 -lasn1 -lcrypto -lcrypt ${LIBSL} -lroken \
${LIBVERS} -ledit
iprop-commands.h: iprop-commands.in
slc ${.ALLSRC:M*.in}
${SLC} ${.ALLSRC:M*.in}
.for ext in c o
iprop-commands.${ext}: iprop-commands.h

View File

@ -25,7 +25,7 @@ LDADD= -lkadm5clnt -lkrb5 ${LIBSL} -lroken ${LIBVERS} \
.include <bsd.prog.mk>
ktutil-commands.h: ${KRB5DIR}/admin/ktutil-commands.in
slc ${.ALLSRC:M*.in}
${SLC} ${.ALLSRC:M*.in}
.for ext in c o
ktutil-commands.${ext}: ktutil-commands.h