Makefile.in revision 90926
1# Makefile.in generated automatically by automake 1.5 from Makefile.am.
2
3# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4# Free Software Foundation, Inc.
5# This Makefile.in is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14@SET_MAKE@
15
16# $Id: Makefile.am,v 1.51 2001/08/28 08:31:31 assar Exp $
17
18
19# $Id: Makefile.am.common,v 1.3 1999/04/01 14:58:43 joda Exp $
20
21
22# $Id: Makefile.am.common,v 1.31 2001/09/01 11:12:18 assar Exp $
23
24SHELL = @SHELL@
25
26srcdir = @srcdir@
27top_srcdir = @top_srcdir@
28VPATH = @srcdir@
29prefix = @prefix@
30exec_prefix = @exec_prefix@
31
32bindir = @bindir@
33sbindir = @sbindir@
34libexecdir = @libexecdir@
35datadir = @datadir@
36sysconfdir = @sysconfdir@
37sharedstatedir = @sharedstatedir@
38localstatedir = @localstatedir@
39libdir = @libdir@
40infodir = @infodir@
41mandir = @mandir@
42includedir = @includedir@
43oldincludedir = /usr/include
44pkgdatadir = $(datadir)/@PACKAGE@
45pkglibdir = $(libdir)/@PACKAGE@
46pkgincludedir = $(includedir)/@PACKAGE@
47top_builddir = ../..
48
49ACLOCAL = @ACLOCAL@
50AUTOCONF = @AUTOCONF@
51AUTOMAKE = @AUTOMAKE@
52AUTOHEADER = @AUTOHEADER@
53
54INSTALL = @INSTALL@
55INSTALL_PROGRAM = @INSTALL_PROGRAM@
56INSTALL_DATA = @INSTALL_DATA@
57INSTALL_SCRIPT = @INSTALL_SCRIPT@
58INSTALL_HEADER = $(INSTALL_DATA)
59transform = @program_transform_name@
60NORMAL_INSTALL = :
61PRE_INSTALL = :
62POST_INSTALL = :
63NORMAL_UNINSTALL = :
64PRE_UNINSTALL = :
65POST_UNINSTALL = :
66host_alias = @host_alias@
67host_triplet = @host@
68AIX_EXTRA_KAFS = @AIX_EXTRA_KAFS@
69AMTAR = @AMTAR@
70AS = @AS@
71AWK = @AWK@
72CANONICAL_HOST = @CANONICAL_HOST@
73CATMAN = @CATMAN@
74CATMANEXT = @CATMANEXT@
75CC = @CC@
76COMPILE_ET = @COMPILE_ET@
77CPP = @CPP@
78DBLIB = @DBLIB@
79DEPDIR = @DEPDIR@
80DIR_com_err = @DIR_com_err@
81DIR_des = @DIR_des@
82DIR_roken = @DIR_roken@
83DLLTOOL = @DLLTOOL@
84EXEEXT = @EXEEXT@
85EXTRA_LIB45 = @EXTRA_LIB45@
86GROFF = @GROFF@
87INCLUDES_roken = @INCLUDES_roken@
88INCLUDE_ = @INCLUDE_@
89INCLUDE_des = @INCLUDE_des@
90INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91LEX = @LEX@
92LIBOBJS = @LIBOBJS@
93LIBTOOL = @LIBTOOL@
94LIB_ = @LIB_@
95LIB_AUTH_SUBDIRS = @LIB_AUTH_SUBDIRS@
96LIB_NDBM = @LIB_NDBM@
97LIB_com_err = @LIB_com_err@
98LIB_com_err_a = @LIB_com_err_a@
99LIB_com_err_so = @LIB_com_err_so@
100LIB_des = @LIB_des@
101LIB_des_a = @LIB_des_a@
102LIB_des_appl = @LIB_des_appl@
103LIB_des_so = @LIB_des_so@
104LIB_kdb = @LIB_kdb@
105LIB_otp = @LIB_otp@
106LIB_roken = @LIB_roken@
107LIB_security = @LIB_security@
108LN_S = @LN_S@
109LTLIBOBJS = @LTLIBOBJS@
110NEED_WRITEAUTH_FALSE = @NEED_WRITEAUTH_FALSE@
111NEED_WRITEAUTH_TRUE = @NEED_WRITEAUTH_TRUE@
112NROFF = @NROFF@
113OBJDUMP = @OBJDUMP@
114OBJEXT = @OBJEXT@
115PACKAGE = @PACKAGE@
116RANLIB = @RANLIB@
117VERSION = @VERSION@
118VOID_RETSIGTYPE = @VOID_RETSIGTYPE@
119WFLAGS = @WFLAGS@
120WFLAGS_NOIMPLICITINT = @WFLAGS_NOIMPLICITINT@
121WFLAGS_NOUNUSED = @WFLAGS_NOUNUSED@
122X_CFLAGS = @X_CFLAGS@
123X_EXTRA_LIBS = @X_EXTRA_LIBS@
124X_LIBS = @X_LIBS@
125X_PRE_LIBS = @X_PRE_LIBS@
126YACC = @YACC@
127am__include = @am__include@
128am__quote = @am__quote@
129dpagaix_CFLAGS = @dpagaix_CFLAGS@
130dpagaix_LDADD = @dpagaix_LDADD@
131install_sh = @install_sh@
132
133AUTOMAKE_OPTIONS = foreign no-dependencies 1.4b
134
135SUFFIXES = .et .h .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8 .x
136
137INCLUDES = -I$(top_builddir)/include $(INCLUDES_roken) -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_des) $(INCLUDE_openldap)
138
139AM_CFLAGS = $(WFLAGS)
140
141CP = cp
142
143buildinclude = $(top_builddir)/include
144
145LIB_XauReadAuth = @LIB_XauReadAuth@
146LIB_crypt = @LIB_crypt@
147LIB_dbm_firstkey = @LIB_dbm_firstkey@
148LIB_dbopen = @LIB_dbopen@
149LIB_dlopen = @LIB_dlopen@
150LIB_dn_expand = @LIB_dn_expand@
151LIB_el_init = @LIB_el_init@
152LIB_getattr = @LIB_getattr@
153LIB_gethostbyname = @LIB_gethostbyname@
154LIB_getpwent_r = @LIB_getpwent_r@
155LIB_getpwnam_r = @LIB_getpwnam_r@
156LIB_getsockopt = @LIB_getsockopt@
157LIB_logout = @LIB_logout@
158LIB_logwtmp = @LIB_logwtmp@
159LIB_odm_initialize = @LIB_odm_initialize@
160LIB_openpty = @LIB_openpty@
161LIB_pidfile = @LIB_pidfile@
162LIB_res_search = @LIB_res_search@
163LIB_setpcred = @LIB_setpcred@
164LIB_setsockopt = @LIB_setsockopt@
165LIB_socket = @LIB_socket@
166LIB_syslog = @LIB_syslog@
167LIB_tgetent = @LIB_tgetent@
168
169LIBS = @LIBS@
170
171HESIODLIB = @HESIODLIB@
172HESIODINCLUDE = @HESIODINCLUDE@
173INCLUDE_hesiod = @INCLUDE_hesiod@
174LIB_hesiod = @LIB_hesiod@
175
176INCLUDE_krb4 = @INCLUDE_krb4@
177LIB_krb4 = @LIB_krb4@
178
179INCLUDE_openldap = @INCLUDE_openldap@
180LIB_openldap = @LIB_openldap@
181
182INCLUDE_readline = @INCLUDE_readline@
183LIB_readline = @LIB_readline@
184
185LEXLIB = @LEXLIB@
186
187NROFF_MAN = groff -mandoc -Tascii
188
189@KRB4_TRUE@LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
190
191@KRB5_TRUE@LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la \
192@KRB5_TRUE@	$(top_builddir)/lib/asn1/libasn1.la
193
194@KRB5_TRUE@LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
195
196@DCE_TRUE@LIB_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la
197
198CHECK_LOCAL = $(PROGRAMS)
199
200BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c \
201	asn1_Salt.c hdb_err.c hdb_err.h asn1_GENERATION.c
202
203
204foo = asn1_Key.x asn1_GENERATION.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x
205
206CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files
207
208noinst_PROGRAMS = convert_db
209LDADD = libhdb.la \
210	$(LIB_openldap) \
211	../krb5/libkrb5.la \
212	../asn1/libasn1.la \
213	$(LIB_des) \
214	$(LIB_roken)
215
216
217lib_LTLIBRARIES = libhdb.la
218libhdb_la_LDFLAGS = -version-info 7:4:0
219
220libhdb_la_SOURCES = \
221	common.c				\
222	db.c					\
223	db3.c					\
224	hdb-ldap.c				\
225	hdb.c					\
226	keytab.c				\
227	mkey.c					\
228	ndbm.c					\
229	print.c					\
230	$(BUILT_SOURCES)
231
232
233include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h
234
235libhdb_la_LIBADD = ../krb5/libkrb5.la ../asn1/libasn1.la ../roken/libroken.la $(LIB_openldap) $(DBLIB) $(LIB_NDBM)
236subdir = lib/hdb
237mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
238CONFIG_HEADER = $(top_builddir)/include/config.h
239CONFIG_CLEAN_FILES =
240LTLIBRARIES = $(lib_LTLIBRARIES)
241
242libhdb_la_DEPENDENCIES = ../krb5/libkrb5.la ../asn1/libasn1.la \
243	../roken/libroken.la
244am_libhdb_la_OBJECTS = common.lo db.lo db3.lo hdb-ldap.lo hdb.lo \
245	keytab.lo mkey.lo ndbm.lo print.lo asn1_Key.lo asn1_Event.lo \
246	asn1_HDBFlags.lo asn1_hdb_entry.lo asn1_Salt.lo hdb_err.lo \
247	asn1_GENERATION.lo
248libhdb_la_OBJECTS = $(am_libhdb_la_OBJECTS)
249noinst_PROGRAMS = convert_db$(EXEEXT)
250PROGRAMS = $(noinst_PROGRAMS)
251
252convert_db_SOURCES = convert_db.c
253convert_db_OBJECTS = convert_db.$(OBJEXT)
254convert_db_LDADD = $(LDADD)
255convert_db_DEPENDENCIES = libhdb.la ../krb5/libkrb5.la \
256	../asn1/libasn1.la
257convert_db_LDFLAGS =
258
259DEFS = @DEFS@
260DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)/include
261CPPFLAGS = @CPPFLAGS@
262LDFLAGS = @LDFLAGS@
263depcomp =
264COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
265	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
266LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
267	$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
268CCLD = $(CC)
269LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
270	$(AM_LDFLAGS) $(LDFLAGS) -o $@
271CFLAGS = @CFLAGS@
272DIST_SOURCES = $(libhdb_la_SOURCES) convert_db.c
273HEADERS = $(include_HEADERS)
274
275DIST_COMMON = $(include_HEADERS) Makefile.am Makefile.in
276SOURCES = $(libhdb_la_SOURCES) convert_db.c
277
278all: $(BUILT_SOURCES)
279	$(MAKE) $(AM_MAKEFLAGS) all-am
280
281.SUFFIXES:
282.SUFFIXES: .et .h .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8 .x .c .lo .o .obj
283
284mostlyclean-libtool:
285	-rm -f *.lo
286
287clean-libtool:
288	-rm -rf .libs _libs
289
290distclean-libtool:
291	-rm -f libtool
292$(srcdir)/Makefile.in:  Makefile.am $(top_srcdir)/Makefile.am.common $(top_srcdir)/cf/Makefile.am.common $(top_srcdir)/configure.in $(ACLOCAL_M4)
293	cd $(top_srcdir) && \
294	  $(AUTOMAKE) --foreign  lib/hdb/Makefile
295Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
296	cd $(top_builddir) && \
297	  CONFIG_HEADERS= CONFIG_LINKS= \
298	  CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
299install-libLTLIBRARIES: $(lib_LTLIBRARIES)
300	@$(NORMAL_INSTALL)
301	$(mkinstalldirs) $(DESTDIR)$(libdir)
302	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
303	  if test -f $$p; then \
304	    echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p"; \
305	    $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p; \
306	  else :; fi; \
307	done
308
309uninstall-libLTLIBRARIES:
310	@$(NORMAL_UNINSTALL)
311	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
312	  echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
313	  $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
314	done
315
316clean-libLTLIBRARIES:
317	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
318libhdb.la: $(libhdb_la_OBJECTS) $(libhdb_la_DEPENDENCIES) 
319	$(LINK) -rpath $(libdir) $(libhdb_la_LDFLAGS) $(libhdb_la_OBJECTS) $(libhdb_la_LIBADD) $(LIBS)
320
321clean-noinstPROGRAMS:
322	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
323convert_db$(EXEEXT): $(convert_db_OBJECTS) $(convert_db_DEPENDENCIES) 
324	@rm -f convert_db$(EXEEXT)
325	$(LINK) $(convert_db_LDFLAGS) $(convert_db_OBJECTS) $(convert_db_LDADD) $(LIBS)
326
327mostlyclean-compile:
328	-rm -f *.$(OBJEXT) core *.core
329
330distclean-compile:
331	-rm -f *.tab.c
332
333.c.o:
334	$(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
335
336.c.obj:
337	$(COMPILE) -c `cygpath -w $<`
338
339.c.lo:
340	$(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
341uninstall-info-am:
342install-includeHEADERS: $(include_HEADERS)
343	@$(NORMAL_INSTALL)
344	$(mkinstalldirs) $(DESTDIR)$(includedir)
345	@list='$(include_HEADERS)'; for p in $$list; do \
346	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
347	  f="`echo $$p | sed -e 's|^.*/||'`"; \
348	  echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
349	  $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f; \
350	done
351
352uninstall-includeHEADERS:
353	@$(NORMAL_UNINSTALL)
354	@list='$(include_HEADERS)'; for p in $$list; do \
355	  f="`echo $$p | sed -e 's|^.*/||'`"; \
356	  echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
357	  rm -f $(DESTDIR)$(includedir)/$$f; \
358	done
359
360tags: TAGS
361
362ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
363	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
364	unique=`for i in $$list; do \
365	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
366	  done | \
367	  $(AWK) '    { files[$$0] = 1; } \
368	       END { for (i in files) print i; }'`; \
369	mkid -fID $$unique $(LISP)
370
371TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
372		$(TAGS_FILES) $(LISP)
373	tags=; \
374	here=`pwd`; \
375	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
376	unique=`for i in $$list; do \
377	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378	  done | \
379	  $(AWK) '    { files[$$0] = 1; } \
380	       END { for (i in files) print i; }'`; \
381	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
382	  || etags $(ETAGS_ARGS) $$tags  $$unique $(LISP)
383
384GTAGS:
385	here=`CDPATH=: && cd $(top_builddir) && pwd` \
386	  && cd $(top_srcdir) \
387	  && gtags -i $(GTAGS_ARGS) $$here
388
389distclean-tags:
390	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
391
392DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
393
394top_distdir = ../..
395distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
396
397distdir: $(DISTFILES)
398	@for file in $(DISTFILES); do \
399	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
400	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
401	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
402	    $(mkinstalldirs) "$(distdir)/$$dir"; \
403	  fi; \
404	  if test -d $$d/$$file; then \
405	    cp -pR $$d/$$file $(distdir) \
406	    || exit 1; \
407	  else \
408	    test -f $(distdir)/$$file \
409	    || cp -p $$d/$$file $(distdir)/$$file \
410	    || exit 1; \
411	  fi; \
412	done
413	$(MAKE) $(AM_MAKEFLAGS) \
414	  top_distdir="${top_distdir}" distdir="$(distdir)" \
415	  dist-hook
416check-am: all-am
417	$(MAKE) $(AM_MAKEFLAGS) check-local
418check: check-am
419all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) all-local
420
421installdirs:
422	$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
423
424install: install-am
425install-exec: install-exec-am
426install-data: install-data-am
427uninstall: uninstall-am
428
429install-am: all-am
430	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
431
432installcheck: installcheck-am
433install-strip:
434	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
435	  `test -z '$(STRIP)' || \
436	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
437mostlyclean-generic:
438
439clean-generic:
440	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
441
442distclean-generic:
443	-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
444
445maintainer-clean-generic:
446	@echo "This command is intended for maintainers to use"
447	@echo "it deletes files that may require special tools to rebuild."
448	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
449clean: clean-am
450
451clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
452	clean-noinstPROGRAMS mostlyclean-am
453
454distclean: distclean-am
455
456distclean-am: clean-am distclean-compile distclean-generic \
457	distclean-libtool distclean-tags
458
459dvi: dvi-am
460
461dvi-am:
462
463info: info-am
464
465info-am:
466
467install-data-am: install-data-local install-includeHEADERS
468
469install-exec-am: install-libLTLIBRARIES
470	@$(NORMAL_INSTALL)
471	$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
472
473install-info: install-info-am
474
475install-man:
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-am
484
485mostlyclean-am: mostlyclean-compile mostlyclean-generic \
486	mostlyclean-libtool
487
488uninstall-am: uninstall-includeHEADERS uninstall-info-am \
489	uninstall-libLTLIBRARIES
490
491.PHONY: GTAGS all all-am all-local check check-am check-local clean \
492	clean-generic clean-libLTLIBRARIES clean-libtool \
493	clean-noinstPROGRAMS distclean distclean-compile \
494	distclean-generic distclean-libtool distclean-tags distdir dvi \
495	dvi-am info info-am install install-am install-data \
496	install-data-am install-data-local install-exec install-exec-am \
497	install-includeHEADERS install-info install-info-am \
498	install-libLTLIBRARIES install-man install-strip installcheck \
499	installcheck-am installdirs maintainer-clean \
500	maintainer-clean-generic mostlyclean mostlyclean-compile \
501	mostlyclean-generic mostlyclean-libtool tags uninstall \
502	uninstall-am uninstall-includeHEADERS uninstall-info-am \
503	uninstall-libLTLIBRARIES
504
505
506install-suid-programs:
507	@foo='$(bin_SUIDS)'; \
508	for file in $$foo; do \
509	x=$(DESTDIR)$(bindir)/$$file; \
510	if chown 0:0 $$x && chmod u+s $$x; then :; else \
511	echo "*"; \
512	echo "* Failed to install $$x setuid root"; \
513	echo "*"; \
514	fi; done
515
516install-exec-hook: install-suid-programs
517
518install-build-headers:: $(include_HEADERS) $(build_HEADERZ)
519	@foo='$(include_HEADERS) $(build_HEADERZ)'; \
520	for f in $$foo; do \
521		f=`basename $$f`; \
522		if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
523		else file="$$f"; fi; \
524		if cmp -s  $$file $(buildinclude)/$$f 2> /dev/null ; then \
525		: ; else \
526			echo " $(CP) $$file $(buildinclude)/$$f"; \
527			$(CP) $$file $(buildinclude)/$$f; \
528		fi ; \
529	done
530
531all-local: install-build-headers
532#NROFF_MAN = nroff -man
533.1.cat1:
534	$(NROFF_MAN) $< > $@
535.3.cat3:
536	$(NROFF_MAN) $< > $@
537.5.cat5:
538	$(NROFF_MAN) $< > $@
539.8.cat8:
540	$(NROFF_MAN) $< > $@
541
542dist-cat1-mans:
543	@foo='$(man1_MANS)'; \
544	bar='$(man_MANS)'; \
545	for i in $$bar; do \
546	case $$i in \
547	*.1) foo="$$foo $$i";; \
548	esac; done ;\
549	for i in $$foo; do \
550		x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
551		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
552		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
553	done
554
555dist-cat3-mans:
556	@foo='$(man3_MANS)'; \
557	bar='$(man_MANS)'; \
558	for i in $$bar; do \
559	case $$i in \
560	*.3) foo="$$foo $$i";; \
561	esac; done ;\
562	for i in $$foo; do \
563		x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
564		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
565		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
566	done
567
568dist-cat5-mans:
569	@foo='$(man5_MANS)'; \
570	bar='$(man_MANS)'; \
571	for i in $$bar; do \
572	case $$i in \
573	*.5) foo="$$foo $$i";; \
574	esac; done ;\
575	for i in $$foo; do \
576		x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
577		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
578		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
579	done
580
581dist-cat8-mans:
582	@foo='$(man8_MANS)'; \
583	bar='$(man_MANS)'; \
584	for i in $$bar; do \
585	case $$i in \
586	*.8) foo="$$foo $$i";; \
587	esac; done ;\
588	for i in $$foo; do \
589		x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
590		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
591		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
592	done
593
594dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat8-mans
595
596install-cat-mans:
597	$(SHELL) $(top_srcdir)/cf/install-catman.sh "$(INSTALL_DATA)" "$(mkinstalldirs)" "$(srcdir)" "$(DESTDIR)$(mandir)" '$(CATMANEXT)' $(man_MANS) $(man1_MANS) $(man3_MANS) $(man5_MANS) $(man8_MANS)
598
599install-data-local: install-cat-mans
600
601.et.h:
602	$(COMPILE_ET) $<
603.et.c:
604	$(COMPILE_ET) $<
605
606.x.c:
607	@cmp -s $< $@ 2> /dev/null || cp $< $@
608
609check-local::
610	@foo='$(CHECK_LOCAL)'; \
611	  if test "$$foo"; then \
612	  failed=0; all=0; \
613	  for i in $$foo; do \
614	    all=`expr $$all + 1`; \
615	    if ./$$i --version > /dev/null 2>&1; then \
616	      echo "PASS: $$i"; \
617	    else \
618	      echo "FAIL: $$i"; \
619	      failed=`expr $$failed + 1`; \
620	    fi; \
621	  done; \
622	  if test "$$failed" -eq 0; then \
623	    banner="All $$all tests passed"; \
624	  else \
625	    banner="$$failed of $$all tests failed"; \
626	  fi; \
627	  dashes=`echo "$$banner" | sed s/./=/g`; \
628	  echo "$$dashes"; \
629	  echo "$$banner"; \
630	  echo "$$dashes"; \
631	  test "$$failed" -eq 0; \
632	fi
633
634$(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
635
636$(srcdir)/hdb-protos.h:
637	cd $(srcdir); perl ../../cf/make-proto.pl -o hdb-protos.h $(libhdb_la_SOURCES) || rm -f hdb-protos.h
638
639$(srcdir)/hdb-private.h:
640	cd $(srcdir); perl ../../cf/make-proto.pl -p hdb-private.h $(libhdb_la_SOURCES) || rm -f hdb-private.h
641
642$(foo) hdb_asn1.h: asn1_files
643
644asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1
645	../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1
646
647$(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h
648
649$(convert_db_OBJECTS): hdb_asn1.h hdb_err.h
650
651# to help stupid solaris make
652
653hdb_err.h: hdb_err.et
654# Tell versions [3.59,3.63) of GNU make to not export all variables.
655# Otherwise a system limit (for SysV at least) may be exceeded.
656.NOEXPORT:
657