1*7f2fe78bSCy Schubertmydir=include 2*7f2fe78bSCy SchubertBUILDTOP=$(REL).. 3*7f2fe78bSCy SchubertKRB5RCTMPDIR= @KRB5_RCTMPDIR@ 4*7f2fe78bSCy Schubert##DOSBUILDTOP = .. 5*7f2fe78bSCy SchubertNO_OUTPRE=1 6*7f2fe78bSCy Schubert 7*7f2fe78bSCy Schubertall-unix: krb5/krb5.h 8*7f2fe78bSCy Schubert 9*7f2fe78bSCy Schubertall-unix: maybe-make-db.h-@DB_HEADER_VERSION@ 10*7f2fe78bSCy Schubert 11*7f2fe78bSCy Schubertgenerate-files-mac: krb5/krb5.h 12*7f2fe78bSCy Schubert 13*7f2fe78bSCy Schubertmaybe-make-db.h-k5: 14*7f2fe78bSCy Schubert : db.h will be installed by util/db2 15*7f2fe78bSCy Schubertmaybe-make-db.h-sys: 16*7f2fe78bSCy Schubert : fall back to system db.h 17*7f2fe78bSCy Schubertmaybe-make-db.h-redirect: 18*7f2fe78bSCy Schubert test -r db.h || echo '#include <@DB_HEADER@>' > db.h 19*7f2fe78bSCy Schubert 20*7f2fe78bSCy SchubertET_HEADERS = adm_err.h asn1_err.h kdb5_err.h krb5_err.h k5e1_err.h 21*7f2fe78bSCy SchubertK5_ET_HEADERS = \ 22*7f2fe78bSCy Schubert ../lib/krb5/error_tables/krb5_err.h \ 23*7f2fe78bSCy Schubert ../lib/krb5/error_tables/k5e1_err.h \ 24*7f2fe78bSCy Schubert ../lib/krb5/error_tables/kdb5_err.h \ 25*7f2fe78bSCy Schubert ../lib/krb5/error_tables/kv5m_err.h \ 26*7f2fe78bSCy Schubert ../lib/krb5/error_tables/krb524_err.h \ 27*7f2fe78bSCy Schubert ../lib/krb5/error_tables/asn1_err.h 28*7f2fe78bSCy SchubertBUILT_HEADERS = osconf.h 29*7f2fe78bSCy Schubert 30*7f2fe78bSCy Schubertall-unix: autoconf.h $(BUILT_HEADERS) 31*7f2fe78bSCy Schubertall-windows: autoconf.h $(BUILT_HEADERS) verify-calling-conventions-krb5 32*7f2fe78bSCy Schubert 33*7f2fe78bSCy Schubertall-unix: @MAINT@ verify-calling-conventions-krb5 34*7f2fe78bSCy Schubert 35*7f2fe78bSCy Schubert$(srcdir)/autoconf.h.in: @MAINT@ $(srcdir)/autoconf.stmp 36*7f2fe78bSCy Schubert$(srcdir)/autoconf.stmp: $(top_srcdir)/configure.ac $(top_srcdir)/aclocal.m4 37*7f2fe78bSCy Schubert (cd $(top_srcdir) && $(AUTOHEADER) --include=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS)) 38*7f2fe78bSCy Schubert touch $(srcdir)/autoconf.stmp 39*7f2fe78bSCy Schubert 40*7f2fe78bSCy Schubert##DOS##autoconf.h: win-mac.h 41*7f2fe78bSCy Schubert##DOS## $(CP) win-mac.h $@ 42*7f2fe78bSCy Schubert##DOS##osconf.h: osconf.hin 43*7f2fe78bSCy Schubert##DOS## $(CP) osconf.hin $@ 44*7f2fe78bSCy Schubert 45*7f2fe78bSCy Schubert############################################################################### 46*7f2fe78bSCy Schubert##DOS##!if 0 47*7f2fe78bSCy Schubert# config.status will now update autoconf.stamp itself. 48*7f2fe78bSCy Schubertautoconf.h: autoconf.stamp 49*7f2fe78bSCy Schubertautoconf.stamp: $(srcdir)/autoconf.h.in $(BUILDTOP)/config.status 50*7f2fe78bSCy Schubert (cd $(BUILDTOP) && $(SHELL) config.status $(mydir)/autoconf.h) 51*7f2fe78bSCy Schubert 52*7f2fe78bSCy SchubertSYSCONFDIR = @sysconfdir@ 53*7f2fe78bSCy SchubertLOCALSTATEDIR = @localstatedir@ 54*7f2fe78bSCy SchubertRUNSTATEDIR = @runstatedir@ 55*7f2fe78bSCy SchubertBINDIR = @bindir@ 56*7f2fe78bSCy SchubertSBINDIR = @sbindir@ 57*7f2fe78bSCy SchubertLIBDIR = @libdir@ 58*7f2fe78bSCy SchubertSYSCONFCONF = @SYSCONFCONF@ 59*7f2fe78bSCy Schubert 60*7f2fe78bSCy SchubertPROCESS_REPLACE = -e "s\"@KRB5RCTMPDIR\"$(KRB5RCTMPDIR)\"" \ 61*7f2fe78bSCy Schubert -e "s\"@PREFIX\"$(INSTALL_PREFIX)\"" \ 62*7f2fe78bSCy Schubert -e "s\"@EXEC_PREFIX\"$(INSTALL_EXEC_PREFIX)\"" \ 63*7f2fe78bSCy Schubert -e "s\"@BINDIR\"$(BINDIR)\"" \ 64*7f2fe78bSCy Schubert -e "s\"@LIBDIR\"$(LIBDIR)\"" \ 65*7f2fe78bSCy Schubert -e "s\"@SBINDIR\"$(SBINDIR)\"" \ 66*7f2fe78bSCy Schubert -e "s\"@MODULEDIR\"$(MODULE_DIR)\"" \ 67*7f2fe78bSCy Schubert -e "s\"@GSSMODULEDIR\"$(GSS_MODULE_DIR)\"" \ 68*7f2fe78bSCy Schubert -e "s\"@LOCALSTATEDIR\"$(LOCALSTATEDIR)\"" \ 69*7f2fe78bSCy Schubert -e "s\"@RUNSTATEDIR\"$(RUNSTATEDIR)\"" \ 70*7f2fe78bSCy Schubert -e "s\"@SYSCONFDIR\"$(SYSCONFDIR)\"" \ 71*7f2fe78bSCy Schubert -e "s\"@DYNOBJEXT\"$(DYNOBJEXT)\"" \ 72*7f2fe78bSCy Schubert -e "s\"@SYSCONFCONF\"$(SYSCONFCONF)\"" 73*7f2fe78bSCy Schubert 74*7f2fe78bSCy SchubertOSCONFSRC = $(srcdir)/osconf.hin 75*7f2fe78bSCy Schubert 76*7f2fe78bSCy Schubertosconf.h: $(OSCONFSRC) Makefile 77*7f2fe78bSCy Schubert cat $(OSCONFSRC) | sed $(PROCESS_REPLACE) > osconf.new 78*7f2fe78bSCy Schubert $(MOVEIFCHANGED) osconf.new osconf.h 79*7f2fe78bSCy Schubert##DOS##!endif 80*7f2fe78bSCy Schubert############################################################################### 81*7f2fe78bSCy Schubert 82*7f2fe78bSCy Schubertkrb5/krb5.h: krb5.stamp; : krb5.h 83*7f2fe78bSCy Schubertkrb5.stamp: $(srcdir)/krb5/krb5.hin $(K5_ET_HEADERS) 84*7f2fe78bSCy Schubert test -d krb5 || mkdir krb5 85*7f2fe78bSCy Schubert if test -r krb5.h; then \ 86*7f2fe78bSCy Schubert if cmp -s krb5.h $(srcdir)/krb5.h; then :; else rm -f krb5.h; fi; \ 87*7f2fe78bSCy Schubert else :; fi 88*7f2fe78bSCy Schubert echo "/* This file is generated, please don't edit it directly. */" > krb5/krb5.new 89*7f2fe78bSCy Schubert echo "#ifndef KRB5_KRB5_H_INCLUDED" >> krb5/krb5.new 90*7f2fe78bSCy Schubert echo "#define KRB5_KRB5_H_INCLUDED" >> krb5/krb5.new 91*7f2fe78bSCy Schubert cat $(srcdir)/krb5/krb5.hin $(K5_ET_HEADERS) >> krb5/krb5.new 92*7f2fe78bSCy Schubert echo "#endif /* KRB5_KRB5_H_INCLUDED */" >> krb5/krb5.new 93*7f2fe78bSCy Schubert $(MOVEIFCHANGED) krb5/krb5.new krb5/krb5.h 94*7f2fe78bSCy Schubert touch krb5.stamp 95*7f2fe78bSCy Schubert 96*7f2fe78bSCy Schubertverify-calling-conventions-krb5: private-and-public-decls 97*7f2fe78bSCy Schubert $(PERL) -w $(top_srcdir)/util/def-check.pl private-and-public-decls $(top_srcdir)/lib/krb5_32.def 98*7f2fe78bSCy Schubert 99*7f2fe78bSCy Schubert##DOS##!if 0 100*7f2fe78bSCy SchubertHEADERS_TO_CHECK = krb5/krb5.h $(srcdir)/k5-int.h $(srcdir)/krb5/clpreauth_plugin.h 101*7f2fe78bSCy Schubert 102*7f2fe78bSCy Schubertprivate-and-public-decls: $(HEADERS_TO_CHECK) 103*7f2fe78bSCy Schubert cat $(HEADERS_TO_CHECK) > $@ 104*7f2fe78bSCy Schubert##DOS##!endif 105*7f2fe78bSCy Schubert##DOS##private-and-public-decls: 106*7f2fe78bSCy Schubert##DOS## copy /y krb5\krb5.h+k5-int.h+krb5\clpreauth_plugin.h $@ 107*7f2fe78bSCy Schubert 108*7f2fe78bSCy Schubert# 109*7f2fe78bSCy Schubert# Build the error table include files: 110*7f2fe78bSCy Schubert# asn1_err.h kdb5_err.h krb5_err.h k5e1_err.h kv5m_err.h krb524_err.h 111*7f2fe78bSCy Schubert 112*7f2fe78bSCy Schubert$(K5_ET_HEADERS): rebuild-error-tables 113*7f2fe78bSCy Schubert : $@ 114*7f2fe78bSCy Schubertrebuild-error-tables: 115*7f2fe78bSCy Schubert (cd ../lib/krb5/error_tables && $(MAKE) includes) 116*7f2fe78bSCy Schubert 117*7f2fe78bSCy Schubert.PHONY: force rebuild-error-tables 118*7f2fe78bSCy Schubertforce: 119*7f2fe78bSCy Schubert 120*7f2fe78bSCy Schubertclean-unix:: 121*7f2fe78bSCy Schubert $(RM) krb5/krb5.h krb5_err.h k5e1_err.h kdb5_err.h kv5m_err.h \ 122*7f2fe78bSCy Schubert krb524_err.h asn1_err.h private-and-public-decls krb5.stamp 123*7f2fe78bSCy Schubert $(RM) $(ET_HEADERS) autoconf.stamp 124*7f2fe78bSCy Schubert 125*7f2fe78bSCy Schubertclean-windows:: 126*7f2fe78bSCy Schubert $(RM) com_err.h profile.h 127*7f2fe78bSCy Schubert $(RM) gssapi\gssapi.h gssapi\gssapi_generic.h gssapi\gssapi_krb5.h 128*7f2fe78bSCy Schubert $(RM) gssapi\gssapi_alloc.h gssapi\gssapi_ext.h gssapi\timestamp 129*7f2fe78bSCy Schubert if exist gssapi\nul rmdir /s /q gssapi 130*7f2fe78bSCy Schubert $(RM) osconf.h autoconf.h autoconf.stamp 131*7f2fe78bSCy Schubert @echo Making clean in include 132*7f2fe78bSCy Schubert 133*7f2fe78bSCy Schubertclean: 134*7f2fe78bSCy Schubert $(RM) osconf.new $(BUILT_HEADERS) 135*7f2fe78bSCy Schubert 136*7f2fe78bSCy Schubertdistclean: 137*7f2fe78bSCy Schubert $(RM) autoconf.h $(srcdir)/autoconf.stmp 138*7f2fe78bSCy Schubert 139*7f2fe78bSCy Schubertinstall-headers-unix install: krb5/krb5.h profile.h 140*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5.h 141*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/kdb.h $(DESTDIR)$(KRB5_INCDIR)$(S)kdb.h 142*7f2fe78bSCy Schubert $(INSTALL_DATA) krb5/krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)krb5.h 143*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/certauth_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)certauth_plugin.h 144*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/ccselect_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)ccselect_plugin.h 145*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/clpreauth_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)clpreauth_plugin.h 146*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/hostrealm_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)hostrealm_plugin.h 147*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/kdcpolicy_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)kdcpolicy_plugin.h 148*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/kdcpreauth_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)kdcpreauth_plugin.h 149*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/localauth_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)localauth_plugin.h 150*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/locate_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)locate_plugin.h 151*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)plugin.h 152*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/preauth_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)preauth_plugin.h 153*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/pwqual_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)pwqual_plugin.h 154*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/kadm5_auth_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)kadm5_auth_plugin.h 155*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krb5/kadm5_hook_plugin.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5$(S)kadm5_hook_plugin.h 156*7f2fe78bSCy Schubert $(INSTALL_DATA) profile.h $(DESTDIR)$(KRB5_INCDIR)$(S)profile.h 157*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/gssapi.h $(DESTDIR)$(KRB5_INCDIR)$(S)gssapi.h 158*7f2fe78bSCy Schubert $(INSTALL_DATA) $(srcdir)/krad.h $(DESTDIR)$(KRB5_INCDIR)/krad.h 159*7f2fe78bSCy Schubert 160*7f2fe78bSCy Schubertdepend: krb5/krb5.h $(BUILT_HEADERS) 161