diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-05-23 00:03:06 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-05-23 00:03:06 +0000 |
commit | ee330a2d8d97e705bcdbb89670b81c09eb692e10 (patch) | |
tree | 1352455ae7499521c5ae97bb1cb7de412b94c543 /src/include | |
parent | 7dc48ce343aae54d4f1fb792a303761df52581e1 (diff) | |
download | krb5-ee330a2d8d97e705bcdbb89670b81c09eb692e10.zip krb5-ee330a2d8d97e705bcdbb89670b81c09eb692e10.tar.gz krb5-ee330a2d8d97e705bcdbb89670b81c09eb692e10.tar.bz2 |
install headers into include/krb5
Create include/krb5 directory, and put krb5.h and (k5-)locate.h there in the
build tree. Stub krb5.h in main include directory just includes krb5/krb5.h.
Update dependencies, and add dependencies in a couple Makefiles that didn't
have them.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18030 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/Makefile.in | 23 | ||||
-rw-r--r-- | src/include/k5-int.h | 2 | ||||
-rw-r--r-- | src/include/krb5.h | 7 | ||||
-rw-r--r-- | src/include/krb5/krb5.hin (renamed from src/include/krb5.hin) | 0 | ||||
-rw-r--r-- | src/include/krb5/locate.h (renamed from src/include/k5-locate.h) | 2 |
5 files changed, 23 insertions, 11 deletions
diff --git a/src/include/Makefile.in b/src/include/Makefile.in index e13fca6..7e0c3a1 100644 --- a/src/include/Makefile.in +++ b/src/include/Makefile.in @@ -7,11 +7,11 @@ KRB5RCTMPDIR= @KRB5_RCTMPDIR@ ##DOSBUILDTOP = .. NO_OUTPRE=1 -all-unix:: krb5.h +all-unix:: krb5/krb5.h all-unix:: maybe-make-db.h-@DB_HEADER_VERSION@ -generate-files-mac: krb5.h +generate-files-mac: krb5/krb5.h maybe-make-db.h-k5: : db.h will be installed by util/db2 @@ -71,10 +71,14 @@ osconf.h: $(OSCONFSRC) Makefile ##DOS##!endif ############################################################################### -krb5.h: $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h asn1_err.h - echo "/* This file is generated, please don't edit it directly. */" > krb5.h - cat $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h \ - asn1_err.h >> krb5.h +krb5/krb5.h: $(srcdir)/krb5/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h asn1_err.h + test -d krb5 || mkdir krb5 + if test -r krb5.h; then \ + if cmp -s krb5.h $(srcdir)/krb5.h; then :; else rm -f krb5.h; fi; \ + else :; fi + echo "/* This file is generated, please don't edit it directly. */" > krb5/krb5.h + cat $(srcdir)/krb5/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h \ + asn1_err.h >> krb5/krb5.h # # Build the error table include files: @@ -95,7 +99,7 @@ kv5m_err.h: $(SRCTOP)/lib/krb5/error_tables/kv5m_err.et krb524_err.h: $(SRCTOP)/lib/krb5/error_tables/krb524_err.et clean-unix:: - $(RM) krb5.h krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h \ + $(RM) krb5/krb5.h krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h \ asn1_err.h $(RM) $(ET_HEADERS) autoconf.stamp @@ -109,6 +113,7 @@ clean-windows:: clean:: $(RM) osconf.new $(BUILT_HEADERS) -install-headers-unix install:: krb5.h profile.h - $(INSTALL_DATA) krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5.h +install-headers-unix install:: krb5/krb5.h profile.h + $(INSTALL_DATA) $(srcdir)/krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5.h + $(INSTALL_DATA) krb5/krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)krb5.h $(INSTALL_DATA) profile.h $(DESTDIR)$(KRB5_INCDIR)$(S)profile.h diff --git a/src/include/k5-int.h b/src/include/k5-int.h index da7c3ae..da5d8b5 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -538,7 +538,7 @@ extern int krb5int_grow_addrlist (struct addrlist *, int); extern int krb5int_add_host_to_list (struct addrlist *, const char *, int, int, int, int); -#include "k5-locate.h" +#include <krb5/locate.h> krb5_error_code krb5int_locate_server (krb5_context, const krb5_data *realm, struct addrlist *, enum locate_service_type svc, diff --git a/src/include/krb5.h b/src/include/krb5.h new file mode 100644 index 0000000..d689651 --- /dev/null +++ b/src/include/krb5.h @@ -0,0 +1,7 @@ +/* The MIT Kerberos header file krb5.h used to live here. + + As of the 1.5 release, we're installing multiple Kerberos headers, + so they're all moving to a krb5/ subdirectory. This file is + present just to keep old software still compiling. Please update + your code to use the new path for the header. */ +#include <krb5/krb5.h> diff --git a/src/include/krb5.hin b/src/include/krb5/krb5.hin index d786e67..d786e67 100644 --- a/src/include/krb5.hin +++ b/src/include/krb5/krb5.hin diff --git a/src/include/k5-locate.h b/src/include/krb5/locate.h index a49c79a..552369c 100644 --- a/src/include/k5-locate.h +++ b/src/include/krb5/locate.h @@ -1,6 +1,6 @@ #ifndef K5_PLUGIN_H_INCLUDED #define K5_PLUGIN_H_INCLUDED -#include "krb5.h" +#include <krb5/krb5.h> enum locate_service_type { locate_service_kdc = 1, |