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