ee3960cba1
Add tne necessary Makefiles and header files to facilitate building MIT KRB5 as part of buildworld. Nothing will build until the WITH_MITKRB5/MK_MITKRB5 option has been plumbed in Makefile.inc1. Before any changes to Makefile.inc1 are made to enable MIT KRB5, additional commits to other affected software will need to be committed. krb5/Makefile was inspired by kerberos5/Makefile. The Makefiles in krb5/util and krb5/lib were inspired by those in lib/libc and in lib/ncurses. Differential revision: https://reviews.freebsd.org/D50695 Sponsored by: The FreeBSD Foundation
31 lines
1.2 KiB
Makefile
31 lines
1.2 KiB
Makefile
#
|
|
# SPDX-License-Idendifier: BSD-2-Clause
|
|
#
|
|
# Copyright (c) 2025 FreeBSD Foundation
|
|
#
|
|
# This sofware was developed by Cy Schubert <cy@FreeBSD.org>
|
|
# under sponsorship from the FreeBSD Foundation.
|
|
#
|
|
|
|
GEN_GSSAPI_ERR_GENERIC= gssapi_err_generic.et
|
|
GEN_GSSAPI_ERR_GENERIC_C= ${GEN_GSSAPI_ERR_GENERIC:S/.et$/.c/}
|
|
GEN_GSSAPI_ERR_GENERIC_H= ${GEN_GSSAPI_ERR_GENERIC:S/.et$/.h/}
|
|
CLEANFILES+= ${GEN_GSSAPI_ERR_GENERIC_C} ${GEN_GSSAPI_ERR_GENERIC_H}
|
|
GGEN+= ${GEN_GSSAPI_ERR_GENERIC_C}
|
|
GGENI+= ${GEN_GSSAPI_ERR_GENERIC_H}
|
|
|
|
${GEN_GSSAPI_ERR_GENERIC:[2..-1]}: .NOMETA
|
|
${GEN_GSSAPI_ERR_GENERIC_H}: ${GEN_GSSAPI_ERR_GENERIC}
|
|
rm -f ${PFX}-et-h-${.PREFIX}.et ${PFX}-et-h-${.PREFIX}.c ${PFX}-et-h-${.PREFIX}.h
|
|
cp ${.ALLSRC} ${PFX}-et-h-${.PREFIX}.et
|
|
${COMPILE_ET} ${PFX}-et-h-${.PREFIX}.et
|
|
mv ${PFX}-et-h-${.PREFIX}.h ${.PREFIX}.h
|
|
rm -f ${PFX}-et-h-${.PREFIX}.et ${PFX}-et-h-${.PREFIX}.h
|
|
|
|
${GEN_GSSAPI_ERR_GENERIC_C}: ${GEN_GSSAPI_ERR_GENERIC}
|
|
rm -f ${PFX}-et-c-${.PREFIX}.et ${PFX}-et-c-${.PREFIX}.c ${PFX}-et-c-${.PREFIX}.h
|
|
cp ${.ALLSRC} ${PFX}-et-c-${.PREFIX}.et
|
|
${COMPILE_ET} ${PFX}-et-c-${.PREFIX}.et
|
|
mv ${PFX}-et-c-${.PREFIX}.c ${.PREFIX}.c
|
|
rm -f ${PFX}-et-c-${.PREFIX}.et ${PFX}-et-c-${.PREFIX}.c
|