summaryrefslogtreecommitdiffstats
path: root/src/include/Makefile.in
blob: 5a0a7ed1ca10c87069724ab2d75d501512ad4eab (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
##DOSBUILDTOP = ..
##DOS!include $(BUILDTOP)\config\windows.in

all:: all-$(WHAT)

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

all-windows::
	copy $(BUILDTOP)\util\et\com_err.h .
	copy $(BUILDTOP)\util\profile\profile.h .
	if not exist gssapi\nul mkdir gssapi
	copy $(BUILDTOP)\lib\gssapi\generic\gssapi.h gssapi
	copy $(BUILDTOP)\lib\gssapi\generic\gssapi_generic.h gssapi
	cd krb5
	@echo Making in include\krb5
	-$(MAKE) -$(MFLAGS) LIBCMD=$(LIBCMD)
	cd ..

krb5.h: $(srcdir)/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h asn1_err.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=$*.h $<

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

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

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

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

clean:: clean-$(WHAT)

clean-unix::
clean-mac::

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

KRB5_HEADERS = krb5.h k5-int.h

install::
	@set -x; for f in $(KRB5_HEADERS) ; \
	do $(INSTALL_DATA) $(srcdir)$(S)$$f	\
		$(DESTDIR)$(KRB5_INCDIR)$(S)$$f ; \
	done