Mass makefile/configure.in build system revamp
[krb5.git] / src / include / Makefile.in
1 thisconfigdir=./
2 BUILDTOP=$(U)
3 ##DOSBUILDTOP = ..
4
5 all-unix:: krb5.h adm_err.h
6 all-mac::
7
8 all-windows::
9         copy $(BUILDTOP)\util\et\com_err.h .
10         copy $(BUILDTOP)\util\profile\profile.h .
11         if not exist gssapi\nul mkdir gssapi
12         copy $(BUILDTOP)\lib\gssapi\generic\gssapi.h gssapi
13         copy $(BUILDTOP)\lib\gssapi\generic\gssapi_generic.h gssapi
14         cd krb5
15         @echo Making in include\krb5
16         -$(MAKE) -$(MFLAGS)
17         cd ..
18
19 krb5/autoconf.h:
20         (cd krb5; $(MAKE) autoconf.h)
21
22 krb5.h: krb5/autoconf.h $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h \
23                 asn1_err.h
24         echo "/* This is the prologue to krb5.h */" > krb5.h
25         echo "/* Unfortunately some of these defines are compiler dependent */" >> krb5.h
26         grep SIZEOF krb5/autoconf.h >> krb5.h
27         grep HAVE_STDARG_H krb5/autoconf.h >> krb5.h
28         grep HAVE_SYS_TYPES_H krb5/autoconf.h >> krb5.h
29         echo "/* End of prologue section */"  >> krb5.h
30         cat $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h \
31                 asn1_err.h >> krb5.h
32
33 #
34 # Build the error table include files:
35 # adm_err.h asn1_err.h kdb5_err.h krb5_err.h kv5m_err.h
36
37 adm_err.h: $(SRCTOP)/lib/krb5/error_tables/adm_err.et
38         $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=adm_err.h  \
39                 $(SRCTOP)/lib/krb5/error_tables/adm_err.et
40
41 asn1_err.h: $(SRCTOP)/lib/krb5/error_tables/asn1_err.et
42         $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=asn1_err.h \
43                 $(SRCTOP)/lib/krb5/error_tables/asn1_err.et
44
45 kdb5_err.h: $(SRCTOP)/lib/krb5/error_tables/kdb5_err.et
46         $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kdb5_err.h \
47                 $(SRCTOP)/lib/krb5/error_tables/kdb5_err.et
48
49 krb5_err.h: $(SRCTOP)/lib/krb5/error_tables/krb5_err.et
50         $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=krb5_err.h \
51                  $(SRCTOP)/lib/krb5/error_tables/krb5_err.et
52
53 kv5m_err.h: $(SRCTOP)/lib/krb5/error_tables/kv5m_err.et
54         $(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kv5m_err.h \
55                 $(SRCTOP)/lib/krb5/error_tables/kv5m_err.et
56
57 clean-unix::
58         $(RM) krb5.h krb5_err.h kdb5_err.h kv5m_err.h \
59                 asn1_err.h adm_err.h
60
61 clean-mac::
62
63 clean-windows::
64         $(RM) com_err.h profile.h
65         $(RM) gssapi\gssapi.h gssapi\gssapi_generic.h gssapi\gssapi_krb5.h
66         if exist gssapi\nul rmdir gssapi
67         cd krb5
68         @echo Making clean in include\krb5
69         -$(MAKE) -$(MFLAGS) clean
70         cd ..
71         @echo Making clean in include
72
73 install:: krb5.h
74         $(INSTALL_DATA) $(C)krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5.h