5 AM_CPPFLAGS = -I$(top_builddir)/include $(INCLUDES_roken)
8 ROKEN_RENAME = -DROKEN_RENAME
15 ## set build_HEADERZ to headers that should just be installed in build tree
17 buildinclude = $(top_builddir)/include
19 ## these aren't detected by automake
20 LIB_XauReadAuth = @LIB_XauReadAuth@
21 LIB_crypt = @LIB_crypt@
22 LIB_dbm_firstkey = @LIB_dbm_firstkey@
23 LIB_dbopen = @LIB_dbopen@
24 LIB_dlopen = @LIB_dlopen@
25 LIB_dn_expand = @LIB_dn_expand@
26 LIB_el_init = @LIB_el_init@
27 LIB_getattr = @LIB_getattr@
28 LIB_gethostbyname = @LIB_gethostbyname@
29 LIB_getpwent_r = @LIB_getpwent_r@
30 LIB_getpwnam_r = @LIB_getpwnam_r@
31 LIB_getsockopt = @LIB_getsockopt@
32 LIB_logout = @LIB_logout@
33 LIB_logwtmp = @LIB_logwtmp@
34 LIB_odm_initialize = @LIB_odm_initialize@
35 LIB_openpty = @LIB_openpty@
36 LIB_pidfile = @LIB_pidfile@
37 LIB_res_search = @LIB_res_search@
38 LIB_setpcred = @LIB_setpcred@
39 LIB_setsockopt = @LIB_setsockopt@
40 LIB_socket = @LIB_socket@
41 LIB_syslog = @LIB_syslog@
42 LIB_tgetent = @LIB_tgetent@
44 HESIODLIB = @HESIODLIB@
45 HESIODINCLUDE = @HESIODINCLUDE@
46 INCLUDE_hesiod = @INCLUDE_hesiod@
47 LIB_hesiod = @LIB_hesiod@
49 INCLUDE_krb4 = @INCLUDE_krb4@
52 INCLUDE_openldap = @INCLUDE_openldap@
53 LIB_openldap = @LIB_openldap@
55 INCLUDE_readline = @INCLUDE_readline@
56 LIB_readline = @LIB_readline@
60 install-suid-programs:
61 @foo='$(bin_SUIDS)'; \
62 for file in $$foo; do \
63 x=$(DESTDIR)$(bindir)/$$file; \
64 if chown 0:0 $$x && chmod u+s $$x; then :; else \
66 echo "* Failed to install $$x setuid root"; \
70 install-exec-hook: install-suid-programs
72 install-build-headers:: $(include_HEADERS) $(build_HEADERZ)
73 @foo='$(include_HEADERS) $(nodist_include_HEADERS) $(build_HEADERZ)'; \
76 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
77 else file="$$f"; fi; \
78 if cmp -s $$file $(buildinclude)/$$f 2> /dev/null ; then \
80 echo " $(CP) $$file $(buildinclude)/$$f"; \
81 $(CP) $$file $(buildinclude)/$$f; \
85 all-local: install-build-headers
88 @if test '$(CHECK_LOCAL)' = "no-check-local"; then \
89 foo=''; elif test '$(CHECK_LOCAL)'; then \
90 foo='$(CHECK_LOCAL)'; else \
91 foo='$(PROGRAMS)'; fi; \
92 if test "$$foo"; then \
95 all=`expr $$all + 1`; \
96 if ./$$i --version > /dev/null 2>&1; then \
100 failed=`expr $$failed + 1`; \
103 if test "$$failed" -eq 0; then \
104 banner="All $$all tests passed"; \
106 banner="$$failed of $$all tests failed"; \
108 dashes=`echo "$$banner" | sed s/./=/g`; \
112 test "$$failed" -eq 0; \
114 if test '$(CHECK_SYMBOLS)' != ""; then \
116 echo "Checking symbols"; \
117 sh $(top_srcdir)/cf/check-symbols.sh $(CHECK_SYMBOLS) || exit 1; \
125 @cmp -s $< $@ 2> /dev/null || cp $< $@
127 SUFFIXES += .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8
129 NROFF_MAN = groff -mandoc -Tascii
130 #NROFF_MAN = nroff -man
140 ## MAINTAINERCLEANFILES +=
143 @foo='$(man1_MANS)'; \
147 *.1) foo="$$foo $$i";; \
150 x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
151 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
152 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
156 @foo='$(man3_MANS)'; \
160 *.3) foo="$$foo $$i";; \
163 x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
164 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
165 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
169 @foo='$(man5_MANS)'; \
173 *.5) foo="$$foo $$i";; \
176 x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
177 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
178 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
182 @foo='$(man8_MANS)'; \
186 *.8) foo="$$foo $$i";; \
189 x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
190 echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
191 $(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
194 dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat8-mans
197 $(SHELL) $(top_srcdir)/cf/install-catman.sh "$(INSTALL_DATA)" "$(mkinstalldirs)" "$(srcdir)" "$(DESTDIR)$(mandir)" '$(CATMANEXT)' $(man_MANS) $(man1_MANS) $(man3_MANS) $(man5_MANS) $(man8_MANS)
199 install-data-hook: install-cat-mans
207 LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
210 LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la \
211 $(top_builddir)/lib/asn1/libasn1.la
212 LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
213 LIB_tsasl = $(top_builddir)/lib/tsasl/libtsasl.la
217 LIB_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la