# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@

#
# $Header: /home/cvs/d4x/main/Makefile.am,v 1.3.2.4 2005/09/13 08:47:17 max Exp $
#

#
# $Header: /home/cvs/d4x/admin/Makefile.all,v 1.2 2005/03/03 14:25:33 zaufi Exp $
#

#
# $Header: /home/cvs/d4x/admin/Makefile.common,v 1.2 2005/03/03 14:25:33 zaufi Exp $
#
# Rules to be included in every Makefile
#

#
# $Header: /home/cvs/d4x/admin/Makefile.misc,v 1.2 2005/03/03 14:25:33 zaufi Exp $
#

#
# $Header: /home/cvs/d4x/admin/Makefile.deps,v 1.2 2005/03/03 14:25:33 zaufi Exp $
#

#
# $Header: /home/cvs/d4x/admin/Makefile.gengetopt,v 1.1 2005/03/03 14:25:33 zaufi Exp $
#
# Support to generate command line parsers
#


srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
	$(srcdir)/Makefile.in $(top_srcdir)/admin/Makefile.all \
	$(top_srcdir)/admin/Makefile.common \
	$(top_srcdir)/admin/Makefile.deps \
	$(top_srcdir)/admin/Makefile.gengetopt \
	$(top_srcdir)/admin/Makefile.misc
bin_PROGRAMS = nt$(EXEEXT)
subdir = main
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ac_choose_boost.m4 \
	$(top_srcdir)/m4/ac_path_gengetopt.m4 \
	$(top_srcdir)/m4/ac_pkg_info_header.m4 \
	$(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/cppunit.m4 \
	$(top_srcdir)/m4/d4xao.m4 $(top_srcdir)/m4/gettext.m4 \
	$(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \
	$(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \
	$(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \
	$(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \
	$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
	$(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/longdouble.m4 \
	$(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \
	$(top_srcdir)/m4/openssl.m4 $(top_srcdir)/m4/po.m4 \
	$(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \
	$(top_srcdir)/m4/signed.m4 $(top_srcdir)/m4/size_max.m4 \
	$(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \
	$(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/wchar_t.m4 \
	$(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \
	$(top_srcdir)/support/version.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
PROGRAMS = $(bin_PROGRAMS)
am__nt_SOURCES_DIST = $(strip addr.cc queue.cc path.cc alt.cc \
	history.cc recode.cc autoadd.cc hproxy.cc savedvar.cc \
	base64.cc html.cc savelog.cc client.cc http.cc schedule.cc \
	httpd.cc segments.cc sslsocket.cc config.cc liststr.cc \
	signal.cc cookie.cc locstr.cc sm.cc db.cc log.cc sndserv.cc \
	dlist.cc main.cc socket.cc download.cc mainlog.cc socks.cc \
	dqueue.cc memwl.cc sort.cc eff.cc meter.cc speed.cc filter.cc \
	msgqueue.cc srvclt.cc fsearch.cc mutex.cc var.cc ftp.cc nt.cc \
	xml.cc ftpd.cc ping.cc ) nt.all_cc.cc
am__objects_1 = addr.$(OBJEXT) queue.$(OBJEXT) path.$(OBJEXT) \
	alt.$(OBJEXT) history.$(OBJEXT) recode.$(OBJEXT) \
	autoadd.$(OBJEXT) hproxy.$(OBJEXT) savedvar.$(OBJEXT) \
	base64.$(OBJEXT) html.$(OBJEXT) savelog.$(OBJEXT) \
	client.$(OBJEXT) http.$(OBJEXT) schedule.$(OBJEXT) \
	httpd.$(OBJEXT) segments.$(OBJEXT) sslsocket.$(OBJEXT) \
	config.$(OBJEXT) liststr.$(OBJEXT) signal.$(OBJEXT) \
	cookie.$(OBJEXT) locstr.$(OBJEXT) sm.$(OBJEXT) db.$(OBJEXT) \
	log.$(OBJEXT) sndserv.$(OBJEXT) dlist.$(OBJEXT) main.$(OBJEXT) \
	socket.$(OBJEXT) download.$(OBJEXT) mainlog.$(OBJEXT) \
	socks.$(OBJEXT) dqueue.$(OBJEXT) memwl.$(OBJEXT) \
	sort.$(OBJEXT) eff.$(OBJEXT) meter.$(OBJEXT) speed.$(OBJEXT) \
	filter.$(OBJEXT) msgqueue.$(OBJEXT) srvclt.$(OBJEXT) \
	fsearch.$(OBJEXT) mutex.$(OBJEXT) var.$(OBJEXT) ftp.$(OBJEXT) \
	nt.$(OBJEXT) xml.$(OBJEXT) ftpd.$(OBJEXT) ping.$(OBJEXT)
@EXTRA_OPTIMIZE_FALSE@am_nt_OBJECTS = $(am__objects_1)
@EXTRA_OPTIMIZE_TRUE@am_nt_OBJECTS = nt.all_cc.$(OBJEXT)
nt_OBJECTS = $(am_nt_OBJECTS)
nt_DEPENDENCIES = $(top_builddir)/main/face/libface.a
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
am__depfiles_maybe = depfiles
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
	-o $@
SOURCES = $(nt_SOURCES)
DIST_SOURCES = $(am__nt_SOURCES_DIST)
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
	html-recursive info-recursive install-data-recursive \
	install-exec-recursive install-info-recursive \
	install-recursive installcheck-recursive installdirs-recursive \
	pdf-recursive ps-recursive uninstall-info-recursive \
	uninstall-recursive
HEADERS = $(noinst_HEADERS)
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ALLOCA = @ALLOCA@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AO_CFLAGS = @AO_CFLAGS@
AO_LIBS = @AO_LIBS@
AUTOCONF = @AUTOCONF@
AUTOGEN = @AUTOGEN@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
BOOST_LDFLAGS = @BOOST_LDFLAGS@
BOOST_VERSION = @BOOST_VERSION@
BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
CATOBJEXT = @CATOBJEXT@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@
CPPUNIT_CONFIG = @CPPUNIT_CONFIG@
CPPUNIT_LIBS = @CPPUNIT_LIBS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATADIRNAME = @DATADIRNAME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DOT = @DOT@
DOXYGEN = @DOXYGEN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ESD_CFLAGS = @ESD_CFLAGS@
ESD_CONFIG = @ESD_CONFIG@
ESD_LIBS = @ESD_LIBS@
EXEEXT = @EXEEXT@
EXTRA_OPTIMIZE_FALSE = @EXTRA_OPTIMIZE_FALSE@
EXTRA_OPTIMIZE_TRUE = @EXTRA_OPTIMIZE_TRUE@
GENCAT = @GENCAT@
GENGETOPT = @GENGETOPT@
GLIBC21 = @GLIBC21@
GLIB_CFLAGS = @GLIB_CFLAGS@
GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
GLIB_LIBS = @GLIB_LIBS@
GLIB_MKENUMS = @GLIB_MKENUMS@
GMSGFMT = @GMSGFMT@
GOBJECT_QUERY = @GOBJECT_QUERY@
GTK_CFLAGS = @GTK_CFLAGS@
GTK_LIBS = @GTK_LIBS@
HAVE_ASPRINTF = @HAVE_ASPRINTF@
HAVE_DOT = @HAVE_DOT@
HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
HAVE_SNPRINTF = @HAVE_SNPRINTF@
HAVE_WPRINTF = @HAVE_WPRINTF@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INSTOBJEXT = @INSTOBJEXT@
INTLBISON = @INTLBISON@
INTLLIBS = @INTLLIBS@
INTLOBJS = @INTLOBJS@
INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
LDFLAGS = @LDFLAGS@
LIBICONV = @LIBICONV@
LIBINTL = @LIBINTL@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@
LTLIBINTL = @LTLIBINTL@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
MSGMERGE = @MSGMERGE@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
POSUB = @POSUB@
RANLIB = @RANLIB@
RPM = @RPM@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SSL_CFLAGS = @SSL_CFLAGS@
SSL_LDFLAGS = @SSL_LDFLAGS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
WITH_UNIT_TESTS_FALSE = @WITH_UNIT_TESTS_FALSE@
WITH_UNIT_TESTS_TRUE = @WITH_UNIT_TESTS_TRUE@
XGETTEXT = @XGETTEXT@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
MKMSG = echo make[$(MAKELEVEL)]:

#
# Create list of programs and their servers list in format:
#
# program1=[server1 ... serverN] ... programN=[...]
#
AM_RPG_TO_INSTALL_TO = $(foreach prs,                                                   \
                     $(patsubst %, %_REMOTE_SERVERS, $(bin_PROGRAMS) $(bin_SCRIPTS)), \
                     $(subst _REMOTE_SERVERS,,$(prs))=[$(strip $($(prs)))])


#
RES_COL = 70
# 'OK' message
SUCCESS = echo -e "\\033[$(RES_COL)G" '[ ' "\\033[1;32m"OK"\\033[0;39m" ' ]'
# 'Fail' message
FAILURE = echo -e "\\033[$(RES_COL)G" '[' "\\033[1;31m"Fail"\\033[0;39m" ']'

# Include automatic dependencies tracking in maintainer mode only

# Get all depended targets for all 'main' (primary) targets as space separated list
@MAINTAINER_MODE_TRUE@AM_MAIN_TGTS = $(sort $(bin_PROGRAMS) \
@MAINTAINER_MODE_TRUE@                      $(lib_LTLIBRARIES) \
@MAINTAINER_MODE_TRUE@                      $(pkglib_LTLIBRARIES) \
@MAINTAINER_MODE_TRUE@                      $(noinst_LIBRARIES) \
@MAINTAINER_MODE_TRUE@                      $(LIBRARIES) \
@MAINTAINER_MODE_TRUE@                      $(check_PROGRAMS) \
@MAINTAINER_MODE_TRUE@                      $(AM_CUSTOM_PRIMARIES))

@MAINTAINER_MODE_TRUE@AM_DEPTGTS := $(sort $(foreach t, $(AM_MAIN_TGTS), \
@MAINTAINER_MODE_TRUE@                $($(addsuffix _DEPENDENCIES, $(subst .,_,$(subst -,_,$(t)))))))

SUBDIRS = face
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *~

# FIXME: We override 'default' value used by automake to avoid headers conflict
DEFAULT_INCLUDES = -I$(top_builddir)
@EXTRA_OPTIMIZE_FALSE@nt_SOURCES = $(nt_SOURCES_LIST)
@EXTRA_OPTIMIZE_TRUE@nt_SOURCES = nt.all_cc.cc

# List of C++ modules (got from `ls -w50 -q *.cc)
nt_SOURCES_LIST = $(strip                   \
    addr.cc      queue.cc     path.cc       \
    alt.cc       history.cc   recode.cc     \
    autoadd.cc   hproxy.cc    savedvar.cc   \
    base64.cc    html.cc      savelog.cc    \
    client.cc    http.cc      schedule.cc   \
    httpd.cc     segments.cc  sslsocket.cc  \
    config.cc    liststr.cc   signal.cc     \
    cookie.cc    locstr.cc    sm.cc         \
    db.cc        log.cc       sndserv.cc    \
    dlist.cc     main.cc      socket.cc     \
    download.cc  mainlog.cc   socks.cc      \
    dqueue.cc    memwl.cc     sort.cc       \
    eff.cc       meter.cc     speed.cc      \
    filter.cc    msgqueue.cc  srvclt.cc     \
    fsearch.cc   mutex.cc     var.cc        \
    ftp.cc       nt.cc        xml.cc        \
    ftpd.cc      ping.cc                    \
)

noinst_HEADERS = $(strip                           \
    addr.h      eff.h       log.h       schedule.h \
    alt.h       filter.h    main.h      segments.h \
    autoadd.h   fsearch.h   mainlog.h   signal.h   \
    base64.h    ftp.h       memwl.h     sm.h       \
    client.h    ftpd.h      meter.h     sndserv.h  \
    msgqueue.h  socket.h    sslsocket.h path.h     \
    config.h    history.h   mutex.h     socks.h    \
    cookie.h    hproxy.h    ntlocale.h  sort.h     \
    db.h        html.h      ping.h      speed.h    \
    dbc.h       http.h      queue.h     srvclt.h   \
    dlist.h     httpd.h     recode.h    var.h      \
    download.h  liststr.h   savedvar.h  xml.h      \
    dqueue.h    locstr.h    savelog.h              \
)

nt_LDADD = $(top_builddir)/main/face/libface.a
all: all-recursive

.SUFFIXES:
.SUFFIXES: .cc .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/admin/Makefile.all $(top_srcdir)/admin/Makefile.common $(top_srcdir)/admin/Makefile.misc $(top_srcdir)/admin/Makefile.deps $(top_srcdir)/admin/Makefile.gengetopt $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
		&& exit 0; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  main/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  main/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
install-binPROGRAMS: $(bin_PROGRAMS)
	@$(NORMAL_INSTALL)
	test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
	  if test -f $$p \
	  ; then \
	    f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
	   echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
	   $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
	  else :; fi; \
	done

uninstall-binPROGRAMS:
	@$(NORMAL_UNINSTALL)
	@list='$(bin_PROGRAMS)'; for p in $$list; do \
	  f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
	  echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
	  rm -f "$(DESTDIR)$(bindir)/$$f"; \
	done

clean-binPROGRAMS:
	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
nt$(EXEEXT): $(nt_OBJECTS) $(nt_DEPENDENCIES) 
	@rm -f nt$(EXEEXT)
	$(CXXLINK) $(nt_LDFLAGS) $(nt_OBJECTS) $(nt_LDADD) $(LIBS)

mostlyclean-compile:
	-rm -f *.$(OBJEXT)

distclean-compile:
	-rm -f *.tab.c

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alt.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/autoadd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base64.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cookie.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlist.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/download.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dqueue.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eff.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filter.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsearch.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftpd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/history.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hproxy.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/html.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/httpd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/liststr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/locstr.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mainlog.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memwl.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/meter.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msgqueue.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutex.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nt.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nt.all_cc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ping.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/queue.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recode.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/savedvar.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/savelog.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/schedule.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/segments.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signal.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sm.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sndserv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/socket.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/socks.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sort.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/speed.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/srvclt.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sslsocket.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/var.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml.Po@am__quote@

.cc.o:
@am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ $<

.cc.obj:
@am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
uninstall-info-am:

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
	@failcom='exit 1'; \
	for f in x $$MAKEFLAGS; do \
	  case $$f in \
	    *=* | --[!k]*);; \
	    *k*) failcom='fail=yes';; \
	  esac; \
	done; \
	dot_seen=no; \
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    dot_seen=yes; \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	  || eval $$failcom; \
	done; \
	if test "$$dot_seen" = "no"; then \
	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
	fi; test -z "$$fail"

mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@failcom='exit 1'; \
	for f in x $$MAKEFLAGS; do \
	  case $$f in \
	    *=* | --[!k]*);; \
	    *k*) failcom='fail=yes';; \
	  esac; \
	done; \
	dot_seen=no; \
	case "$@" in \
	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
	  *) list='$(SUBDIRS)' ;; \
	esac; \
	rev=''; for subdir in $$list; do \
	  if test "$$subdir" = "."; then :; else \
	    rev="$$subdir $$rev"; \
	  fi; \
	done; \
	rev="$$rev ."; \
	target=`echo $@ | sed s/-recursive//`; \
	for subdir in $$rev; do \
	  echo "Making $$target in $$subdir"; \
	  if test "$$subdir" = "."; then \
	    local_target="$$target-am"; \
	  else \
	    local_target="$$target"; \
	  fi; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
	  || eval $$failcom; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
	done
ctags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
	done

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	mkid -fID $$unique
tags: TAGS

TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
	  include_option=--etags-include; \
	  empty_fix=.; \
	else \
	  include_option=--include; \
	  empty_fix=; \
	fi; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  if test "$$subdir" = .; then :; else \
	    test ! -f $$subdir/TAGS || \
	      tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
	  fi; \
	done; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	    $$tags $$unique; \
	fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(CTAGS_ARGS)$$tags$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$tags $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

distdir: $(DISTFILES)
	$(mkdir_p) $(distdir)/../admin
	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
	list='$(DISTFILES)'; for file in $$list; do \
	  case $$file in \
	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
	  esac; \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
	    dir="/$$dir"; \
	    $(mkdir_p) "$(distdir)$$dir"; \
	  else \
	    dir=''; \
	  fi; \
	  if test -d $$d/$$file; then \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
	list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
	  if test "$$subdir" = .; then :; else \
	    test -d "$(distdir)/$$subdir" \
	    || $(mkdir_p) "$(distdir)/$$subdir" \
	    || exit 1; \
	    distdir=`$(am__cd) $(distdir) && pwd`; \
	    top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
	    (cd $$subdir && \
	      $(MAKE) $(AM_MAKEFLAGS) \
	        top_distdir="$$top_distdir" \
	        distdir="$$distdir/$$subdir" \
	        distdir) \
	      || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-recursive
all-am: Makefile $(PROGRAMS) $(HEADERS)
installdirs: installdirs-recursive
installdirs-am:
	for dir in "$(DESTDIR)$(bindir)"; do \
	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
	done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-recursive
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-recursive

clean-am: clean-binPROGRAMS clean-generic mostlyclean-am

distclean: distclean-recursive
	-rm -rf ./$(DEPDIR)
	-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
	distclean-tags

dvi: dvi-recursive

dvi-am:

html: html-recursive

info: info-recursive

info-am:

install-data-am:

install-exec-am: install-binPROGRAMS install-exec-local

install-info: install-info-recursive

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-recursive
	-rm -rf ./$(DEPDIR)
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-recursive

mostlyclean-am: mostlyclean-compile mostlyclean-generic

pdf: pdf-recursive

pdf-am:

ps: ps-recursive

ps-am:

uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-local

uninstall-info: uninstall-info-recursive

.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
	clean clean-binPROGRAMS clean-generic clean-recursive ctags \
	ctags-recursive distclean distclean-compile distclean-generic \
	distclean-recursive distclean-tags distdir dvi dvi-am html \
	html-am info info-am install install-am install-binPROGRAMS \
	install-data install-data-am install-exec install-exec-am \
	install-exec-local install-info install-info-am install-man \
	install-strip installcheck installcheck-am installdirs \
	installdirs-am maintainer-clean maintainer-clean-generic \
	maintainer-clean-recursive mostlyclean mostlyclean-compile \
	mostlyclean-generic mostlyclean-recursive pdf pdf-am ps ps-am \
	tags tags-recursive uninstall uninstall-am \
	uninstall-binPROGRAMS uninstall-info-am uninstall-local


#
# Rule to autogen new class files from template
#
new-class: $(top_srcdir)/support/class.tpl
	@if test -n "$(class)"; then \
	    echo "autogen definitions $(<F);" > $(class).def || exit 1; \
	    echo "classname=$(class);" >> $(class).def || exit 1; \
	    $(AUTOGEN) -L $(<D) $(class).def || exit 1; \
	    test -z "$(DONT_REMOVE_DEFS)" && rm -f $(class).def; \
	    $(MKMSG) "Generated files: $(class).cc, $(class).hh"; \
	    if test "$(top_builddir)" != "$(top_srcdir)"; then \
		$(MKMSG) "Move $(class).* ==> $(srcdir)"; \
		mv -f $(class).* $(srcdir); \
	    fi; \
	    if test -d $(srcdir)/src; then \
		$(MKMSG) "Move $(srcdir)$(class).cc ==> $(srcdir)/src"; \
		mv -f $(srcdir)/$(class).cc $(srcdir)/src; \
	    fi; \
	    if test -d $(srcdir)/include; then \
		$(MKMSG) "Move $(srcdir)$(class).hh ==> $(srcdir)/include"; \
		mv -f $(srcdir)/$(class).hh $(srcdir)/include; \
	    fi; \
	else \
	    $(MKMSG) "Class name is not provided. Use 'make $(@) class=ClassName'"; \
	    exit 1; \
	fi

#
# Make skeleton source tree
#
new-lib new-prg new-shlib new-noinst-lib:
	@if test -n "$(name)"; then \
	    $(MKMSG) "Create new skeleton source tree for $(name)..."; \
	    if test -d $(srcdir)/$(name); then \
		$(MKMSG) "$(srcdir)/$(name) already exist. Creation aborted..."; \
		exit 1; \
	    else \
		am_d2m="$(srcdir)/$(name) $(srcdir)/$(name)/src $(srcdir)/$(name)/include $(srcdir)/$(name)/tests"; \
		$(MKMSG) "Directories to create: $$am_d2m"; \
		mkdir $$am_d2m || exit 1; \
		for i in $$am_d2m; do \
		    cp $(top_srcdir)/admin/cvsignore.template $$i/.cvsignore || exit 1; \
		done; \
		case "$(@)" in \
		new-lib )        target=LIBRARIES ;; \
		new-prg )        target=bin_PROGRAMS ;; \
		new-shlib )      target=lib_LTLIBRARIES ;; \
		new-noinst-lib ) target=noinst_LIBRARIES ;; \
		*) exit 1 ;; \
		esac; \
		cat $(top_srcdir)/admin/Makefile.template \
		| sed -e "s,target_type,$$target," \
		> $(srcdir)/$(name)/Makefile.am; \
	    fi; \
	else \
	    $(MKMSG) "Target name is not provided. Use \`make $@ name=name_of_target'"; \
	    exit 1; \
	fi

#
# Rule to create Makefile.am for tests/ directory
#
new-test:
	@if test -d $(srcdir)/tests; then \
	    cp $(top_srcdir)/admin/Makefile.tests.template $(srcdir)/tests/Makefile.am ;\
	    $(MKMSG) "DO NOT FORGET TO..."; \
	    $(MKMSG) " 1) Add $(srcdir)/tests/Makefile into AC_CONFIG_FILES() list"; \
	    $(MKMSG) " 2) Add 'tests' into SUBDIRS list in $(srcdir)/Makefile.am"; \
	else \
	    $(MKMSG) "There is no directory $(srcdir)/tests here!"; \
	    exit 1; \
	fi

#
# Update .cvsignore files
#
add-to-cvsignore:
	@if test "x$(what)" == "x"; then \
	    $(MKMSG) " No file to add specified. Use \`make $(@) what=file2ignore'"; \
	    exit 1; \
	else \
	    for i in `find $(srcdir) -name .cvsignore`; do \
		echo "Update $$i"; \
		echo "$(what)" >> $$i; \
	    done \
	fi

help:
	@test "$@" = "help" || \
	echo -e "make: *** No rule to make target \`$@'. Stop."
	@$(MKMSG) " Available targets are:"
	@cat Makefile \
	| grep '^[A-Za-z-]\+:' \
	| sed 's,^\([A-Za-z-]\+\):.*$$,\1,' \
	| sort \
	| awk 'BEGIN{i = 0}{printf("%-25s", $$1); i++; if (i > 2) {printf("\n"); i = 0; }}END{printf("\n")}'

.PHONY: new-class new-lib new-prg new-shlib new-noinst-lib new-test help

#
# Install to remote server (making backups)
# 
# NOTES:
#	1) To define server (or list of servers) use xxx_REMOTE_SERVERS macro
#          where 'xxx' name of target
#	2) Also the rule assume that rmeote path equ to configured $prefix
#
remote-install-exec: $(bin_PROGRAMS)
	@if test -z '$(bin_PROGRAMS) $(bin_SCRIPTS)'; then \
	  echo "make[$(MAKELEVEL)]: Nothing to install here..."; \
	  exit 0; \
	fi
	@programs='$(bin_PROGRAMS) $(bin_SCRIPTS)'; for prg in $$programs; do \
	  servers=`echo "$(AM_RPG_TO_INSTALL_TO)" | \
	           sed -e "s/.*$$prg=\[\(.*\)\].*/\1/" \
	               -e ": strip" \
	               -e "s/\(^.*\)\].*/\1/" \
	               -e "t strip"`; \
	  if test "x$$servers" != "x"; then \
	    echo "make[$(MAKELEVEL)]: Compress $$prg before transfer..."; \
	    $(GZIP) -9 -c -f $$prg > $$prg.gz; \
	  fi; \
	  for server in $$servers; do \
	    prg_bak=$$prg-`date +%k\:%M\:%S-%d.%m.%Y | sed 's/ //'`; \
	    echo "make[$(MAKELEVEL)]: Backup $(prefix)/bin/$$prg to $(prefix)/bin/$$prg_bak ... "; \
	    $(SSH) $$server mv -f $(prefix)/bin/$$prg $(prefix)/bin/$$prg_bak > /dev/null 2>&1; \
	    echo "make[$(MAKELEVEL)]: Transfer $$prg.gz to $$server:$(prefix)/bin ..."; \
	    $(SCP) $$prg.gz $$server:$(prefix)/bin || exit 1; \
	    echo "make[$(MAKELEVEL)]: Decompress $$prg.gz on $$server..."; \
	    $(SSH) $$server $(GZIP) -d $(prefix)/bin/$$prg.gz || exit 1; \
	    $(SSH) $$server chmod +x $(prefix)/bin/$$prg || exit 1; \
	  done; \
	  rm -f $$prg.gz; \
	done

#
# Yet another rule to install to remote servers.
# Difference for the previous one:
#   1) Installing whole package (not single program).
#      Package will be created by `make install` command, so all
#      usual (local) features work OK (you can define install-xxx-local
#      to extend this process).
#   2) As follow from 1 this rule use REMOTE_SERVERS macro
#      (not per target xxx_REMOTE_SERVERS) 'bcouse we install
#      all files (binary programs and data) at once.
#
remote-install-all:
	@if test -z '$(REMOTE_SERVERS)'; then \
	  echo "make[$(MAKELEVEL)]: No destination specified here..."; \
	  exit 0; \
	fi; \
	DESTDIR=/tmp/`basename $(srcdir)`; \
	$(MAKE) $(AM_MAKEFLAGS) -C DESTDIR=$$DESTDIR install-exec install-data; \
	echo "make[$(MAKELEVEL)]: Create package to be transfered..."; \
	curdir=`pwd`; tar_name=`basename $(srcdir)`.tar.gz; \
	$(AMTAR) -C $$DESTDIR -zcf $$tar_name *; \
	cd $$curdir; \
	for server in '$(REMOTE_SERVERS)'; do \
	  echo "make[$(MAKELEVEL)]: Transfer $$tar_name to $$server:/tmp ..."; \
	  $(SCP) $$tar_name $$server:$$DESTDIR || exit 1; \
	  echo "make[$(MAKELEVEL)]: Install package at $$server ..."; \
	  $(SSH) $$server " \
	    for file in `tar -C $$DESTDIR -zvxf $$tar_name | sed '/^.*\/$/d'`; do
	      test -f /$$file \
	      && mv /$file /`dirname $$file`/`basename $$file`-`date +%k\:%M\:%S-%d.%m.%Y | sed 's/ //'`; \
	      mv -f $$file $$/file; \
	    done" || exit 1; \
	done

#
# Scan and check header files: whether it can be included along
# so if u c the 'Fail' (it is already too late :)... look to
# tests log file and try to fix bugs in problem header...
#
# Idea: Try to compile test program which is include given header
#       Normaly (if header independed) it should be successful
#
check-headers: $(DEPDIR)/includes
	echo "<<< `date` >>>" > hdr_test.log
	for hdr in `find $(srcdir) -name '*.hh'`; do \
	  echo -e "#include <`basename $$hdr`>\nusing namespace std;\nint main(void){}\n" > hdr_test.cc; \
	  echo -e "\n>>> Testing $$hdr" >> hdr_test.log; \
	  echo -n "make[$(MAKELEVEL)]: Testing `echo $$hdr | sed 's,$(srcdir)/,,'`... "; \
	  $(CXXCOMPILE) -I`dirname $$hdr` -c -o hdr_test.o hdr_test.cc >> hdr_test.log 2>&1 \
	    && $(SUCCESS) \
	    || $(FAILURE); \
	  echo -e "<<< $$hdr testing finished\n" >> hdr_test.log; \
	done

#
# Rule to make PostScript file with include graph
#
%.ps: %.cc %.hh
	AM_SRCDIR=$(srcdir) $(top_srcdir)/admin/cinclude2ps  -n $(<) > $(*F).ps

.PHONY: remote-install remote-install-exec check-headers

#
# Rule to make all depended libs
#
@MAINTAINER_MODE_TRUE@$(AM_DEPTGTS):
@MAINTAINER_MODE_TRUE@	+@$(MKMSG) "Make depended target '$(@)'"; \
@MAINTAINER_MODE_TRUE@	$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) || exit 1

#
# Debug spam
#
@MAINTAINER_MODE_TRUE@spam-deps:
@MAINTAINER_MODE_TRUE@	@if test -z "$(AM_DEPTGTS)"; then \
@MAINTAINER_MODE_TRUE@	    echo "There is no depended targets to build..."; \
@MAINTAINER_MODE_TRUE@	else \
@MAINTAINER_MODE_TRUE@	    echo "List of depended targets:"; \
@MAINTAINER_MODE_TRUE@	    for i in $(AM_DEPTGTS); do \
@MAINTAINER_MODE_TRUE@	        echo "  $$i"; \
@MAINTAINER_MODE_TRUE@	    done \
@MAINTAINER_MODE_TRUE@	fi

@MAINTAINER_MODE_TRUE@spam-test:
@MAINTAINER_MODE_TRUE@	@echo "AM_MAIN_TGTS  = $(AM_MAIN_TGTS)"

.PHONY: $(AM_DEPTGTS) spam-deps spam-test

%$(CMDLINE_PARSER_SUFFIX).c: %.ggo
	so=`cat $(MAKEFILE_LIST) | grep '^$(*F)_GGOFLAGS[ ]*=' | sed 's,.*=[ ]*\(.*\),\1,'`; \
	$(GENGETOPT) $(AM_GGOFLAGS) $$so -i $< -F $(*F)$(CMDLINE_PARSER_SUFFIX)
	sed -e 's/HAVE_CONFIG_H/DONT_USE_CONFIG/' \
	< $(*F)$(CMDLINE_PARSER_SUFFIX).c > $(*F)$(CMDLINE_PARSER_SUFFIX).c.tmp
	mv -f $(*F)$(CMDLINE_PARSER_SUFFIX).c.tmp $(*F)$(CMDLINE_PARSER_SUFFIX).c
	sed -e '/#ifndef PACKAGE/ {'  -e 'i \' -e '#undef PACKAGE' -e '}' \
	    -e '/#ifndef VERSION/ {'  -e 'i \' -e '#undef VERSION' -e '}' \
	    -e 's/HAVE_CONFIG_H/DONT_USE_CONFIG/' \
	 < $(*F)$(CMDLINE_PARSER_SUFFIX).h > $(*F)$(CMDLINE_PARSER_SUFFIX).h.tmp
	mv -f $(*F)$(CMDLINE_PARSER_SUFFIX).h.tmp $(*F)$(CMDLINE_PARSER_SUFFIX).h
	$(MAKE) $(AM_MAKEFLAGS) fix_arg0 TGT_FILE=$(@)
	list="$(GGO_POSTGEN_ACTIONS)"`cat $(MAKEFILE_LIST) \
		| grep '^$(*F)_GGO_POSTGEN_ACTIONS[ ]*=' \
		|  sed 's,.*=[ ]*\(.*\),\1,'`; \
	for i in $$list; do \
	    $(MAKE) $(AM_MAKEFLAGS) $$i TGT_FILE=$(@) SRC_FILE=$(<); \
	done

%$(CMDLINE_PARSER_SUFFIX).h: %$(CMDLINE_PARSER_SUFFIX).c ;

fix_arg0:
	cat $(TGT_FILE) | sed \
	  -e 's,cmdline_parser_print_help[ ]*(void),cmdline_parser_print_help(const char* bin_prg_name),' \
	  -e '/Usage:/ s,CMDLINE_PARSER_PACKAGE,bin_prg_name,' \
	  -e 's,cmdline_parser_print_help[ ]*();,cmdline_parser_print_help(argv[0]);,' \
	  > $(TGT_FILE).tmp
	mv -f $(TGT_FILE).tmp $(TGT_FILE)
	cat `basename $(TGT_FILE) .c`.h | sed \
	  -e 's,cmdline_parser_print_help[ ]*(void),cmdline_parser_print_help(const char*),' \
	  > `basename $(TGT_FILE) .c`.tmp
	mv -f `basename $(TGT_FILE) .c`.tmp `basename $(TGT_FILE) .c`.h

# Include automatic dependencies tracking
# Include special support for gengetopt

#
# Rule to join all sources in one compilation unit
#
nt.all_cc.cc: $(srcdir)/Makefile.am
	@echo "Creating $(@) ..."; \
	echo "/* DO NOT EDIT! This file is autogenerated by 'make' from sources list... */" > $(@); \
	list="$(nt_SOURCES_LIST)"; \
	for i in $$list; do \
	    echo "#include \"$$i\"" >> $(@); \
	done

#
# Make symlink (if possible) nt --> d4x on install
#
install-exec-local:
	if test -f $(DESTDIR)$(bindir)/$(PACKAGE); then \
	    rm -f $(DESTDIR)$(bindir)/$(PACKAGE); \
	fi; \
	cd $(DESTDIR)$(bindir) && $(LN_S) -f $(bin_PROGRAMS) $(PACKAGE)

#
# Remove remaining symlink when unistall
#
uninstall-local:
	test -h $(DESTDIR)$(bindir)/$(PACKAGE) && rm -f $(DESTDIR)$(bindir)/$(PACKAGE)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:


syntax highlighted by Code2HTML, v. 0.9.1