summaryrefslogtreecommitdiffstats
path: root/src/include/Makefile.in
blob: d0550c0d160901b59e25e1da0e639291241887c4 (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
74
75
76
thisconfigdir=.
myfulldir=include
mydir=.
LOCAL_SUBDIRS=krb5 @maybe_kerberosIV@
BUILDTOP=$(REL)..
##DOSBUILDTOP = ..
NO_OUTPRE=1

all-unix:: krb5.h

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

all-unix:: maybe-make-db.h-@DB_HEADER_VERSION@

maybe-make-db.h-k5:
	: db.h will be installed by util/db2
maybe-make-db.h-sys:
	: fall back to system db.h 
maybe-make-db.h-redirect:
	test -r db.h || echo '#include <@DB_HEADER@>' > db.h

all-recurse: krb5/autoconf.h
krb5/autoconf.h: $(srcdir)/krb5/autoconf.h.in
	(cd krb5; $(MAKE) autoconf.h)
$(srcdir)/krb5/autoconf.h.in: @MAINT@ $(srcdir)/krb5/autoconf.stmp
$(srcdir)/krb5/autoconf.stmp: $(srcdir)/configure.in $(SRCTOP)/aclocal.m4
	$(RM) -r $(srcdir)/autom4te.cache
	cd $(srcdir) && $(AUTOHEADER) --include=$(CONFIG_RELTOPDIR) $(AUTOHEADERFLAGS)
	touch $(srcdir)/krb5/autoconf.stmp
	$(RM) -r $(srcdir)/autom4te.cache

krb5.h: krb5/autoconf.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

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

asn1_err.h kdb5_err.h krb5_err.h kv5m_err.h krb524_err.h: rebuild-error-tables
	: $@
rebuild-error-tables:
	(cd ../lib/krb5/error_tables && $(MAKE) includes)

.PHONY: force rebuild-error-tables
force:

asn1_err.h: $(SRCTOP)/lib/krb5/error_tables/asn1_err.et
kdb5_err.h: $(SRCTOP)/lib/krb5/error_tables/kdb5_err.et
krb5_err.h: $(SRCTOP)/lib/krb5/error_tables/krb5_err.et	
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 \
		asn1_err.h

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

install-headers-unix install:: krb5.h profile.h
	$(INSTALL_DATA) krb5.h $(DESTDIR)$(KRB5_INCDIR)$(S)krb5.h
	$(INSTALL_DATA) profile.h $(DESTDIR)$(KRB5_INCDIR)$(S)profile.h