5 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include
7 AM_CPPFLAGS = $(INCLUDES_roken)
10 ROKEN_RENAME = -DROKEN_RENAME
17 ## set build_HEADERZ to headers that should just be installed in build tree
19 buildinclude = $(top_builddir)/include
21 ## these aren't detected by automake
22 LIB_XauReadAuth = @LIB_XauReadAuth@
23 LIB_crypt = @LIB_crypt@
24 LIB_dbm_firstkey = @LIB_dbm_firstkey@
25 LIB_dbopen = @LIB_dbopen@
26 LIB_dlopen = @LIB_dlopen@
27 LIB_dn_expand = @LIB_dn_expand@
28 LIB_el_init = @LIB_el_init@
29 LIB_getattr = @LIB_getattr@
30 LIB_gethostbyname = @LIB_gethostbyname@
31 LIB_getpwent_r = @LIB_getpwent_r@
32 LIB_getpwnam_r = @LIB_getpwnam_r@
33 LIB_getsockopt = @LIB_getsockopt@
34 LIB_logout = @LIB_logout@
35 LIB_logwtmp = @LIB_logwtmp@
36 LIB_odm_initialize = @LIB_odm_initialize@
37 LIB_openpty = @LIB_openpty@
38 LIB_pidfile = @LIB_pidfile@
39 LIB_res_search = @LIB_res_search@
40 LIB_setpcred = @LIB_setpcred@
41 LIB_setsockopt = @LIB_setsockopt@
42 LIB_socket = @LIB_socket@
43 LIB_syslog = @LIB_syslog@
44 LIB_tgetent = @LIB_tgetent@
45 LIB_com_err = @LIB_com_err@
46 LIB_door_create = @LIB_door_create@
48 HESIODLIB = @HESIODLIB@
49 HESIODINCLUDE = @HESIODINCLUDE@
50 INCLUDE_hesiod = @INCLUDE_hesiod@
51 LIB_hesiod = @LIB_hesiod@
53 INCLUDE_krb4 = @INCLUDE_krb4@
56 INCLUDE_openldap = @INCLUDE_openldap@
57 LIB_openldap = @LIB_openldap@
59 INCLUDE_readline = @INCLUDE_readline@
60 LIB_readline = @LIB_readline@
64 libexec_heimdaldir = $(libexecdir)/heimdal
66 install-suid-programs:
67 @foo='$(bin_SUIDS)'; \
68 for file in $$foo; do \
69 x=$(DESTDIR)$(bindir)/$$file; \
70 if chown 0:0 $$x && chmod u+s $$x; then :; else \
72 echo "* Failed to install $$x setuid root"; \
76 install-exec-hook: install-suid-programs
78 install-build-headers:: $(include_HEADERS) $(dist_include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ) $(nobase_include_HEADERS)
79 @foo='$(include_HEADERS) $(dist_include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ)'; \
82 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
83 else file="$$f"; fi; \
84 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
86 echo " $(CP) $$file $(buildinclude)/$$f"; \
87 $(CP) $$file $(buildinclude)/$$f; \
90 foo='$(nobase_include_HEADERS)'; \
92 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
93 else file="$$f"; fi; \
94 $(mkdir_p) $(buildinclude)/`dirname $$f` ; \
95 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
97 echo " $(CP) $$file $(buildinclude)/$$f"; \
98 $(CP) $$file $(buildinclude)/$$f; \
102 all-local: install-build-headers
105 @if test '$(CHECK_LOCAL)' = "no-check-local"; then \
106 foo=''; elif test '$(CHECK_LOCAL)'; then \
107 foo='$(CHECK_LOCAL)'; else \
108 foo='$(PROGRAMS)'; fi; \
109 if test "$$foo"; then \
112 all=`expr $$all + 1`; \
113 if (./$$i --version && ./$$i --help) > /dev/null 2>&1; then \
117 failed=`expr $$failed + 1`; \
120 if test "$$failed" -eq 0; then \
121 banner="All $$all tests passed"; \
123 banner="$$failed of $$all tests failed"; \
125 dashes=`echo "$$banner" | sed s/./=/g`; \
129 test "$$failed" -eq 0 || exit 1; \
132 SUFFIXES += .x .z .hx
135 @cmp -s $< $@ 2> /dev/null || cp $< $@
138 @cmp -s $< $@ 2> /dev/null || cp $< $@
140 SUFFIXES += .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8
142 NROFF_MAN = groff -mandoc -Tascii
143 #NROFF_MAN = nroff -man
153 ## MAINTAINERCLEANFILES +=
156 @foo='$(man1_MANS)'; \
160 *.1) foo="$$foo $$i";; \
163 x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
164 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
165 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
169 @foo='$(man3_MANS)'; \
173 *.3) foo="$$foo $$i";; \
176 x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
177 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
178 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
182 @foo='$(man5_MANS)'; \
186 *.5) foo="$$foo $$i";; \
189 x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
190 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
191 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
195 @foo='$(man8_MANS)'; \
199 *.8) foo="$$foo $$i";; \
202 x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
203 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
204 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
207 dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat8-mans
210 $(SHELL) $(top_srcdir)/cf/install-catman.sh install "$(INSTALL_DATA)" "$(mkinstalldirs)" "$(srcdir)" "$(DESTDIR)$(mandir)" '$(CATMANEXT)' $(man_MANS) $(man1_MANS) $(man3_MANS) $(man5_MANS) $(man8_MANS)
213 $(SHELL) $(top_srcdir)/cf/install-catman.sh uninstall "$(INSTALL_DATA)" "$(mkinstalldirs)" "$(srcdir)" "$(DESTDIR)$(mandir)" '$(CATMANEXT)' $(man_MANS) $(man1_MANS) $(man3_MANS) $(man5_MANS) $(man8_MANS)
215 install-data-hook: install-cat-mans
216 uninstall-hook: uninstall-cat-mans
224 LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
227 LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la \
228 $(top_builddir)/lib/asn1/libasn1.la
229 LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
232 LIB_heimbase = $(top_builddir)/base/libheimbase.la
235 LIB_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la
239 # Useful target for debugging
243 tobjdir=`cd $(top_builddir) && pwd` ; \
244 tsrcdir=`cd $(top_srcdir) && pwd` ; \
245 env TESTS_ENVIRONMENT="$${tsrcdir}/cf/maybe-valgrind.sh -s $${tsrcdir} -o $${tobjdir}" make check
248 # Target to please samba build farm, builds distfiles in-tree.
249 # Will break when automake changes...
252 distdir-in-tree: $(DISTFILES) $(INFO_DEPS)
253 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
254 if test "$$subdir" != .; then \
255 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) distdir-in-tree) ; \