diff options
author | Magnus Holmberg <mho@cvs.openbsd.org> | 2003-05-17 05:20:19 +0000 |
---|---|---|
committer | Magnus Holmberg <mho@cvs.openbsd.org> | 2003-05-17 05:20:19 +0000 |
commit | b8447fde47683859139cfdc3ef1cfb426be8710a (patch) | |
tree | c7b405b9e8a5b8b54c8d6b4fc512285630d049a2 /lib/libkrb5 | |
parent | e77910898224b423e32baf4d900f502ce0eb148f (diff) |
Support for 'make includes'; ok hin@, millert@
Diffstat (limited to 'lib/libkrb5')
-rw-r--r-- | lib/libkrb5/Makefile | 61 | ||||
-rw-r--r-- | lib/libkrb5/Makefile.asn1.inc | 7 | ||||
-rw-r--r-- | lib/libkrb5/Makefile.common.inc | 8 | ||||
-rw-r--r-- | lib/libkrb5/Makefile.hdb.inc | 7 | ||||
-rw-r--r-- | lib/libkrb5/Makefile.kafs.inc | 5 | ||||
-rw-r--r-- | lib/libkrb5/Makefile.krb5.inc | 10 |
6 files changed, 71 insertions, 27 deletions
diff --git a/lib/libkrb5/Makefile b/lib/libkrb5/Makefile index cad2e152a9d..0ee365dd102 100644 --- a/lib/libkrb5/Makefile +++ b/lib/libkrb5/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2003/05/17 02:03:19 hin Exp $ +# $OpenBSD: Makefile,v 1.6 2003/05/17 05:20:18 mho Exp $ KRB5DIR= ${.CURDIR}/../../kerberosV .include "Makefile.common.inc" @@ -14,14 +14,57 @@ LIB = krb5 .include "Makefile.krb5.inc" includes: - @for i in $(INCLUDE_FILES); do \ - j="cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ - ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ - $$i ${DESTDIR}/usr/include/kerberosV"; \ - echo $$j; \ - pwd; \ - eval "$$j"; \ - done + @test -d ${DESTDIR}/usr/include/kerberosV || \ + mkdir ${DESTDIR}/usr/include/kerberosV + @echo -n ${DIR_KRB5INC}:; \ + cd ${DIR_KRB5INC}; for i in ${HDR_KRB5INC}; do \ + echo -n " $$i"; \ + cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 \ + -o ${BINOWN} -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include/kerberosV; done; \ + echo + @echo -n ${DIR_KRB5LIB}:; \ + cd ${DIR_KRB5LIB}; for i in ${HDR_KRB5LIB}; do \ + echo -n " $$i"; \ + cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 \ + -o ${BINOWN} -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include/kerberosV; done; \ + echo + @echo -n ${DIRKAFS}:; \ + cd ${DIR_KAFS}; for i in ${HDR_KAFS}; do \ + echo -n " $$i"; \ + cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 \ + -o ${BINOWN} -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include/kerberosV; done; \ + echo + @echo -n ${DIR_HDB}:; \ + cd ${DIR_HDB}; for i in ${HDR_HDB}; do \ + echo -n " $$i"; \ + cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 \ + -o ${BINOWN} -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include/kerberosV; done; \ + echo + @echo -n ${DIR_ASN1}:; \ + cd ${DIR_ASN1}; for i in ${HDR_ASN1}; do \ + echo -n " $$i"; \ + cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 \ + -o ${BINOWN} -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include/kerberosV; done; \ + echo + @echo -n ${.OBJDIR}:; \ + cd ${.OBJDIR}; for i in ${HDR_OBJ}; do \ + echo -n " $$i"; \ + cmp -s $$i ${DESTDIR}/usr/include/kerberosV/$$i || \ + ${INSTALL} ${INSTALL_COPY} -m 444 \ + -o ${BINOWN} -g $(BINGRP) $$i \ + ${DESTDIR}/usr/include/kerberosV; done; \ + echo + SHLIB_LINKS = kafs asn1 ALIB_LINKS = $(SHLIB_LINKS) hdb diff --git a/lib/libkrb5/Makefile.asn1.inc b/lib/libkrb5/Makefile.asn1.inc index 8fd7c36aaa0..d7492c07289 100644 --- a/lib/libkrb5/Makefile.asn1.inc +++ b/lib/libkrb5/Makefile.asn1.inc @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile.asn1.inc,v 1.1 2003/05/14 09:05:59 hin Exp $ +# $OpenBSD: Makefile.asn1.inc,v 1.2 2003/05/17 05:20:18 mho Exp $ .PATH: ${KRB5SRC}/lib/asn1 -INCLUDE_FILES+= krb5_asn1.h asn1_err.h \ - ${KRB5SRC}/lib/asn1/{der.h,asn1-common.h} +DIR_ASN1= ${KRB5SRC}/lib/asn1 +HDR_ASN1= der.h #asn1-common.h +HDR_OBJ+= krb5_asn1.h asn1_err.h includes: krb5_asn1.h asn1_err.h diff --git a/lib/libkrb5/Makefile.common.inc b/lib/libkrb5/Makefile.common.inc index 06e5f5c1fdd..7fb442e7150 100644 --- a/lib/libkrb5/Makefile.common.inc +++ b/lib/libkrb5/Makefile.common.inc @@ -1,16 +1,12 @@ -# $OpenBSD: Makefile.common.inc,v 1.1 2003/05/14 09:05:59 hin Exp $ +# $OpenBSD: Makefile.common.inc,v 1.2 2003/05/17 05:20:18 mho Exp $ KRB5SRC = ${KRB5DIR}/src -KRB4DIR = ${KRB5DIR}/../kerberosIV -KRB4SRC = ${KRB4DIR}/src - CFLAGS += -DHAVE_CONFIG_H -DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\"\ -DLIBEXECDIR=\"/usr/libexec\" -DSYSCONFDIR=\"/etc/kerberosV\" \ -I${DESTDIR}/usr/include/kerberosV \ - -I${DESTDIR}/usr/include/kerberosIV \ -I${KRB5DIR}/include -I${KRB5SRC}/lib/roken\ - -I${KRB5SRC}/include -I${KRB4SRC}/lib/sl + -I${KRB5SRC}/include -I${KRB5SRC}/lib/sl CFLAGS+= -Wall .include <bsd.own.mk> # for 'NOPIC' definition diff --git a/lib/libkrb5/Makefile.hdb.inc b/lib/libkrb5/Makefile.hdb.inc index 5b97c4660f5..32fc292315e 100644 --- a/lib/libkrb5/Makefile.hdb.inc +++ b/lib/libkrb5/Makefile.hdb.inc @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile.hdb.inc,v 1.1 2003/05/14 09:05:59 hin Exp $ +# $OpenBSD: Makefile.hdb.inc,v 1.2 2003/05/17 05:20:18 mho Exp $ -INCLUDE_FILES+= ${KRB5SRC}/lib/hdb/{hdb.h,hdb-protos.h,hdb-private.h} \ - hdb_err.h ${.CURDIR}/hdb_asn1.h +DIR_HDB= ${KRB5SRC}/lib/hdb +HDR_HDB= hdb.h hdb-protos.h hdb-private.h +HDR_OBJ+= hdb_err.h hdb_asn1.h includes: hdb_err.h hdb_asn1.h diff --git a/lib/libkrb5/Makefile.kafs.inc b/lib/libkrb5/Makefile.kafs.inc index fca38a7acbd..0d32d3ba8e9 100644 --- a/lib/libkrb5/Makefile.kafs.inc +++ b/lib/libkrb5/Makefile.kafs.inc @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile.kafs.inc,v 1.2 2003/05/15 04:16:10 hin Exp $ +# $OpenBSD: Makefile.kafs.inc,v 1.3 2003/05/17 05:20:18 mho Exp $ -INCLUDE_FILES+= ${KRB5SRC}/lib/kafs/kafs.h +DIR_KAFS= ${KRB5SRC}/lib/kafs +HDR_KAFS= kafs.h CFLAGS += -I${KRB5SRC}/lib/kafs diff --git a/lib/libkrb5/Makefile.krb5.inc b/lib/libkrb5/Makefile.krb5.inc index fd66d1d2d8c..0d2baaf8f7b 100644 --- a/lib/libkrb5/Makefile.krb5.inc +++ b/lib/libkrb5/Makefile.krb5.inc @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile.krb5.inc,v 1.2 2003/05/15 04:16:10 hin Exp $ +# $OpenBSD: Makefile.krb5.inc,v 1.3 2003/05/17 05:20:18 mho Exp $ -INCLUDE_FILES+= ${KRB5SRC}/lib/krb5/{krb5.h,krb5-protos.h,krb5-private.h} \ - ${KRB5DIR}/include/krb5-types.h \ - krb5_err.h heim_err.h k524_err.h +DIR_KRB5INC=${.CURDIR}/../../kerberosV/include +DIR_KRB5LIB=${KRB5SRC}/lib/krb5 +HDR_KRB5INC= krb5-types.h +HDR_KRB5LIB= krb5.h krb5-protos.h krb5-private.h +HDR_OBJ+= krb5_err.h heim_err.h k524_err.h includes: krb5_err.h heim_err.h k524_err.h |