8e77093d64
via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release".
99 lines
2.5 KiB
Makefile
99 lines
2.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
DISTRIBUTION?= krb4
|
|
|
|
.if !defined(INCLUDEOBJDIR)
|
|
|
|
KRB4DIR= ${.CURDIR}/../../../crypto/kerberosIV
|
|
TELNETDIR= ${.CURDIR}/../../../crypto/telnet
|
|
|
|
.if exists(${.OBJDIR}/../../include)
|
|
INCLUDEOBJDIR= ${.OBJDIR}/../../include
|
|
.else
|
|
INCLUDEOBJDIR= ${.CURDIR}/../../include
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libacl)
|
|
ROKENOBJDIR= ${.OBJDIR}/../../../kerberosIV/lib/libroken
|
|
.else
|
|
ROKENOBJDIR= ${.CURDIR}/../../../kerberosIV/lib/libroken
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libacl)
|
|
ACLOBJDIR= ${.OBJDIR}/../../lib/libacl
|
|
.else
|
|
ACLOBJDIR= ${.CURDIR}/../../lib/libacl
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkadm)
|
|
KADMOBJDIR= ${.OBJDIR}/../../lib/libkadm
|
|
.else
|
|
KADMOBJDIR= ${.CURDIR}/../../lib/libkadm
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkafs)
|
|
KAFSOBJDIR= ${.OBJDIR}/../../lib/libkafs
|
|
.else
|
|
KAFSOBJDIR= ${.CURDIR}/../../lib/libkafs
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkdb)
|
|
KDBOBJDIR= ${.OBJDIR}/../../lib/libkdb
|
|
.else
|
|
KDBOBJDIR= ${.CURDIR}/../../lib/libkdb
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libkrb)
|
|
KRBOBJDIR= ${.OBJDIR}/../../lib/libkrb
|
|
.else
|
|
KRBOBJDIR= ${.CURDIR}/../../lib/libkrb
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libroken)
|
|
ROKENOBJDIR= ${.OBJDIR}/../../lib/libroken
|
|
.else
|
|
ROKENOBJDIR= ${.CURDIR}/../../lib/libroken
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libsl)
|
|
SLOBJDIR= ${.OBJDIR}/../../lib/libsl
|
|
.else
|
|
SLOBJDIR= ${.CURDIR}/../../lib/libsl
|
|
.endif
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
.else
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
|
.endif
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../include -Wall -DHAVE_CONFIG_H \
|
|
-I${INCLUDEOBJDIR} \
|
|
-DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\" \
|
|
-DLIBEXECDIR=\"/usr/libexec\"
|
|
|
|
protos.h: ${KRB4DIR}/include/protos.H
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
|
|
|
COMPILE_ET= compile_et
|
|
|
|
.ORDER: ${KADMOBJDIR}/kadm_err.c ${KADMOBJDIR}/kadm_err.h
|
|
${KADMOBJDIR}/kadm_err.c ${KADMOBJDIR}/kadm_err.h: ${KRB4DIR}/lib/kadm/kadm_err.et
|
|
test -e ${KADMOBJDIR}/kadm_err.et || ln -s ${.ALLSRC} ${KADMOBJDIR}
|
|
cd ${KADMOBJDIR}; ${COMPILE_ET} kadm_err.et
|
|
|
|
CLEANFILES+=${KADMOBJDIR}/kadm_err.h ${KADMOBJDIR}/kadm_err.c ${KADMOBJDIR}/kadm_err.et
|
|
|
|
.ORDER: ${KRBOBJDIR}/krb_err.c ${KRBOBJDIR}/krb_err.h
|
|
${KRBOBJDIR}/krb_err.c ${KRBOBJDIR}/krb_err.h: ${KRB4DIR}/lib/krb/krb_err.et
|
|
test -e ${KRBOBJDIR}/krb_err.et || ln -s ${.ALLSRC} ${KRBOBJDIR}
|
|
cd ${KRBOBJDIR}; ${COMPILE_ET} krb_err.et
|
|
|
|
CLEANFILES+=${KRBOBJDIR}/krb_err.h ${KRBOBJDIR}/krb_err.c ${KRBOBJDIR}/krb_err.et
|
|
|
|
.else
|
|
|
|
KRB4DIR= ${.CURDIR}/../../crypto/kerberosIV
|
|
|
|
.endif
|