Added new bsd.incs.mk which handles installing of header files

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".
This commit is contained in:
Ruslan Ermilov
2002-05-12 16:01:00 +00:00
parent 26e5d4d14f
commit c7b111cba8
51 changed files with 215 additions and 374 deletions
+1 -11
View File
@@ -4,13 +4,12 @@ DISTRIBUTION?= krb5
.if !defined(INCLUDEOBJDIR)
INCLUDEDIR= ${.CURDIR}/../../include
KRB4DIR= ${.CURDIR}/../../../crypto/kerberosIV
KRB5DIR= ${.CURDIR}/../../../crypto/heimdal
ROKENDIR= ${.CURDIR}/../../lib/libroken
TELNETDIR= ${.CURDIR}/../../../crypto/telnet
CFLAGS+=-Wall -I${INCLUDEDIR} -I${INCLUDEOBJDIR} -DHAVE_CONFIG_H
CFLAGS+=-Wall -I${INCLUDEOBJDIR} -DHAVE_CONFIG_H
.if defined(MAKE_KERBEROS4)
CFLAGS+=-DKRB5_KRB4_COMPAT -DKRB4
@@ -148,14 +147,6 @@ k524_err.c k524_err.h: \
CLEANFILES+=k524_err.h k524_err.c k524_err.et
.if defined(INCLUDES)
beforeinstall: ${INCLUDES}
.for INC in ${INCLUDES}
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${INC} ${DESTDIR}/usr/include
.endfor
.endif
roken.h: make-roken
./make-roken > tmp.h ;\
if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
@@ -168,7 +159,6 @@ CLEANFILES+= make-roken.c make-roken roken.h
.else
INCLUDEDIR= ${.CURDIR}/../../include
KRB4DIR= ${.CURDIR}/../../crypto/kerberosIV
KRB5DIR= ${.CURDIR}/../../crypto/heimdal
ROKENDIR= ${.CURDIR}/../../lib/libroken
+1 -1
View File
@@ -63,7 +63,7 @@ GEN= \
asn1_TransitedEncoding.x \
asn1_UNSIGNED.x
INCLUDES=krb5_asn1.h asn1_err.h
INCS= krb5_asn1.h asn1_err.h
.include <bsd.lib.mk>
+1 -3
View File
@@ -50,10 +50,8 @@ SRCS= \
wrap.c \
address_to_krb5addr.c
INCLUDES=${KRB5DIR}/lib/gssapi/gssapi.h heim_err.h krb5_err.h k524_err.h
INCS= gssapi.h heim_err.h krb5_err.h k524_err.h
.include <bsd.lib.mk>
.PATH: ${KRB5DIR}/lib/gssapi
beforedepend all: heim_err.h krb5_err.h k524_err.h
+2 -4
View File
@@ -111,8 +111,8 @@ SRCS= \
heim_err.c \
heim_err.h
INCLUDES=${KRB5DIR}/lib/krb5/krb5.h ${.CURDIR}/../../include/krb5-types.h \
${KRB5DIR}/lib/krb5/krb5-protos.h heim_err.h krb5_err.h k524_err.h
INCS= krb5.h ${.CURDIR}/../../include/krb5-types.h \
krb5-protos.h heim_err.h krb5_err.h k524_err.h
MAN3= \
krb5.3 \
@@ -152,5 +152,3 @@ MAN8= \
.PATH: ${KRB5DIR}/lib/krb5
.PATH: ${KRB5DIR}/lib/des
beforedepend all: asn1_err.h krb5_err.h k524_err.h
+1 -1
View File
@@ -58,7 +58,7 @@ SRCS= \
strupr.c \
roken.h
INCLUDES= roken.h ${KRB5DIR}/lib/roken/roken-common.h
INCS= roken.h ${KRB5DIR}/lib/roken/roken-common.h
.include <bsd.lib.mk>
+1 -1
View File
@@ -20,7 +20,7 @@ CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA -I${TELNETDIR}
CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
INCS= ${TELNETDIR}/arpa/telnet.h
INCDIR= /usr/include/arpa
INCSDIR= ${INCLUDEDIR}/arpa
.include <bsd.lib.mk>
+1 -1
View File
@@ -10,7 +10,7 @@ krb5-config: krb5-config.in
-e "s,@prefix\@,/,g" \
-e "s,@exec_prefix\@,/,g" \
-e "s,@libdir\@,${LIBDIR},g" \
-e "s,@includedir\@,${INCDIR},g" \
-e "s,@includedir\@,${INCLUDEDIR},g" \
-e "s,@LIB_crypt\@,-lcrypt,g" \
-e "s,@LIB_dbopen\@,,g" \
-e "s,@LIB_des_appl\@,-lcrypto,g" \