aboutsummaryrefslogtreecommitdiff
path: root/src/include/Makefile.in
blob: db023fc692cc9c42a32e92063c3686b7a3171c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
thisconfigdir=.
myfulldir=include
mydir=.
MY_SUBDIRS=krb5 kerberosIV
BUILDTOP=$(REL)$(U)
##DOSBUILDTOP = ..
NO_OUTPRE=1

all-unix:: krb5.h adm_err.h
all-mac::

all-windows::
	@echo Making in include\krb5
	cd krb5
	$(MAKE) -$(MFLAGS)
	cd ..

krb5/autoconf.h:
	(cd krb5; $(MAKE) autoconf.h)

krb5.h: krb5/autoconf.h $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h \
		asn1_err.h
	echo "/* This is the prologue to krb5.h */" > krb5.h
	echo "/* Unfortunately some of these defines are compiler dependent */" >> krb5.h
	grep SIZEOF krb5/autoconf.h >> krb5.h
	grep HAVE_STDARG_H krb5/autoconf.h >> krb5.h
	grep HAVE_SYS_TYPES_H krb5/autoconf.h >> krb5.h
	echo "/* End of prologue section */"  >> krb5.h
	cat $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h \
		asn1_err.h >> krb5.h

#
# Build the error table include files:
# adm_err.h asn1_err.h kdb5_err.h krb5_err.h kv5m_err.h

adm_err.h: $(SRCTOP)/lib/krb5/error_tables/adm_err.et
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=adm_err.h	\
		$(SRCTOP)/lib/krb5/error_tables/adm_err.et

asn1_err.h: $(SRCTOP)/lib/krb5/error_tables/asn1_err.et
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=asn1_err.h	\
		$(SRCTOP)/lib/krb5/error_tables/asn1_err.et

kdb5_err.h: $(SRCTOP)/lib/krb5/error_tables/kdb5_err.et
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kdb5_err.h	\
		$(SRCTOP)/lib/krb5/error_tables/kdb5_err.et

krb5_err.h: $(SRCTOP)/lib/krb5/error_tables/krb5_err.et
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=krb5_err.h	\
		 $(SRCTOP)/lib/krb5/error_tables/krb5_err.et

kv5m_err.h: $(SRCTOP)/lib/krb5/error_tables/kv5m_err.et
	$(AWK) -f $(SRCTOP)/util/et/et_h.awk outfile=kv5m_err.h	\
		$(SRCTOP)/lib/krb5/error_tables/kv5m_err.et

clean-unix::
	$(RM) krb5.h krb5_err.h kdb5_err.h kv5m_err.h \
		asn1_err.h adm_err.h

clean-mac::

clean-windows::
	$(RM) com_err.h profile.h
	$(RM) gssapi\gssapi.h gssapi\gssapi_generic.h gssapi\gssapi_krb5.h
	if exist gssapi\nul rmdir gssapi
	cd krb5
	@echo Making clean in include\krb5
	$(MAKE) -$(MFLAGS) clean
	cd ..
	@echo Making clean in include

install:: krb5.h
	$(INSTALL_DATA) krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5.h