xref: /freebsd/crypto/heimdal/lib/sl/Makefile.in (revision 23f282aa31e9b6fceacd449020e936e98d6f2298)
1# Makefile.in generated automatically by automake 1.4 from Makefile.am
2
3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4# This Makefile.in is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11# PARTICULAR PURPOSE.
12
13# $Id: Makefile.am,v 1.15 2000/01/06 21:52:20 assar Exp $
14
15
16# $Id: Makefile.am.common,v 1.3 1999/04/01 14:58:43 joda Exp $
17
18
19# $Id: Makefile.am.common,v 1.13 1999/11/01 03:19:58 assar Exp $
20
21
22SHELL = @SHELL@
23
24srcdir = @srcdir@
25top_srcdir = @top_srcdir@
26VPATH = @srcdir@
27prefix = @prefix@
28exec_prefix = @exec_prefix@
29
30bindir = @bindir@
31sbindir = @sbindir@
32libexecdir = @libexecdir@
33datadir = @datadir@
34sysconfdir = @sysconfdir@
35sharedstatedir = @sharedstatedir@
36localstatedir = @localstatedir@
37libdir = @libdir@
38infodir = @infodir@
39mandir = @mandir@
40includedir = @includedir@
41oldincludedir = /usr/include
42
43DESTDIR =
44
45pkgdatadir = $(datadir)/@PACKAGE@
46pkglibdir = $(libdir)/@PACKAGE@
47pkgincludedir = $(includedir)/@PACKAGE@
48
49top_builddir = ../..
50
51ACLOCAL = @ACLOCAL@
52AUTOCONF = @AUTOCONF@
53AUTOMAKE = @AUTOMAKE@
54AUTOHEADER = @AUTOHEADER@
55
56INSTALL = @INSTALL@
57INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
58INSTALL_DATA = @INSTALL_DATA@
59INSTALL_SCRIPT = @INSTALL_SCRIPT@
60transform = @program_transform_name@
61
62NORMAL_INSTALL = :
63PRE_INSTALL = :
64POST_INSTALL = :
65NORMAL_UNINSTALL = :
66PRE_UNINSTALL = :
67POST_UNINSTALL = :
68host_alias = @host_alias@
69host_triplet = @host@
70AFS_EXTRA_LD = @AFS_EXTRA_LD@
71AIX_EXTRA_KAFS = @AIX_EXTRA_KAFS@
72AWK = @AWK@
73CANONICAL_HOST = @CANONICAL_HOST@
74CATMAN = @CATMAN@
75CATMANEXT = @CATMANEXT@
76CC = @CC@
77DBLIB = @DBLIB@
78EXEEXT = @EXEEXT@
79EXTRA_LIB45 = @EXTRA_LIB45@
80GROFF = @GROFF@
81INCLUDE_ = @INCLUDE_@
82LD = @LD@
83LEX = @LEX@
84LIBOBJS = @LIBOBJS@
85LIBTOOL = @LIBTOOL@
86LIB_ = @LIB_@
87LIB_AUTH_SUBDIRS = @LIB_AUTH_SUBDIRS@
88LIB_kdb = @LIB_kdb@
89LIB_otp = @LIB_otp@
90LIB_roken = @LIB_roken@
91LIB_security = @LIB_security@
92LN_S = @LN_S@
93LTLIBOBJS = @LTLIBOBJS@
94MAKEINFO = @MAKEINFO@
95MAKE_X_PROGS_BIN_PROGS = @MAKE_X_PROGS_BIN_PROGS@
96MAKE_X_PROGS_BIN_SCRPTS = @MAKE_X_PROGS_BIN_SCRPTS@
97MAKE_X_PROGS_LIBEXEC_PROGS = @MAKE_X_PROGS_LIBEXEC_PROGS@
98NEED_WRITEAUTH_FALSE = @NEED_WRITEAUTH_FALSE@
99NEED_WRITEAUTH_TRUE = @NEED_WRITEAUTH_TRUE@
100NM = @NM@
101NROFF = @NROFF@
102OBJEXT = @OBJEXT@
103PACKAGE = @PACKAGE@
104RANLIB = @RANLIB@
105VERSION = @VERSION@
106VOID_RETSIGTYPE = @VOID_RETSIGTYPE@
107WFLAGS = @WFLAGS@
108WFLAGS_NOIMPLICITINT = @WFLAGS_NOIMPLICITINT@
109WFLAGS_NOUNUSED = @WFLAGS_NOUNUSED@
110YACC = @YACC@
111
112AUTOMAKE_OPTIONS = foreign no-dependencies
113
114SUFFIXES = .et .h .1 .3 .5 .8 .cat1 .cat3 .cat5 .cat8 .x
115
116INCLUDES = -I$(top_builddir)/include
117
118AM_CFLAGS =  $(WFLAGS)
119
120COMPILE_ET = $(top_builddir)/lib/com_err/compile_et
121
122buildinclude = $(top_builddir)/include
123
124LIB_XauReadAuth = @LIB_XauReadAuth@
125LIB_crypt = @LIB_crypt@
126LIB_dbm_firstkey = @LIB_dbm_firstkey@
127LIB_dbopen = @LIB_dbopen@
128LIB_dlopen = @LIB_dlopen@
129LIB_dn_expand = @LIB_dn_expand@
130LIB_el_init = @LIB_el_init@
131LIB_getattr = @LIB_getattr@
132LIB_gethostbyname = @LIB_gethostbyname@
133LIB_getpwent_r = @LIB_getpwent_r@
134LIB_getpwnam_r = @LIB_getpwnam_r@
135LIB_getsockopt = @LIB_getsockopt@
136LIB_logout = @LIB_logout@
137LIB_logwtmp = @LIB_logwtmp@
138LIB_odm_initialize = @LIB_odm_initialize@
139LIB_readline = @LIB_readline@
140LIB_res_search = @LIB_res_search@
141LIB_setpcred = @LIB_setpcred@
142LIB_setsockopt = @LIB_setsockopt@
143LIB_socket = @LIB_socket@
144LIB_syslog = @LIB_syslog@
145LIB_tgetent = @LIB_tgetent@
146
147HESIODLIB = @HESIODLIB@
148HESIODINCLUDE = @HESIODINCLUDE@
149INCLUDE_hesiod = @INCLUDE_hesiod@
150LIB_hesiod = @LIB_hesiod@
151
152INCLUDE_krb4 = @INCLUDE_krb4@
153LIB_krb4 = @LIB_krb4@
154
155INCLUDE_readline = @INCLUDE_readline@
156
157LEXLIB = @LEXLIB@
158
159cat1dir = $(mandir)/cat1
160cat3dir = $(mandir)/cat3
161cat5dir = $(mandir)/cat5
162cat8dir = $(mandir)/cat8
163
164MANRX = \(.*\)\.\([0-9]\)
165CATSUFFIX = @CATSUFFIX@
166
167NROFF_MAN = groff -mandoc -Tascii
168
169@KRB4_TRUE@LIB_kafs = $(top_builddir)/lib/kafs/libkafs.la $(AIX_EXTRA_KAFS)
170
171@KRB5_TRUE@LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la 	$(top_builddir)/lib/asn1/libasn1.la
172@KRB5_TRUE@LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
173
174CHECK_LOCAL = $(PROGRAMS)
175
176YFLAGS = -d
177
178include_HEADERS = sl.h
179
180lib_LTLIBRARIES = libsl.la libss.la
181libsl_la_LDFLAGS = -version-info 0:1:0
182libss_la_LDFLAGS = -version-info 0:1:0
183
184RENAME_SRC = roken_rename.h strtok_r.c snprintf.c
185
186libsl_la_SOURCES = sl_locl.h sl.c
187libss_la_SOURCES = $(libsl_la_SOURCES) ss.c ss.h
188
189EXTRA_libsl_la_SOURCES = strtok_r.c snprintf.c roken_rename.h
190
191# install these?
192
193noinst_PROGRAMS = mk_cmds
194
195mk_cmds_SOURCES = make_cmds.c make_cmds.h parse.y lex.l
196
197RENAME_mk_cmds_SRC = roken_rename.h snprintf.c
198
199EXTRA_mk_cmds_SOURCES = snprintf.c roken_rename.h
200
201ssincludedir = $(includedir)/ss
202ssinclude_HEADERS = ss.h
203
204CLEANFILES = lex.c parse.c parse.h snprintf.c strtok_r.c
205
206LDADD =  	$(LIB_roken) 	$(LEXLIB)
207
208mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
209CONFIG_HEADER = ../../include/config.h
210CONFIG_CLEAN_FILES =
211LTLIBRARIES =  $(lib_LTLIBRARIES)
212
213
214DEFS = @DEFS@ -I. -I$(srcdir) -I../../include
215CPPFLAGS = @CPPFLAGS@
216LDFLAGS = @LDFLAGS@
217LIBS = @LIBS@
218X_CFLAGS = @X_CFLAGS@
219X_LIBS = @X_LIBS@
220X_EXTRA_LIBS = @X_EXTRA_LIBS@
221X_PRE_LIBS = @X_PRE_LIBS@
222libsl_la_LIBADD =
223libsl_la_OBJECTS =  sl.lo
224libss_la_LIBADD =
225libss_la_OBJECTS =  sl.lo ss.lo
226noinst_PROGRAMS =  mk_cmds$(EXEEXT)
227PROGRAMS =  $(noinst_PROGRAMS)
228
229mk_cmds_OBJECTS =  make_cmds.$(OBJEXT) parse.$(OBJEXT) lex.$(OBJEXT)
230mk_cmds_LDADD = $(LDADD)
231mk_cmds_DEPENDENCIES =
232mk_cmds_LDFLAGS =
233LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
234CFLAGS = @CFLAGS@
235COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
236LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
237CCLD = $(CC)
238LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
239HEADERS =  $(include_HEADERS) $(ssinclude_HEADERS)
240
241DIST_COMMON =  ChangeLog Makefile.am Makefile.in lex.c parse.c
242
243
244DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
245
246TAR = tar
247GZIP_ENV = --best
248SOURCES = $(libsl_la_SOURCES) $(EXTRA_libsl_la_SOURCES) $(libss_la_SOURCES) $(mk_cmds_SOURCES) $(EXTRA_mk_cmds_SOURCES)
249OBJECTS = $(libsl_la_OBJECTS) $(libss_la_OBJECTS) $(mk_cmds_OBJECTS)
250
251all: all-redirect
252.SUFFIXES:
253.SUFFIXES: .1 .3 .5 .8 .S .c .cat1 .cat3 .cat5 .cat8 .et .h .l .lo .o .obj .s .x .y
254$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/Makefile.am.common $(top_srcdir)/cf/Makefile.am.common
255	cd $(top_srcdir) && $(AUTOMAKE) --foreign lib/sl/Makefile
256
257Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
258	cd $(top_builddir) \
259	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
260
261
262mostlyclean-libLTLIBRARIES:
263
264clean-libLTLIBRARIES:
265	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
266
267distclean-libLTLIBRARIES:
268
269maintainer-clean-libLTLIBRARIES:
270
271install-libLTLIBRARIES: $(lib_LTLIBRARIES)
272	@$(NORMAL_INSTALL)
273	$(mkinstalldirs) $(DESTDIR)$(libdir)
274	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
275	  if test -f $$p; then \
276	    echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
277	    $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
278	  else :; fi; \
279	done
280
281uninstall-libLTLIBRARIES:
282	@$(NORMAL_UNINSTALL)
283	list='$(lib_LTLIBRARIES)'; for p in $$list; do \
284	  $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
285	done
286
287.c.o:
288	$(COMPILE) -c $<
289
290# FIXME: We should only use cygpath when building on Windows,
291# and only if it is available.
292.c.obj:
293	$(COMPILE) -c `cygpath -w $<`
294
295.s.o:
296	$(COMPILE) -c $<
297
298.S.o:
299	$(COMPILE) -c $<
300
301mostlyclean-compile:
302	-rm -f *.o core *.core
303	-rm -f *.$(OBJEXT)
304
305clean-compile:
306
307distclean-compile:
308	-rm -f *.tab.c
309
310maintainer-clean-compile:
311
312.c.lo:
313	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
314
315.s.lo:
316	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
317
318.S.lo:
319	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
320
321mostlyclean-libtool:
322	-rm -f *.lo
323
324clean-libtool:
325	-rm -rf .libs _libs
326
327distclean-libtool:
328
329maintainer-clean-libtool:
330
331libsl.la: $(libsl_la_OBJECTS) $(libsl_la_DEPENDENCIES)
332	$(LINK) -rpath $(libdir) $(libsl_la_LDFLAGS) $(libsl_la_OBJECTS) $(libsl_la_LIBADD) $(LIBS)
333
334libss.la: $(libss_la_OBJECTS) $(libss_la_DEPENDENCIES)
335	$(LINK) -rpath $(libdir) $(libss_la_LDFLAGS) $(libss_la_OBJECTS) $(libss_la_LIBADD) $(LIBS)
336
337mostlyclean-noinstPROGRAMS:
338
339clean-noinstPROGRAMS:
340	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
341
342distclean-noinstPROGRAMS:
343
344maintainer-clean-noinstPROGRAMS:
345
346mk_cmds$(EXEEXT): $(mk_cmds_OBJECTS) $(mk_cmds_DEPENDENCIES)
347	@rm -f mk_cmds$(EXEEXT)
348	$(LINK) $(mk_cmds_LDFLAGS) $(mk_cmds_OBJECTS) $(mk_cmds_LDADD) $(LIBS)
349.l.c:
350	$(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
351.y.c:
352	$(YACC) $(AM_YFLAGS) $(YFLAGS) $< && mv y.tab.c $*.c
353	if test -f y.tab.h; then \
354	if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
355	else :; fi
356parse.h: parse.c
357
358
359install-includeHEADERS: $(include_HEADERS)
360	@$(NORMAL_INSTALL)
361	$(mkinstalldirs) $(DESTDIR)$(includedir)
362	@list='$(include_HEADERS)'; for p in $$list; do \
363	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
364	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
365	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
366	done
367
368uninstall-includeHEADERS:
369	@$(NORMAL_UNINSTALL)
370	list='$(include_HEADERS)'; for p in $$list; do \
371	  rm -f $(DESTDIR)$(includedir)/$$p; \
372	done
373
374install-ssincludeHEADERS: $(ssinclude_HEADERS)
375	@$(NORMAL_INSTALL)
376	$(mkinstalldirs) $(DESTDIR)$(ssincludedir)
377	@list='$(ssinclude_HEADERS)'; for p in $$list; do \
378	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
379	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(ssincludedir)/$$p"; \
380	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(ssincludedir)/$$p; \
381	done
382
383uninstall-ssincludeHEADERS:
384	@$(NORMAL_UNINSTALL)
385	list='$(ssinclude_HEADERS)'; for p in $$list; do \
386	  rm -f $(DESTDIR)$(ssincludedir)/$$p; \
387	done
388
389tags: TAGS
390
391ID: $(HEADERS) $(SOURCES) $(LISP)
392	list='$(SOURCES) $(HEADERS)'; \
393	unique=`for i in $$list; do echo $$i; done | \
394	  awk '    { files[$$0] = 1; } \
395	       END { for (i in files) print i; }'`; \
396	here=`pwd` && cd $(srcdir) \
397	  && mkid -f$$here/ID $$unique $(LISP)
398
399TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
400	tags=; \
401	here=`pwd`; \
402	list='$(SOURCES) $(HEADERS)'; \
403	unique=`for i in $$list; do echo $$i; done | \
404	  awk '    { files[$$0] = 1; } \
405	       END { for (i in files) print i; }'`; \
406	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
407	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
408
409mostlyclean-tags:
410
411clean-tags:
412
413distclean-tags:
414	-rm -f TAGS ID
415
416maintainer-clean-tags:
417
418distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
419
420subdir = lib/sl
421
422distdir: $(DISTFILES)
423	@for file in $(DISTFILES); do \
424	  d=$(srcdir); \
425	  if test -d $$d/$$file; then \
426	    cp -pr $$/$$file $(distdir)/$$file; \
427	  else \
428	    test -f $(distdir)/$$file \
429	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
430	    || cp -p $$d/$$file $(distdir)/$$file || :; \
431	  fi; \
432	done
433	$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
434info-am:
435info: info-am
436dvi-am:
437dvi: dvi-am
438check-am: all-am
439	$(MAKE) $(AM_MAKEFLAGS) check-local
440check: check-am
441installcheck-am:
442installcheck: installcheck-am
443install-exec-am: install-libLTLIBRARIES
444	@$(NORMAL_INSTALL)
445	$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
446install-exec: install-exec-am
447
448install-data-am: install-includeHEADERS install-ssincludeHEADERS \
449		install-data-local
450install-data: install-data-am
451
452install-am: all-am
453	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
454install: install-am
455uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS \
456		uninstall-ssincludeHEADERS
457uninstall: uninstall-am
458all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) all-local
459all-redirect: all-am
460install-strip:
461	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
462installdirs:
463	$(mkinstalldirs)  $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) \
464		$(DESTDIR)$(ssincludedir)
465
466
467mostlyclean-generic:
468
469clean-generic:
470	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
471
472distclean-generic:
473	-rm -f Makefile $(CONFIG_CLEAN_FILES)
474	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
475
476maintainer-clean-generic:
477	-test -z "lexlparsehparsec" || rm -f lexl parseh parsec
478mostlyclean-am:  mostlyclean-libLTLIBRARIES mostlyclean-compile \
479		mostlyclean-libtool mostlyclean-noinstPROGRAMS \
480		mostlyclean-tags mostlyclean-generic
481
482mostlyclean: mostlyclean-am
483
484clean-am:  clean-libLTLIBRARIES clean-compile clean-libtool \
485		clean-noinstPROGRAMS clean-tags clean-generic \
486		mostlyclean-am
487
488clean: clean-am
489
490distclean-am:  distclean-libLTLIBRARIES distclean-compile \
491		distclean-libtool distclean-noinstPROGRAMS \
492		distclean-tags distclean-generic clean-am
493	-rm -f libtool
494
495distclean: distclean-am
496
497maintainer-clean-am:  maintainer-clean-libLTLIBRARIES \
498		maintainer-clean-compile maintainer-clean-libtool \
499		maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
500		maintainer-clean-generic distclean-am
501	@echo "This command is intended for maintainers to use;"
502	@echo "it deletes files that may require special tools to rebuild."
503
504maintainer-clean: maintainer-clean-am
505
506.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
507clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
508uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
509distclean-compile clean-compile maintainer-clean-compile \
510mostlyclean-libtool distclean-libtool clean-libtool \
511maintainer-clean-libtool mostlyclean-noinstPROGRAMS \
512distclean-noinstPROGRAMS clean-noinstPROGRAMS \
513maintainer-clean-noinstPROGRAMS uninstall-includeHEADERS \
514install-includeHEADERS uninstall-ssincludeHEADERS \
515install-ssincludeHEADERS tags mostlyclean-tags distclean-tags \
516clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi \
517check-local check check-am installcheck-am installcheck install-exec-am \
518install-exec install-data-local install-data-am install-data install-am \
519install uninstall-am uninstall all-local all-redirect all-am all \
520installdirs mostlyclean-generic distclean-generic clean-generic \
521maintainer-clean-generic clean mostlyclean distclean maintainer-clean
522
523
524install-suid-programs:
525	@foo='$(bin_SUIDS)'; \
526	for file in $$foo; do \
527	x=$(DESTDIR)$(bindir)/$$file; \
528	if chown 0:0 $$x && chmod u+s $$x; then :; else \
529	chmod 0 $$x; fi; done
530
531install-exec-hook: install-suid-programs
532
533install-build-headers:: $(include_HEADERS) $(build_HEADERZ)
534	@foo='$(include_HEADERS) $(build_HEADERZ)'; \
535	for f in $$foo; do \
536		f=`basename $$f`; \
537		if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
538		else file="$$f"; fi; \
539		if cmp -s  $$file $(buildinclude)/$$f 2> /dev/null ; then \
540		: ; else \
541			echo " cp $$file $(buildinclude)/$$f"; \
542			cp $$file $(buildinclude)/$$f; \
543		fi ; \
544	done
545
546all-local: install-build-headers
547#NROFF_MAN = nroff -man
548.1.cat1:
549	$(NROFF_MAN) $< > $@
550.3.cat3:
551	$(NROFF_MAN) $< > $@
552.5.cat5:
553	$(NROFF_MAN) $< > $@
554.8.cat8:
555	$(NROFF_MAN) $< > $@
556
557dist-cat1-mans:
558	@foo='$(man1_MANS)'; \
559	bar='$(man_MANS)'; \
560	for i in $$bar; do \
561	case $$i in \
562	*.1) foo="$$foo $$i";; \
563	esac; done ;\
564	for i in $$foo; do \
565		x=`echo $$i | sed 's/\.[^.]*$$/.cat1/'`; \
566		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
567		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
568	done
569
570dist-cat3-mans:
571	@foo='$(man3_MANS)'; \
572	bar='$(man_MANS)'; \
573	for i in $$bar; do \
574	case $$i in \
575	*.3) foo="$$foo $$i";; \
576	esac; done ;\
577	for i in $$foo; do \
578		x=`echo $$i | sed 's/\.[^.]*$$/.cat3/'`; \
579		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
580		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
581	done
582
583dist-cat5-mans:
584	@foo='$(man5_MANS)'; \
585	bar='$(man_MANS)'; \
586	for i in $$bar; do \
587	case $$i in \
588	*.5) foo="$$foo $$i";; \
589	esac; done ;\
590	for i in $$foo; do \
591		x=`echo $$i | sed 's/\.[^.]*$$/.cat5/'`; \
592		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
593		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
594	done
595
596dist-cat8-mans:
597	@foo='$(man8_MANS)'; \
598	bar='$(man_MANS)'; \
599	for i in $$bar; do \
600	case $$i in \
601	*.8) foo="$$foo $$i";; \
602	esac; done ;\
603	for i in $$foo; do \
604		x=`echo $$i | sed 's/\.[^.]*$$/.cat8/'`; \
605		echo "$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x"; \
606		$(NROFF_MAN) $(srcdir)/$$i > $(distdir)/$$x; \
607	done
608
609dist-hook: dist-cat1-mans dist-cat3-mans dist-cat5-mans dist-cat8-mans
610
611install-cat1-mans:
612	@ext=1;\
613	foo='$(man1_MANS)'; \
614	bar='$(man_MANS)'; \
615	for i in $$bar; do \
616	case $$i in \
617	*.1) foo="$$foo $$i";; \
618	esac; done; \
619	if test "$$foo"; then \
620		$(mkinstalldirs) $(DESTDIR)$(cat1dir); \
621		for x in $$foo; do \
622			f=`echo $$x | sed 's/\.[^.]*$$/.cat1/'`; \
623			if test -f "$(srcdir)/$$f"; then \
624				b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
625				echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat1dir)/$$b.$(CATSUFFIX)";\
626				$(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat1dir)/$$b.$(CATSUFFIX);\
627			 fi; \
628		done ;\
629	fi
630
631install-cat3-mans:
632	@ext=3;\
633	foo='$(man3_MANS)'; \
634	bar='$(man_MANS)'; \
635	for i in $$bar; do \
636	case $$i in \
637	*.3) foo="$$foo $$i";; \
638	esac; done; \
639	if test "$$foo"; then \
640		$(mkinstalldirs) $(DESTDIR)$(cat3dir); \
641		for x in $$foo; do \
642			f=`echo $$x | sed 's/\.[^.]*$$/.cat3/'`; \
643			if test -f "$(srcdir)/$$f"; then \
644				b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
645				echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat3dir)/$$b.$(CATSUFFIX)";\
646				$(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat3dir)/$$b.$(CATSUFFIX);\
647			 fi; \
648		done ;\
649	fi
650
651install-cat5-mans:
652	@ext=5;\
653	foo='$(man5_MANS)'; \
654	bar='$(man_MANS)'; \
655	for i in $$bar; do \
656	case $$i in \
657	*.5) foo="$$foo $$i";; \
658	esac; done; \
659	if test "$$foo"; then \
660		$(mkinstalldirs) $(DESTDIR)$(cat5dir); \
661		for x in $$foo; do \
662			f=`echo $$x | sed 's/\.[^.]*$$/.cat5/'`; \
663			if test -f "$(srcdir)/$$f"; then \
664				b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
665				echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat5dir)/$$b.$(CATSUFFIX)";\
666				$(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat5dir)/$$b.$(CATSUFFIX);\
667			 fi; \
668		done ;\
669	fi
670
671install-cat8-mans:
672	@ext=8;\
673	foo='$(man8_MANS)'; \
674	bar='$(man_MANS)'; \
675	for i in $$bar; do \
676	case $$i in \
677	*.8) foo="$$foo $$i";; \
678	esac; done; \
679	if test "$$foo"; then \
680		$(mkinstalldirs) $(DESTDIR)$(cat8dir); \
681		for x in $$foo; do \
682			f=`echo $$x | sed 's/\.[^.]*$$/.cat8/'`; \
683			if test -f "$(srcdir)/$$f"; then \
684				b=`echo $$x | sed 's!$(MANRX)!\1!'`; \
685				echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(cat8dir)/$$b.$(CATSUFFIX)";\
686				$(INSTALL_DATA) $(srcdir)/$$g $(DESTDIR)$(cat8dir)/$$b.$(CATSUFFIX);\
687			 fi; \
688		done ;\
689	fi
690
691install-cat-mans: install-cat1-mans install-cat3-mans install-cat5-mans install-cat8-mans
692
693install-data-local: install-cat-mans
694
695.et.h:
696	$(COMPILE_ET) $<
697.et.c:
698	$(COMPILE_ET) $<
699
700.x.c:
701	@cmp -s $< $@ 2> /dev/null || cp $< $@
702
703check-local::
704	@foo='$(CHECK_LOCAL)'; \
705	  if test "$$foo"; then \
706	  failed=0; all=0; \
707	  for i in $$foo; do \
708	    all=`expr $$all + 1`; \
709	    if ./$$i --version > /dev/null 2>&1; then \
710	      echo "PASS: $$i"; \
711	    else \
712	      echo "FAIL: $$i"; \
713	      failed=`expr $$failed + 1`; \
714	    fi; \
715	  done; \
716	  if test "$$failed" -eq 0; then \
717	    banner="All $$all tests passed"; \
718	  else \
719	    banner="$$failed of $$all tests failed"; \
720	  fi; \
721	  dashes=`echo "$$banner" | sed s/./=/g`; \
722	  echo "$$dashes"; \
723	  echo "$$banner"; \
724	  echo "$$dashes"; \
725	  test "$$failed" -eq 0; \
726	fi
727
728$(mk_cmds_OBJECTS): parse.h
729
730strtok_r.c:
731	$(LN_S) $(srcdir)/../roken/strtok_r.c .
732snprintf.c:
733	$(LN_S) $(srcdir)/../roken/snprintf.c .
734
735# Tell versions [3.59,3.63) of GNU make to not export all variables.
736# Otherwise a system limit (for SysV at least) may be exceeded.
737.NOEXPORT:
738