1 # $Heimdal: Makefile.am.common 22488 2008-01-21 11:47:22Z lha $
6 AM_CPPFLAGS = -I$(top_builddir)/include $(INCLUDES_roken)
9 ROKEN_RENAME = -DROKEN_RENAME
16 ## set build_HEADERZ to headers that should just be installed in build tree
18 buildinclude = $(top_builddir)/include
20 ## these aren't detected by automake
21 LIB_XauReadAuth = @LIB_XauReadAuth@
22 LIB_crypt = @LIB_crypt@
23 LIB_dbm_firstkey = @LIB_dbm_firstkey@
24 LIB_dbopen = @LIB_dbopen@
25 LIB_dlopen = @LIB_dlopen@
26 LIB_dn_expand = @LIB_dn_expand@
27 LIB_el_init = @LIB_el_init@
28 LIB_getattr = @LIB_getattr@
29 LIB_gethostbyname = @LIB_gethostbyname@
30 LIB_getpwent_r = @LIB_getpwent_r@
31 LIB_getpwnam_r = @LIB_getpwnam_r@
32 LIB_getsockopt = @LIB_getsockopt@
33 LIB_logout = @LIB_logout@
34 LIB_logwtmp = @LIB_logwtmp@
35 LIB_odm_initialize = @LIB_odm_initialize@
36 LIB_openpty = @LIB_openpty@
37 LIB_pidfile = @LIB_pidfile@
38 LIB_res_search = @LIB_res_search@
39 LIB_setpcred = @LIB_setpcred@
40 LIB_setsockopt = @LIB_setsockopt@
41 LIB_socket = @LIB_socket@
42 LIB_syslog = @LIB_syslog@
43 LIB_tgetent = @LIB_tgetent@
44 LIB_com_err = @LIB_com_err@
45 LIB_door_create = @LIB_door_create@
47 HESIODLIB = @HESIODLIB@
48 HESIODINCLUDE = @HESIODINCLUDE@
49 INCLUDE_hesiod = @INCLUDE_hesiod@
50 LIB_hesiod = @LIB_hesiod@
52 INCLUDE_krb4 = @INCLUDE_krb4@
55 INCLUDE_openldap = @INCLUDE_openldap@
56 LIB_openldap = @LIB_openldap@
58 INCLUDE_readline = @INCLUDE_readline@
59 LIB_readline = @LIB_readline@
63 install-suid-programs:
64 @foo='$(bin_SUIDS)'; \
65 for file in $$foo; do \
66 x=$(DESTDIR)$(bindir)/$$file; \
67 if chown 0:0 $$x && chmod u+s $$x; then :; else \
69 echo "* Failed to install $$x setuid root"; \
73 install-exec-hook: install-suid-programs
75 install-build-headers:: $(include_HEADERS) $(dist_include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ) $(nobase_include_HEADERS)
76 @foo='$(include_HEADERS) $(dist_include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ)'; \
79 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
80 else file="$$f"; fi; \
81 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
83 echo " $(CP) $$file $(buildinclude)/$$f"; \
84 $(CP) $$file $(buildinclude)/$$f; \
87 foo='$(nobase_include_HEADERS)'; \
89 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
90 else file="$$f"; fi; \
91 $(mkdir_p) $(buildinclude)/`dirname $$f` ; \
92 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
94 echo " $(CP) $$file $(buildinclude)/$$f"; \
95 $(CP) $$file $(buildinclude)/$$f; \
99 all-local: install-build-headers
102 @if test '$(CHECK_LOCAL)' = "no-check-local"; then \
103 foo=''; elif test '$(CHECK_LOCAL)'; then \
104 foo='$(CHECK_LOCAL)'; else \
105 foo='$(PROGRAMS)'; fi; \
106 if test "$$foo"; then \
109 all=`expr $$all + 1`; \
110 if (./$$i --version && ./$$i --help) > /dev/null 2>&1; then \
114 failed=`expr $$failed + 1`; \
117 if test "$$failed" -eq 0; then \
118 banner="All $$all tests passed"; \
120 banner="$$failed of $$all tests failed"; \
122 dashes=`echo "$$banner" | sed s/./=/g`; \
126 test "$$failed" -eq 0 || exit 1; \
132 @cmp -s $< $@ 2> /dev/null || cp $< $@
134 SUFFIXES += .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8
136 NROFF_MAN = groff -mandoc -Tascii
137 #NROFF_MAN = nroff -man
147 ## MAINTAINERCLEANFILES +=
150 @foo='$(man1_MANS)'; \
154 *.1) foo="$$foo $$i";; \
157 x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
158 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
159 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
163 @foo='$(man3_MANS)'; \
167 *.3) foo="$$foo $$i";; \
170 x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
171 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
172 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
176 @foo='$(man5_MANS)'; \
180 *.5) foo="$$foo $$i";; \
183 x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
184 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
185 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
189 @foo='$(man8_MANS)'; \
193 *.8) foo="$$foo $$i";; \
196 x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
197 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
198 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
201 dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat8-mans
204 $(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)
207 $(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)
209 install-data-hook: install-cat-mans
210 uninstall-hook: uninstall-cat-mans
218 LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
221 LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la \
222 $(top_builddir)/lib/asn1/libasn1.la
223 LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
224 LIB_tsasl = $(top_builddir)/lib/tsasl/libtsasl.la
228 LIB_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la
232 # Useful target for debugging
236 tobjdir=`cd $(top_builddir) && pwd` ; \
237 tsrcdir=`cd $(top_srcdir) && pwd` ; \
238 env TESTS_ENVIRONMENT="$${tobjdir}/libtool --mode execute valgrind --leak-check=full --trace-children=yes --quiet -q --num-callers=30 --suppressions=$${tsrcdir}/cf/valgrind-suppressions" make check
241 # Target to please samba build farm, builds distfiles in-tree.
242 # Will break when automake changes...
245 distdir-in-tree: $(DISTFILES) $(INFO_DEPS)
246 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
247 if test "$$subdir" != .; then \
248 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) distdir-in-tree) ; \