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