3 SUFFIXES = .et .h .pc.in .pc
5 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include
7 AM_CPPFLAGS = $(INCLUDES_roken)
10 ROKEN_RENAME = -DROKEN_RENAME
15 CLANG_FORMAT_STYLE = '{BasedOnStyle: Mozilla, AlwaysBreakAfterReturnType: TopLevelDefinitions, IndentWidth: 4, SortIncludes: false}'
19 ## set build_HEADERZ to headers that should just be installed in build tree
21 buildinclude = $(top_builddir)/include
23 ## these aren't detected by automake
24 LIB_XauReadAuth = @LIB_XauReadAuth@
25 LIB_crypt = @LIB_crypt@
26 LIB_dbm_firstkey = @LIB_dbm_firstkey@
27 LIB_dbopen = @LIB_dbopen@
28 LIB_dlopen = @LIB_dlopen@
29 LIB_dn_expand = @LIB_dn_expand@
30 LIB_el_init = @LIB_el_init@
31 LIB_getattr = @LIB_getattr@
32 LIB_gethostbyname = @LIB_gethostbyname@
33 LIB_getpwent_r = @LIB_getpwent_r@
34 LIB_getpwnam_r = @LIB_getpwnam_r@
35 LIB_getsockopt = @LIB_getsockopt@
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 LIB_openssl_crypto = @LIB_openssl_crypto@
49 INCLUDE_openssl_crypto = @INCLUDE_openssl_crypto@
51 INCLUDE_krb4 = @INCLUDE_krb4@
54 INCLUDE_openldap = @INCLUDE_openldap@
55 LIB_openldap = @LIB_openldap@
57 INCLUDE_readline = @INCLUDE_readline@
58 LIB_readline = @LIB_readline@
62 libexec_heimdaldir = $(libexecdir)/heimdal
64 install-suid-programs:
65 @foo='$(bin_SUIDS)'; \
66 for file in $$foo; do \
67 x=$(DESTDIR)$(bindir)/$$file; \
68 if chown 0:0 $$x && chmod u+s $$x; then :; else \
70 echo "* Failed to install $$x setuid root"; \
75 install-exec-local: install-suid-programs
78 @if [ X"$$CODE_SIGN_IDENTITY" != X ] ; then \
79 foo='$(bin_PROGRAMS) $(sbin_PROGRAMS) $(libexec_PROGRAMS)' ; \
80 for file in $$foo ; do \
81 echo "CODESIGN $$file" ; \
82 codesign -f -s "$$CODE_SIGN_IDENTITY" $$file || exit 1 ; \
88 all-local: codesign-all
90 install-build-headers:: $(include_HEADERS) $(dist_include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ) $(nobase_include_HEADERS) $(noinst_HEADERS)
91 @foo='$(include_HEADERS) $(dist_include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ) $(noinst_HEADERS)'; \
94 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
95 else file="$$f"; fi; \
96 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
98 echo " $(CP) $$file $(buildinclude)/$$f"; \
99 $(CP) $$file $(buildinclude)/$$f || true; \
102 foo='$(nobase_include_HEADERS)'; \
104 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
105 else file="$$f"; fi; \
106 $(mkdir_p) $(buildinclude)/`dirname $$f` ; \
107 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
109 echo " $(CP) $$file $(buildinclude)/$$f"; \
110 $(CP) $$file $(buildinclude)/$$f; \
114 all-local: install-build-headers
117 @if test '$(CHECK_LOCAL)' = "no-check-local"; then \
118 foo=''; elif test '$(CHECK_LOCAL)'; then \
119 foo='$(CHECK_LOCAL)'; else \
120 foo='$(PROGRAMS)'; fi; \
121 if test "$$foo"; then \
124 all=`expr $$all + 1`; \
125 if (./$$i --version && ./$$i --help) > /dev/null 2>&1; then \
129 failed=`expr $$failed + 1`; \
132 if test "$$failed" -eq 0; then \
133 banner="All $$all tests passed"; \
135 banner="$$failed of $$all tests failed"; \
137 dashes=`echo "$$banner" | sed s/./=/g`; \
141 test "$$failed" -eq 0 || exit 1; \
146 SUFFIXES += .1 .3 .5 .7 .8 .cat1 .cat3 .cat5 .cat7 .cat8
148 NROFF_MAN = groff -mandoc -Tascii
149 #NROFF_MAN = nroff -man
161 ## MAINTAINERCLEANFILES +=
164 @foo='$(man1_MANS)'; \
168 *.1) foo="$$foo $$i";; \
171 x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
172 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
173 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
177 @foo='$(man3_MANS)'; \
181 *.3) foo="$$foo $$i";; \
184 x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
185 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
186 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
190 @foo='$(man5_MANS)'; \
194 *.5) foo="$$foo $$i";; \
197 x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
198 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
199 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
203 @foo='$(man7_MANS)'; \
207 *.7) foo="$$foo $$i";; \
210 x=`echo $$i | sed 's/\.[^.]*$$/.cat7/'`; \
211 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
212 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
216 @foo='$(man8_MANS)'; \
220 *.8) foo="$$foo $$i";; \
223 x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
224 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
225 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
228 dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat7-mans dist-cat8-mans
231 $(SHELL) $(top_srcdir)/cf/install-catman.sh install "$(INSTALL_DATA)" "$(mkinstalldirs)" "$(srcdir)" "$(DESTDIR)$(mandir)" '$(CATMANEXT)' $(man_MANS) $(man1_MANS) $(man3_MANS) $(man5_MANS) $(man7_MANS) $(man8_MANS)
234 $(SHELL) $(top_srcdir)/cf/install-catman.sh uninstall "$(INSTALL_DATA)" "$(mkinstalldirs)" "$(srcdir)" "$(DESTDIR)$(mandir)" '$(CATMANEXT)' $(man_MANS) $(man1_MANS) $(man3_MANS) $(man5_MANS) $(man7_MANS) $(man8_MANS)
236 install-data-hook: install-cat-mans
237 uninstall-hook: uninstall-cat-mans
248 LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
252 LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la \
253 $(top_builddir)/lib/asn1/libasn1.la
254 LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
257 LIB_heimbase = $(top_builddir)/lib/base/libheimbase.la
260 LIB_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la
264 # Useful target for debugging
268 tobjdir=`cd $(top_builddir) && pwd` ; \
269 tsrcdir=`cd $(top_srcdir) && pwd` ; \
270 env TESTS_ENVIRONMENT="$${tsrcdir}/cf/maybe-valgrind.sh -s $${tsrcdir} -o $${tobjdir}" make check
273 # Target to please samba build farm, builds distfiles in-tree.
274 # Will break when automake changes...
277 distdir-in-tree: $(DISTFILES) $(INFO_DEPS)
278 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
279 if test "$$subdir" != .; then \
280 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) distdir-in-tree) ; \
287 heim_verbose = $(heim_verbose_$(V))
288 heim_verbose_ = $(heim_verbose_$(AM_DEFAULT_VERBOSITY))
289 heim_verbose_0 = @echo " GEN "$@;
292 AM_CFLAGS += --coverage --no-inline