]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - Makefile.in
import smartmontools 7.0
[mirror_smartmontools-debian.git] / Makefile.in
index 5d65d9f4b715dbe3fd9f81f1364cab39b22d477d..297cbf8b5353ce89a135188571068d2aa12303ad 100644 (file)
@@ -1,8 +1,8 @@
-# Makefile.in generated by automake 1.9.3 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004  Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 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.
 @SET_MAKE@
 
 #
-# $Id: Makefile.am,v 1.74 2005/11/29 18:22:51 chrfranke Exp $
+# $Id: Makefile.am 4848 2018-12-05 18:30:46Z chrfranke $
 #
 
 
-SOURCES = $(smartctl_SOURCES) $(EXTRA_smartctl_SOURCES) $(smartd_SOURCES) $(EXTRA_smartd_SOURCES)
 
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
 VPATH = @srcdir@
+am__is_gnu_make = { \
+  if test -z '$(MAKELEVEL)'; then \
+    false; \
+  elif test -n '$(MAKE_HOST)'; then \
+    true; \
+  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+    true; \
+  else \
+    false; \
+  fi; \
+}
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = .
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 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
@@ -43,169 +94,359 @@ PRE_UNINSTALL = :
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-sbin_PROGRAMS = smartd$(EXEEXT) smartctl$(EXEEXT)
-@OS_WIN32_MINGW_TRUE@am__append_1 = \
-@OS_WIN32_MINGW_TRUE@                posix/regex.h             \
-@OS_WIN32_MINGW_TRUE@                posix/regex.c             \
-@OS_WIN32_MINGW_TRUE@                os_win32/daemon_win32.h   \
-@OS_WIN32_MINGW_TRUE@                os_win32/daemon_win32.c   \
-@OS_WIN32_MINGW_TRUE@                os_win32/hostname_win32.h \
-@OS_WIN32_MINGW_TRUE@                os_win32/hostname_win32.c \
-@OS_WIN32_MINGW_TRUE@                os_win32/syslog.h         \
-@OS_WIN32_MINGW_TRUE@                os_win32/syslog_win32.c
+@ENABLE_DRIVEDB_TRUE@am__append_1 = -DSMARTMONTOOLS_DRIVEDBDIR='"$(drivedbdir)"'
+@ENABLE_SAVESTATES_TRUE@am__append_2 = -DSMARTMONTOOLS_SAVESTATES='"$(savestates)"'
+@ENABLE_ATTRIBUTELOG_TRUE@am__append_3 = -DSMARTMONTOOLS_ATTRIBUTELOG='"$(attributelog)"'
+@OS_WIN32_MINGW_TRUE@am__append_4 = -I$(srcdir)/os_win32
+@NEED_GETOPT_LONG_TRUE@am__append_5 = -I$(srcdir)/getopt -D_GETOPT_STANDALONE
+@NEED_REGEX_TRUE@am__append_6 = -I$(srcdir)/regex -D_REGEX_STANDALONE
+sbin_PROGRAMS = smartctl$(EXEEXT) smartd$(EXEEXT)
+@OS_WIN32_MINGW_TRUE@am__append_7 = \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen_win32.cpp \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen.h
+
+@OS_WIN32_MINGW_TRUE@am__append_8 = smartctl_res.o
+@OS_WIN32_MINGW_TRUE@am__append_9 = smartctl_res.o
+@OS_WIN32_MINGW_TRUE@am__append_10 = \
+@OS_WIN32_MINGW_TRUE@        os_win32/daemon_win32.cpp \
+@OS_WIN32_MINGW_TRUE@        os_win32/daemon_win32.h \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen_win32.cpp \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen.h \
+@OS_WIN32_MINGW_TRUE@        os_win32/syslog_win32.cpp \
+@OS_WIN32_MINGW_TRUE@        os_win32/syslog.h
+
+@OS_WIN32_MINGW_TRUE@am__append_11 = smartd_res.o
+@OS_WIN32_MINGW_TRUE@am__append_12 = smartd_res.o
+@NEED_GETOPT_LONG_TRUE@am__append_13 = \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt.c \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt1.c \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt_int.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_core.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_ext.h
+
+@NEED_GETOPT_LONG_TRUE@am__append_14 = \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt.c \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt1.c \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt_int.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_core.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_ext.h
+
+@NEED_REGEX_TRUE@am__append_15 = \
+@NEED_REGEX_TRUE@        regex/regex.c \
+@NEED_REGEX_TRUE@        regex/regex.h \
+@NEED_REGEX_TRUE@        regex/regex_internal.h
+
+@NEED_REGEX_TRUE@am__append_16 = \
+@NEED_REGEX_TRUE@        regex/regex.c \
+@NEED_REGEX_TRUE@        regex/regex.h \
+@NEED_REGEX_TRUE@        regex/regex_internal.h
 
 
 # Included by regex.c:
-@OS_WIN32_MINGW_TRUE@am__append_2 = \
-@OS_WIN32_MINGW_TRUE@                posix/regcomp.c           \
-@OS_WIN32_MINGW_TRUE@                posix/regexec.c           \
-@OS_WIN32_MINGW_TRUE@                posix/regex_internal.c    \
-@OS_WIN32_MINGW_TRUE@                posix/regex_internal.h
-
-@OS_WIN32_MINGW_TRUE@am__append_3 = \
-@OS_WIN32_MINGW_TRUE@                posix/regex.h          \
-@OS_WIN32_MINGW_TRUE@                posix/regex.c          \
-@OS_WIN32_MINGW_TRUE@                os_win32/syslog.h
+@NEED_REGEX_TRUE@am__append_17 = \
+@NEED_REGEX_TRUE@        regex/regcomp.c \
+@NEED_REGEX_TRUE@        regex/regexec.c \
+@NEED_REGEX_TRUE@        regex/regex_internal.c
+
+@NEED_REGEX_TRUE@am__append_18 = \
+@NEED_REGEX_TRUE@        regex/regcomp.c \
+@NEED_REGEX_TRUE@        regex/regexec.c \
+@NEED_REGEX_TRUE@        regex/regex_internal.c
+
+@OS_WIN32_TRUE@am__append_19 = \
+@OS_WIN32_TRUE@        csmisas.h \
+@OS_WIN32_TRUE@        os_win32/wmiquery.cpp \
+@OS_WIN32_TRUE@        os_win32/wmiquery.h
+
+@OS_WIN32_TRUE@am__append_20 = \
+@OS_WIN32_TRUE@        csmisas.h \
+@OS_WIN32_TRUE@        os_win32/wmiquery.cpp \
+@OS_WIN32_TRUE@        os_win32/wmiquery.h
+
+@OS_WIN32_TRUE@am__append_21 = -lole32 -loleaut32
+@OS_WIN32_TRUE@am__append_22 = -lole32 -loleaut32
+@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_SOLARIS_TRUE@am__append_23 = update-smart-drivedb.1m
+@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_SOLARIS_FALSE@am__append_24 = update-smart-drivedb.8
+@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@am__append_25 = \
+@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@        $(exedir_win32)/update-smart-drivedb.exe
+
+@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@am__append_26 = \
+@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@        $(exedir_win32)/drivedb.h
+
+@OS_WIN32_MINGW_TRUE@am__append_27 = \
+@OS_WIN32_MINGW_TRUE@        $(FILES_WIN32) \
+@OS_WIN32_MINGW_TRUE@        defadmin.manifest \
+@OS_WIN32_MINGW_TRUE@        distdir.mkdir \
+@OS_WIN32_MINGW_TRUE@        runcmda.exe runcmda_res.rc \
+@OS_WIN32_MINGW_TRUE@        runcmdu.exe runcmdu_res.rc \
+@OS_WIN32_MINGW_TRUE@        smartctl-nc.exe smartctl-nc.exe.tmp \
+@OS_WIN32_MINGW_TRUE@        smartctl_res.rc smartd_res.rc \
+@OS_WIN32_MINGW_TRUE@        syslogevt.h \
+@OS_WIN32_MINGW_TRUE@        syslogevt.rc syslogevt_*.bin \
+@OS_WIN32_MINGW_TRUE@        update-smart-drivedb.exe \
+@OS_WIN32_MINGW_TRUE@        wtssendmsg.exe wtssendmsg_res.rc
 
-
-# Included by regex.c:
-@OS_WIN32_MINGW_TRUE@am__append_4 = \
-@OS_WIN32_MINGW_TRUE@                posix/regcomp.c        \
-@OS_WIN32_MINGW_TRUE@                posix/regexec.c        \
-@OS_WIN32_MINGW_TRUE@                posix/regex_internal.c \
-@OS_WIN32_MINGW_TRUE@                posix/regex_internal.h
-
-@SMARTD_SUFFIX_TRUE@am__append_5 = smartd.conf$(smartd_suffix)
-@OS_WIN32_MINGW_TRUE@am__append_6 = $(FILES_WIN32) $(exedir_win32)/syslogevt.exe distdir.mkdir syslogevt.check
-DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
-       $(srcdir)/Makefile.in $(srcdir)/config.h.in \
-       $(top_srcdir)/configure AUTHORS COPYING INSTALL NEWS TODO \
-       config.guess config.sub depcomp install-sh missing
 subdir = .
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__aclocal_m4_deps = $(top_srcdir)/m4/pkg.m4 \
+       $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
+DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
+       $(am__configure_deps) $(am__DIST_COMMON)
 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno configure.status.lineno
+ configure.lineno config.status.lineno
 mkinstalldirs = $(install_sh) -d
 CONFIG_HEADER = config.h
 CONFIG_CLEAN_FILES =
-am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man5dir)" \
-       "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docsdir)" \
-       "$(DESTDIR)$(initddir)" "$(DESTDIR)$(sysconfdir)"
-sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+CONFIG_CLEAN_VPATH_FILES =
+am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(examplesdir)" \
+       "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(smartdscriptdir)" \
+       "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" \
+       "$(DESTDIR)$(docsdir)" "$(DESTDIR)$(drivedbdir)" \
+       "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(initddir)" \
+       "$(DESTDIR)$(sysconfdir)" "$(DESTDIR)$(systemdsystemunitdir)"
 PROGRAMS = $(sbin_PROGRAMS)
-am__smartctl_SOURCES_DIST = smartctl.c smartctl.h atacmdnames.c \
-       atacmdnames.h atacmds.c atacmds.h ataprint.c ataprint.h \
-       extern.h int64.h knowndrives.c knowndrives.h scsicmds.c \
-       scsicmds.h scsiprint.c scsiprint.h utility.c utility.h \
-       posix/regex.h posix/regex.c os_win32/syslog.h
-@OS_WIN32_MINGW_TRUE@am__objects_1 = regex.$(OBJEXT)
+am__smartctl_SOURCES_DIST = smartctl.cpp smartctl.h atacmdnames.cpp \
+       atacmdnames.h atacmds.cpp atacmds.h ataidentify.cpp \
+       ataidentify.h ataprint.cpp ataprint.h dev_ata_cmd_set.cpp \
+       dev_ata_cmd_set.h dev_intelliprop.cpp dev_intelliprop.h \
+       dev_interface.cpp dev_interface.h dev_tunnelled.h drivedb.h \
+       json.cpp json.h knowndrives.cpp knowndrives.h nvmecmds.cpp \
+       nvmecmds.h nvmeprint.cpp nvmeprint.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp scsiprint.cpp scsiprint.h utility.cpp \
+       utility.h sg_unaligned.h os_win32/popen_win32.cpp \
+       os_win32/popen.h getopt/getopt.c getopt/getopt.h \
+       getopt/getopt1.c getopt/getopt_int.h getopt/bits/getopt_core.h \
+       getopt/bits/getopt_ext.h regex/regex.c regex/regex.h \
+       regex/regex_internal.h csmisas.h os_win32/wmiquery.cpp \
+       os_win32/wmiquery.h
+@OS_WIN32_MINGW_TRUE@am__objects_1 = popen_win32.$(OBJEXT)
+@NEED_GETOPT_LONG_TRUE@am__objects_2 = getopt.$(OBJEXT) \
+@NEED_GETOPT_LONG_TRUE@        getopt1.$(OBJEXT)
+@NEED_REGEX_TRUE@am__objects_3 = regex.$(OBJEXT)
+@OS_WIN32_TRUE@am__objects_4 = wmiquery.$(OBJEXT)
 am_smartctl_OBJECTS = smartctl.$(OBJEXT) atacmdnames.$(OBJEXT) \
-       atacmds.$(OBJEXT) ataprint.$(OBJEXT) knowndrives.$(OBJEXT) \
-       scsicmds.$(OBJEXT) scsiprint.$(OBJEXT) utility.$(OBJEXT) \
-       $(am__objects_1)
-am__EXTRA_smartctl_SOURCES_DIST = os_linux.c os_linux.h os_freebsd.c \
-       os_freebsd.h os_netbsd.c os_netbsd.h os_openbsd.c os_openbsd.h \
-       os_solaris.c os_solaris.h os_win32.c os_generic.c os_generic.h \
-       posix/regcomp.c posix/regexec.c posix/regex_internal.c \
-       posix/regex_internal.h
+       atacmds.$(OBJEXT) ataidentify.$(OBJEXT) ataprint.$(OBJEXT) \
+       dev_ata_cmd_set.$(OBJEXT) dev_intelliprop.$(OBJEXT) \
+       dev_interface.$(OBJEXT) json.$(OBJEXT) knowndrives.$(OBJEXT) \
+       nvmecmds.$(OBJEXT) nvmeprint.$(OBJEXT) scsicmds.$(OBJEXT) \
+       scsiata.$(OBJEXT) scsinvme.$(OBJEXT) scsiprint.$(OBJEXT) \
+       utility.$(OBJEXT) $(am__objects_1) $(am__objects_2) \
+       $(am__objects_3) $(am__objects_4)
+am__EXTRA_smartctl_SOURCES_DIST = os_darwin.cpp os_darwin.h \
+       os_linux.cpp os_linux.h os_freebsd.cpp os_freebsd.h \
+       os_netbsd.cpp os_netbsd.h os_openbsd.cpp os_openbsd.h \
+       os_os2.cpp os_os2.h os_qnxnto.cpp os_qnxnto.h os_solaris.cpp \
+       os_solaris.h os_win32.cpp os_generic.cpp os_generic.h \
+       aacraid.h cciss.cpp cciss.h cissio_freebsd.h dev_areca.cpp \
+       dev_areca.h dev_legacy.cpp linux_nvme_ioctl.h megaraid.h \
+       regex/regcomp.c regex/regexec.c regex/regex_internal.c
 smartctl_OBJECTS = $(am_smartctl_OBJECTS)
-am__smartd_SOURCES_DIST = smartd.c smartd.h atacmdnames.c \
-       atacmdnames.h atacmds.c atacmds.h ataprint.c ataprint.h \
-       extern.h int64.h knowndrives.c knowndrives.h scsicmds.c \
-       scsicmds.h scsiprint.c scsiprint.h utility.c utility.h \
-       posix/regex.h posix/regex.c os_win32/daemon_win32.h \
-       os_win32/daemon_win32.c os_win32/hostname_win32.h \
-       os_win32/hostname_win32.c os_win32/syslog.h \
-       os_win32/syslog_win32.c
-@OS_WIN32_MINGW_TRUE@am__objects_3 = regex.$(OBJEXT) \
-@OS_WIN32_MINGW_TRUE@  daemon_win32.$(OBJEXT) \
-@OS_WIN32_MINGW_TRUE@  hostname_win32.$(OBJEXT) \
+am__DEPENDENCIES_1 =
+am__smartd_SOURCES_DIST = smartd.cpp atacmdnames.cpp atacmdnames.h \
+       atacmds.cpp atacmds.h dev_ata_cmd_set.cpp dev_ata_cmd_set.h \
+       dev_intelliprop.cpp dev_intelliprop.h dev_interface.cpp \
+       dev_interface.h dev_tunnelled.h drivedb.h knowndrives.cpp \
+       knowndrives.h nvmecmds.cpp nvmecmds.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp utility.cpp utility.h sg_unaligned.h \
+       os_win32/daemon_win32.cpp os_win32/daemon_win32.h \
+       os_win32/popen_win32.cpp os_win32/popen.h \
+       os_win32/syslog_win32.cpp os_win32/syslog.h getopt/getopt.c \
+       getopt/getopt.h getopt/getopt1.c getopt/getopt_int.h \
+       getopt/bits/getopt_core.h getopt/bits/getopt_ext.h \
+       regex/regex.c regex/regex.h regex/regex_internal.h csmisas.h \
+       os_win32/wmiquery.cpp os_win32/wmiquery.h
+@OS_WIN32_MINGW_TRUE@am__objects_5 = daemon_win32.$(OBJEXT) \
+@OS_WIN32_MINGW_TRUE@  popen_win32.$(OBJEXT) \
 @OS_WIN32_MINGW_TRUE@  syslog_win32.$(OBJEXT)
 am_smartd_OBJECTS = smartd.$(OBJEXT) atacmdnames.$(OBJEXT) \
-       atacmds.$(OBJEXT) ataprint.$(OBJEXT) knowndrives.$(OBJEXT) \
-       scsicmds.$(OBJEXT) scsiprint.$(OBJEXT) utility.$(OBJEXT) \
-       $(am__objects_3)
-am__EXTRA_smartd_SOURCES_DIST = os_darwin.c os_darwin.h os_linux.c \
-       os_linux.h os_freebsd.c os_freebsd.h os_netbsd.c os_netbsd.h \
-       os_openbsd.c os_openbsd.h os_solaris.c os_solaris.h \
-       os_solaris_ata.s os_win32.c os_generic.c os_generic.h \
-       posix/regcomp.c posix/regexec.c posix/regex_internal.c \
-       posix/regex_internal.h
+       atacmds.$(OBJEXT) dev_ata_cmd_set.$(OBJEXT) \
+       dev_intelliprop.$(OBJEXT) dev_interface.$(OBJEXT) \
+       knowndrives.$(OBJEXT) nvmecmds.$(OBJEXT) scsicmds.$(OBJEXT) \
+       scsiata.$(OBJEXT) scsinvme.$(OBJEXT) utility.$(OBJEXT) \
+       $(am__objects_5) $(am__objects_2) $(am__objects_3) \
+       $(am__objects_4)
+am__EXTRA_smartd_SOURCES_DIST = os_darwin.cpp os_darwin.h os_linux.cpp \
+       os_linux.h os_freebsd.cpp os_freebsd.h os_netbsd.cpp \
+       os_netbsd.h os_openbsd.cpp os_openbsd.h os_os2.cpp os_os2.h \
+       os_qnxnto.cpp os_qnxnto.h os_solaris.cpp os_solaris.h \
+       os_win32.cpp os_generic.cpp os_generic.h aacraid.h cciss.cpp \
+       cciss.h cissio_freebsd.h dev_areca.cpp dev_areca.h \
+       dev_legacy.cpp linux_nvme_ioctl.h freebsd_nvme_ioctl.h \
+       netbsd_nvme_ioctl.h megaraid.h regex/regcomp.c regex/regexec.c \
+       regex/regex_internal.c
 smartd_OBJECTS = $(am_smartd_OBJECTS)
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+  test -z "$$files" \
+    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+         $(am__cd) "$$dir" && rm -f $$files; }; \
+  }
+SCRIPTS = $(examples_SCRIPTS) $(sbin_SCRIPTS) $(smartdscript_SCRIPTS)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+DEFAULT_INCLUDES = -I.@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
+am__mv = mv -f
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 = 
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 = 
 CCLD = $(CC)
 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 = 
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+AM_V_CXX = $(am__v_CXX_@AM_V@)
+am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
+am__v_CXX_0 = @echo "  CXX     " $@;
+am__v_CXX_1 = 
+CXXLD = $(CXX)
+CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
+       -o $@
+AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
+am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
+am__v_CXXLD_0 = @echo "  CXXLD   " $@;
+am__v_CXXLD_1 = 
 CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
+AM_V_CCAS = $(am__v_CCAS_@AM_V@)
+am__v_CCAS_ = $(am__v_CCAS_@AM_DEFAULT_V@)
+am__v_CCAS_0 = @echo "  CCAS    " $@;
+am__v_CCAS_1 = 
 SOURCES = $(smartctl_SOURCES) $(EXTRA_smartctl_SOURCES) \
-       $(smartd_SOURCES) $(EXTRA_smartd_SOURCES)
+       $(nodist_EXTRA_smartctl_SOURCES) $(smartd_SOURCES) \
+       $(EXTRA_smartd_SOURCES) $(nodist_EXTRA_smartd_SOURCES)
 DIST_SOURCES = $(am__smartctl_SOURCES_DIST) \
        $(am__EXTRA_smartctl_SOURCES_DIST) $(am__smartd_SOURCES_DIST) \
        $(am__EXTRA_smartd_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
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
 man5dir = $(mandir)/man5
 man8dir = $(mandir)/man8
 NROFF = nroff
 MANS = $(man_MANS)
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-    *) f=$$p;; \
-  esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-docsDATA_INSTALL = $(INSTALL_DATA)
-initdDATA_INSTALL = $(INSTALL_DATA)
-sysconfDATA_INSTALL = $(INSTALL_DATA)
-DATA = $(docs_DATA) $(initd_DATA) $(sysconf_DATA)
+DATA = $(docs_DATA) $(drivedb_DATA) $(examples_DATA) $(initd_DATA) \
+       $(sysconf_DATA) $(systemdsystemunit_DATA)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
+       $(LISP)config.h.in
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
+CSCOPE = cscope
+AM_RECURSIVE_TARGETS = cscope
+am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \
+       COPYING ChangeLog INSTALL NEWS README TODO compile \
+       config.guess config.sub depcomp install-sh missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
 am__remove_distdir = \
-  { test ! -d $(distdir) \
-    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-         && rm -fr $(distdir); }; }
+  if test -d "$(distdir)"; then \
+    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+      && rm -rf "$(distdir)" \
+      || { sleep 5 && rm -rf "$(distdir)"; }; \
+  else :; fi
+am__post_remove_distdir = $(am__remove_distdir)
 DIST_ARCHIVES = $(distdir).tar.gz
 GZIP_ENV = --best
+DIST_TARGETS = dist-gzip
 distuninstallcheck_listfiles = find . -type f -print
+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
 distcleancheck_listfiles = find . -type f -print
 ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
 AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
 ASFLAGS = @ASFLAGS@
 AUTOCONF = @AUTOCONF@
 AUTOHEADER = @AUTOHEADER@
 AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
+CAPNG_LDADD = @CAPNG_LDADD@
 CC = @CC@
 CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
 CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
-CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
+DRIVEDB_BRANCH = @DRIVEDB_BRANCH@
 ECHO_C = @ECHO_C@
 ECHO_N = @ECHO_N@
 ECHO_T = @ECHO_T@
 EGREP = @EGREP@
 EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
@@ -215,213 +456,472 @@ LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LTLIBOBJS = @LTLIBOBJS@
 MAINT = @MAINT@
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
 MAKEINFO = @MAKEINFO@
+MAKENSIS = @MAKENSIS@
+MKDIR_P = @MKDIR_P@
 OBJEXT = @OBJEXT@
-OS_DARWIN_FALSE = @OS_DARWIN_FALSE@
-OS_DARWIN_TRUE = @OS_DARWIN_TRUE@
-OS_SOLARIS_FALSE = @OS_SOLARIS_FALSE@
-OS_SOLARIS_TRUE = @OS_SOLARIS_TRUE@
-OS_WIN32_MINGW_FALSE = @OS_WIN32_MINGW_FALSE@
-OS_WIN32_MINGW_TRUE = @OS_WIN32_MINGW_TRUE@
 PACKAGE = @PACKAGE@
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 PACKAGE_NAME = @PACKAGE_NAME@
 PACKAGE_STRING = @PACKAGE_STRING@
 PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
 PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
-SMARTD_SUFFIX_FALSE = @SMARTD_SUFFIX_FALSE@
-SMARTD_SUFFIX_TRUE = @SMARTD_SUFFIX_TRUE@
 STRIP = @STRIP@
+SYSTEMD_LDADD = @SYSTEMD_LDADD@
 VERSION = @VERSION@
+WINDMC = @WINDMC@
+WINDRES = @WINDRES@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
 ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+ac_ct_CXX = @ac_ct_CXX@
 am__include = @am__include@
 am__leading_dot = @am__leading_dot@
 am__quote = @am__quote@
 am__tar = @am__tar@
 am__untar = @am__untar@
+attributelog = @attributelog@
+attributelogdir = @attributelogdir@
 bindir = @bindir@
 build = @build@
 build_alias = @build_alias@
 build_cpu = @build_cpu@
 build_os = @build_os@
 build_vendor = @build_vendor@
+builddir = @builddir@
 datadir = @datadir@
+datarootdir = @datarootdir@
 docdir = @docdir@
+drivedbdir = @drivedbdir@
+dvidir = @dvidir@
 exampledir = @exampledir@
 exec_prefix = @exec_prefix@
 gcc_have_attr_packed = @gcc_have_attr_packed@
+gnupg = @gnupg@
 host = @host@
 host_alias = @host_alias@
 host_cpu = @host_cpu@
 host_os = @host_os@
 host_vendor = @host_vendor@
+htmldir = @htmldir@
 includedir = @includedir@
 infodir = @infodir@
 initddir = @initddir@
+initdfile = @initdfile@
 install_sh = @install_sh@
-libc_have_working_snprintf = @libc_have_working_snprintf@
 libdir = @libdir@
 libexecdir = @libexecdir@
+localedir = @localedir@
 localstatedir = @localstatedir@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 oldincludedir = @oldincludedir@
 os_deps = @os_deps@
+os_dltools = @os_dltools@
+os_dnsdomainname = @os_dnsdomainname@
+os_hostname = @os_hostname@
 os_libs = @os_libs@
+os_mailer = @os_mailer@
+os_man_filter = @os_man_filter@
+os_nisdomainname = @os_nisdomainname@
+os_win32_manifest = @os_win32_manifest@
+pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
+psdir = @psdir@
 releaseversion = @releaseversion@
+savestates = @savestates@
+savestatesdir = @savestatesdir@
 sbindir = @sbindir@
+scriptpath = @scriptpath@
 sharedstatedir = @sharedstatedir@
 smartd_suffix = @smartd_suffix@
+smartdplugindir = @smartdplugindir@
+smartdscriptdir = @smartdscriptdir@
 smartmontools_release_date = @smartmontools_release_date@
 smartmontools_release_time = @smartmontools_release_time@
+srcdir = @srcdir@
+svn_deps = @svn_deps@
 sysconfdir = @sysconfdir@
+systemdenvfile = @systemdenvfile@
+systemdsystemunitdir = @systemdsystemunitdir@
 target_alias = @target_alias@
-AM_CPPFLAGS = -DSMARTMONTOOLS_SYSCONFDIR=\"$(sysconfdir)\"
-smartd_SOURCES = smartd.c smartd.h atacmdnames.c atacmdnames.h \
-       atacmds.c atacmds.h ataprint.c ataprint.h extern.h int64.h \
-       knowndrives.c knowndrives.h scsicmds.c scsicmds.h scsiprint.c \
-       scsiprint.h utility.c utility.h $(am__append_1)
-smartd_LDADD = @os_deps@ @os_libs@
-smartd_DEPENDENCIES = @os_deps@
-EXTRA_smartd_SOURCES = os_darwin.c os_darwin.h os_linux.c os_linux.h \
-       os_freebsd.c os_freebsd.h os_netbsd.c os_netbsd.h os_openbsd.c \
-       os_openbsd.h os_solaris.c os_solaris.h os_solaris_ata.s \
-       os_win32.c os_generic.c os_generic.h $(am__append_2)
-smartctl_SOURCES = smartctl.c smartctl.h atacmdnames.c atacmdnames.h \
-       atacmds.c atacmds.h ataprint.c ataprint.h extern.h int64.h \
-       knowndrives.c knowndrives.h scsicmds.c scsicmds.h scsiprint.c \
-       scsiprint.h utility.c utility.h $(am__append_3)
-smartctl_LDADD = @os_deps@ @os_libs@
-smartctl_DEPENDENCIES = @os_deps@
-EXTRA_smartctl_SOURCES = os_linux.c os_linux.h os_freebsd.c \
-       os_freebsd.h os_netbsd.c os_netbsd.h os_openbsd.c os_openbsd.h \
-       os_solaris.c os_solaris.h os_win32.c os_generic.c os_generic.h \
-       $(am__append_4)
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+with_nvme_devicescan = @with_nvme_devicescan@
+with_update_smart_drivedb = @with_update_smart_drivedb@
+ACLOCAL_AMFLAGS = -I m4
+
+# Make sure .cpp takes precedence to avoid compiling old .c file
+SUFFIXES = .cpp .c .s .o
+
+# BUILD_INFO can be provided by package maintainers (see INSTALL file)
+BUILD_INFO = "(local build)"
+AM_CPPFLAGS = -DBUILD_INFO='$(BUILD_INFO)' \
+       -DSMARTMONTOOLS_SYSCONFDIR='"$(sysconfdir)"' \
+       -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"$(smartdscriptdir)"' \
+       $(am__append_1) $(am__append_2) $(am__append_3) \
+       $(am__append_4) $(am__append_5) $(am__append_6)
+@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_WIN32_MINGW_FALSE@sbin_SCRIPTS = update-smart-drivedb
+smartctl_SOURCES = smartctl.cpp smartctl.h atacmdnames.cpp \
+       atacmdnames.h atacmds.cpp atacmds.h ataidentify.cpp \
+       ataidentify.h ataprint.cpp ataprint.h dev_ata_cmd_set.cpp \
+       dev_ata_cmd_set.h dev_intelliprop.cpp dev_intelliprop.h \
+       dev_interface.cpp dev_interface.h dev_tunnelled.h drivedb.h \
+       json.cpp json.h knowndrives.cpp knowndrives.h nvmecmds.cpp \
+       nvmecmds.h nvmeprint.cpp nvmeprint.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp scsiprint.cpp scsiprint.h utility.cpp \
+       utility.h sg_unaligned.h $(am__append_7) $(am__append_13) \
+       $(am__append_15) $(am__append_19)
+smartctl_LDADD = $(os_deps) $(os_libs) $(am__append_8) \
+       $(am__append_21)
+smartctl_DEPENDENCIES = $(os_deps) $(am__append_9)
+EXTRA_smartctl_SOURCES = os_darwin.cpp os_darwin.h os_linux.cpp \
+       os_linux.h os_freebsd.cpp os_freebsd.h os_netbsd.cpp \
+       os_netbsd.h os_openbsd.cpp os_openbsd.h os_os2.cpp os_os2.h \
+       os_qnxnto.cpp os_qnxnto.h os_solaris.cpp os_solaris.h \
+       os_win32.cpp os_generic.cpp os_generic.h aacraid.h cciss.cpp \
+       cciss.h cissio_freebsd.h dev_areca.cpp dev_areca.h \
+       dev_legacy.cpp linux_nvme_ioctl.h megaraid.h $(am__append_17)
+smartd_SOURCES = smartd.cpp atacmdnames.cpp atacmdnames.h atacmds.cpp \
+       atacmds.h dev_ata_cmd_set.cpp dev_ata_cmd_set.h \
+       dev_intelliprop.cpp dev_intelliprop.h dev_interface.cpp \
+       dev_interface.h dev_tunnelled.h drivedb.h knowndrives.cpp \
+       knowndrives.h nvmecmds.cpp nvmecmds.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp utility.cpp utility.h sg_unaligned.h \
+       $(am__append_10) $(am__append_14) $(am__append_16) \
+       $(am__append_20)
+smartd_LDADD = $(os_deps) $(os_libs) $(CAPNG_LDADD) $(SYSTEMD_LDADD) \
+       $(am__append_11) $(am__append_22)
+smartd_DEPENDENCIES = $(os_deps) $(am__append_12)
+EXTRA_smartd_SOURCES = os_darwin.cpp os_darwin.h os_linux.cpp \
+       os_linux.h os_freebsd.cpp os_freebsd.h os_netbsd.cpp \
+       os_netbsd.h os_openbsd.cpp os_openbsd.h os_os2.cpp os_os2.h \
+       os_qnxnto.cpp os_qnxnto.h os_solaris.cpp os_solaris.h \
+       os_win32.cpp os_generic.cpp os_generic.h aacraid.h cciss.cpp \
+       cciss.h cissio_freebsd.h dev_areca.cpp dev_areca.h \
+       dev_legacy.cpp linux_nvme_ioctl.h freebsd_nvme_ioctl.h \
+       netbsd_nvme_ioctl.h megaraid.h $(am__append_18)
+
+# Exclude from source tarball
+nodist_EXTRA_smartctl_SOURCES = os_solaris_ata.s
+nodist_EXTRA_smartd_SOURCES = os_solaris_ata.s
 
 # This block is required because Solaris uses manual page section 1m
 # for administrative command (linux/freebsd use section 8) and Solaris
 # uses manual page section 4 for file formats (linux/freebsd use
 # section 5).  Automake can deal cleanly with man page sections 1-8
 # and n, but NOT with sections of the form 1m.
-@OS_SOLARIS_TRUE@extra_MANS = smartd.conf.4 \
-@OS_SOLARIS_TRUE@                  smartctl.1m   \
-@OS_SOLARIS_TRUE@                  smartd.1m
-
+@OS_SOLARIS_TRUE@extra_MANS = smartd.conf.4 smartctl.1m smartd.1m \
+@OS_SOLARIS_TRUE@      $(am__append_23)
 # For systems that adopts traditional manner
-@OS_SOLARIS_FALSE@man_MANS = smartd.conf.5 \
-@OS_SOLARIS_FALSE@                  smartctl.8    \
-@OS_SOLARIS_FALSE@                  smartd.8
-
+@OS_SOLARIS_FALSE@man_MANS = smartd.conf.5 smartctl.8 smartd.8 \
+@OS_SOLARIS_FALSE@     $(am__append_24)
 docsdir = $(docdir)
-docs_DATA = AUTHORS     \
-            CHANGELOG   \
-            COPYING     \
-            INSTALL     \
-            NEWS        \
-            README      \
-            TODO        \
-            WARNINGS    \
-            smartd.conf
-
-sysconf_DATA = smartd.conf$(smartd_suffix)
-EXTRA_DIST = smartmontools.spec                    \
-             smartd.initd.in                       \
-             smartd.8.in                           \
-             smartctl.8.in                         \
-             smartd.conf.5.in                      \
-             smartd.conf                           \
-             autogen.sh                            \
-             os_darwin/SMART.in                    \
-             os_darwin/StartupParameters.plist     \
-             os_darwin/English_Localizable.strings \
-             $(docs_DATA)
-
-CLEANFILES = smartd.conf.5 smartd.conf.4 smartd.8 smartd.1m \
-       smartd.8.html smartd.8.txt smartctl.8 smartctl.1m \
-       smartctl.8.html smartctl.8.txt smartd.conf.5.html \
-       smartd.conf.5.txt smartd.initd SMART $(am__append_5) \
-       $(am__append_6)
-@OS_DARWIN_FALSE@initd_DATA = smartd.initd
-@OS_DARWIN_TRUE@initd_DATA = SMART                            \
-@OS_DARWIN_TRUE@       os_darwin/StartupParameters.plist     \
-@OS_DARWIN_TRUE@       os_darwin/English_Localizable.strings
-
-@OS_DARWIN_FALSE@initd_install_name = smartd$(smartd_suffix)
-@OS_DARWIN_TRUE@initd_install_name = SMART
-@OS_DARWIN_FALSE@initd_DATA_install = install-initdDATA-generic
-@OS_DARWIN_TRUE@initd_DATA_install = install-initdDATA-darwin
-
-# Commands to convert man pages into .html and .txt
+docs_DATA = \
+        AUTHORS \
+        ChangeLog \
+        ChangeLog-5.0-6.0 \
+        COPYING \
+        INSTALL \
+        NEWS \
+        README \
+        TODO \
+        smartd.conf
+
+examplesdir = $(exampledir)
+examples_DATA = \
+        examplescripts/README
+
+examples_SCRIPTS = \
+        examplescripts/Example1 \
+        examplescripts/Example2 \
+        examplescripts/Example3 \
+        examplescripts/Example4 \
+        examplescripts/Example5 \
+        examplescripts/Example6
+
+sysconf_DATA = smartd.conf
+smartdscript_SCRIPTS = smartd_warning.sh
+EXTRA_DIST = \
+        .editorconfig \
+        autogen.sh \
+        smartd.initd.in \
+        smartd.cygwin.initd.in \
+        smartd.freebsd.initd.in \
+        smartd.8.in \
+        smartctl.8.in \
+        smartd.conf.5.in \
+        smartd.conf \
+        smartd.service.in \
+        smartd_warning.sh.in \
+        update-smart-drivedb.in \
+        update-smart-drivedb.8.in \
+        m4/pkg.m4 \
+        os_darwin/com.smartmontools.smartd.plist.in \
+        os_darwin/pkg/PackageInfo.in \
+        os_darwin/pkg/Distribution.in \
+        os_darwin/pkg/installer/README.html \
+        os_darwin/pkg/root/usr/local/sbin/smart-pkg-uninstall \
+        os_win32/default.manifest \
+        os_win32/installer.nsi \
+        os_win32/runcmd.c \
+        os_win32/smartd_mailer.ps1 \
+        os_win32/smartd_mailer.conf.sample.ps1 \
+        os_win32/smartd_warning.cmd \
+        os_win32/syslogevt.mc \
+        os_win32/update-smart-drivedb.nsi \
+        os_win32/versioninfo.rc.in \
+        os_win32/wtssendmsg.c \
+        $(docs_DATA) \
+        $(examples_DATA) \
+        $(examples_SCRIPTS)
+
+CLEANFILES = smartd.8 smartd.1m smartd.8.html smartd.8.html.tmp \
+       smartd.8.pdf smartd.8.txt smartctl.8 smartctl.1m \
+       smartctl.8.html smartctl.8.html.tmp smartctl.8.pdf \
+       smartctl.8.txt smartd.conf.5 smartd.conf.4 smartd.conf.5.html \
+       smartd.conf.5.html.tmp smartd.conf.5.pdf smartd.conf.5.txt \
+       smartd.initd smartd.cygwin.initd smartd.freebsd.initd \
+       smartd.service smartd_warning.sh svnversion.h \
+       update-smart-drivedb update-smart-drivedb.8 \
+       update-smart-drivedb.1m update-smart-drivedb.8.html \
+       update-smart-drivedb.8.html.tmp update-smart-drivedb.8.pdf \
+       update-smart-drivedb.8.txt SMART $(am__append_27)
+
+# 'make maintainer-clean' also removes files generated by './autogen.sh'
+MAINTAINERCLEANFILES = \
+        $(srcdir)/Makefile.in \
+        $(srcdir)/aclocal.m4 \
+        $(srcdir)/compile \
+        $(srcdir)/configure \
+        $(srcdir)/config.guess \
+        $(srcdir)/config.h.in \
+        $(srcdir)/config.h.in~ \
+        $(srcdir)/config.sub \
+        $(srcdir)/depcomp \
+        $(srcdir)/install-sh \
+        $(srcdir)/missing \
+        $(srcdir)/m4/pkg.m4
+
+@ENABLE_DRIVEDB_TRUE@drivedb_DATA = drivedb.h
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@initd_DATA = $(initdfile)
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@initd_DATA = com.smartmontools.smartd.plist
+@INSTALL_INITSCRIPT_FALSE@initd_DATA_install = install-initdDATA-null
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@initd_DATA_install = install-initdDATA-generic
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@initd_DATA_install = install-initdDATA-darwin
+@INSTALL_INITSCRIPT_FALSE@initd_DATA_uninstall = uninstall-initdDATA-null
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@initd_DATA_uninstall = uninstall-initdDATA-generic
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@initd_DATA_uninstall = uninstall-initdDATA-darwin
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@initd_install_name = smartd$(smartd_suffix)
+@INSTALL_SYSTEMDUNIT_TRUE@systemdsystemunit_DATA = smartd.service
+
+#
+# Build man pages
+#
+MAN_FILTER = { \
+    sed -e 's|CURRENT_SVN_VERSION|$(releaseversion)|g' \
+        -e "s|CURRENT_SVN_DATE|`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`|g" \
+        -e "s|CURRENT_SVN_REV|`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`|g" \
+        -e 's|/usr/local/share/man/|$(mandir)/|g' \
+        -e 's|/usr/local/sbin/|$(sbindir)/|g' \
+        -e 's|/usr/local/share/doc/smartmontools/examplescripts/|!exampledir!|g' \
+        -e 's|/usr/local/share/doc/smartmontools/|$(docsdir)/|g' \
+        -e 's|!exampledir!|$(exampledir)/|g' \
+        -e 's|/usr/local/etc/smartd\.conf|$(sysconfdir)/smartd.conf|g' \
+        -e 's|/usr/local/etc/smart_drivedb\.h|$(sysconfdir)/smart_drivedb.h|g' \
+        -e 's|/usr/local/etc/smartd_warning\.sh|$(smartdscriptdir)/smartd_warning.sh|g' \
+        -e 's|\\fBmail\\fP|\\fB$(os_mailer)\\fP|g' \
+        -e 's|\\'\''mail\\'\''|\\'\''$(os_mailer)\\'\''|g' \
+        -e 's|/usr/bin/mail|/usr/bin/$(os_mailer)|g' \
+        -e 's|RELEASE_6_0_DRIVEDB|$(DRIVEDB_BRANCH)|g' | \
+    if test -n '$(drivedbdir)'; then \
+      sed 's|/usr/local/share/smartmontools/drivedb\.h|$(drivedbdir)/drivedb.h|g' ; \
+    else \
+      sed '/^\.\\" %IF ENABLE_DRIVEDB/,/^\.\\" %ENDIF ENABLE_DRIVEDB/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test '$(with_update_smart_drivedb)' = 'yes'; then \
+      cat; \
+    else \
+      sed '/^\.\\" %IF ENABLE_UPDATE_SMART_DRIVEDB/,/^\.\\" %ENDIF ENABLE_UPDATE_SMART_DRIVEDB/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(initddir)'; then \
+      sed 's|/usr/local/etc/rc\.d/init\.d/|$(initddir)/|g' ; \
+    else \
+      sed '/^\.\\" %IF ENABLE_INITSCRIPT/,/^\.\\" %ENDIF ENABLE_INITSCRIPT/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(savestates)'; then \
+      sed 's|/usr/local/var/lib/smartmontools/smartd\.|$(savestates)|g' ; \
+    else \
+      sed '/^\.\\" %IF ENABLE_SAVESTATES/,/^\.\\" %ENDIF ENABLE_SAVESTATES/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(attributelog)'; then \
+      sed 's|/usr/local/var/lib/smartmontools/attrlog\.|$(attributelog)|g' ; \
+    else \
+      sed '/^\.\\" %IF ENABLE_ATTRIBUTELOG/,/^\.\\" %ENDIF ENABLE_ATTRIBUTELOG/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(smartdplugindir)'; then \
+      sed 's|/usr/local/etc/smartd_warning\.d|$(smartdplugindir)|g' ; \
+    else \
+      sed '/^\.\\" %IF ENABLE_SMARTDPLUGINDIR/,/^\.\\" %ENDIF ENABLE_SMARTDPLUGINDIR/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(CAPNG_LDADD)'; then \
+      cat; \
+    else \
+      sed '/^\.\\" %IF ENABLE_CAPABILITIES/,/^\.\\" %ENDIF ENABLE_CAPABILITIES/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(SYSTEMD_LDADD)'; then \
+      cat; \
+    else \
+      sed '/^\.\\" %IF ENABLE_SYSTEMD_NOTIFY/,/^\.\\" %ENDIF ENABLE_SYSTEMD_NOTIFY/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test '$(with_nvme_devicescan)' = 'yes'; then \
+      cat; \
+    else \
+      sed '/^\.\\" %IF ENABLE_NVME_DEVICESCAN/,/^\.\\" %ENDIF ENABLE_NVME_DEVICESCAN/ s,^,.\\"\# ,' ; \
+    fi | \
+    if test -n '$(os_man_filter)'; then \
+      sed -e 's,OS_MAN_FILTER,$(os_man_filter),g' \
+          -e '/^\.\\" %IF NOT OS .*$(os_man_filter)/,/^.\\" %ENDIF NOT OS .*$(os_man_filter)/ s,^,.\\"\# ,' \
+          -e '/^\.\\" %IF OS .*$(os_man_filter)/,/^\.\\" %ENDIF OS .*$(os_man_filter)/ s,^,!!,' \
+          -e '/^\.\\" %IF OS ./,/^\.\\" %ENDIF OS ./ s,^,.\\"\# ,' \
+          -e '/^!*\.\\" %IF NOT OS ./,/^!*\.\\" %ENDIF NOT OS ./ s,^,!!,' \
+          -e 's,^!!!*\.\\"! \(.*\)$$,\1 \\"\#,' \
+          -e 's,^!!!*,,' ; \
+    else \
+      cat; \
+    fi; }
+
+
+# Build Solaris specific man pages
+SOLARIS_MAN_FILTER = \
+    sed -e '/^\.TH/s, \([58]\) , !!\1!! ,' \
+        -e '/^\.BR/s, (\([578]\)), (!!\1!!),' \
+        -e 's,\\fP(\([578]\)),\\fP(!!\1!!),g' \
+        -e 's,!!5!!,4,g' -e 's,!!7!!,5,g' -e 's,!!8!!,1m,g' \
+        -e 's,/var/log/messages,/var/adm/messages,g'
+
+
+# Convert man pages into .html, .pdf and .txt
 # TODO: configure
 MAN2HTML = man2html
 #MAN2HTML = groff -man -Thtml
+MAN2PDF = man -Tpdf -l
+#MAN2PDF = groff -man -Tpdf
 MAN2TXT = groff -man -Tascii -P'-bcou'
 
-# Fix links in man2html output
-FIXHTML = sed 's,<A HREF="http://[-a-z/]*/man2html?\([1-8]\)+\(smart[cd][.a-z]*\)">,<A HREF="\2.\1.html">,g' \
-        | sed 's,<A HREF="http://[-a-z/]*/man2html">,<A HREF=".">,g' \
-        | sed 's,<A HREF="http://[-a-z/]*/man2html?[^"]*">\([^<]*\)</A>,\1,g' \
-        | sed 's,<A HREF="mailto:[^s][^m][^a][^"]*">\([^<]*\)</A>,\1,g'
+# Remove HTTP header and fix links in man2html output
+FIXHTML = sed -e '1s,^Content-type.*,,' \
+              -e 's,<A HREF="[^"]*/man2html?\([1-8]\)+\(smart[cd][.a-z]*\)">,<A HREF="\2.\1.html">,g' \
+              -e 's,<A HREF="[^"]*/man2html">,<A HREF=".">,g' \
+              -e 's,<A HREF="[^"]*/man2html?[^"]*">\([^<]*\)</A>,\1,g' \
+              -e 's,<A HREF="mailto:[^s][^m][^a][^"]*">\([^<]*\)</A>,\1,g'
+
+
+# Convert version for VERSIONINFO resource: 6.6 r4519 -> 6.6.0.4519,
+# set description, name, version and year
+@OS_WIN32_MINGW_TRUE@WIN_RC_FILTER = { \
+@OS_WIN32_MINGW_TRUE@    ver=`echo '$(PACKAGE_VERSION).0' | sed -n 's,^\([0-9]*\.[0-9]*\.[0-9]*\).*$$,\1,p'` && \
+@OS_WIN32_MINGW_TRUE@    rev=`sed -n 's,^.*REV[^"]*"\([0-9]*\).*$$,\1,p' svnversion.h` && \
+@OS_WIN32_MINGW_TRUE@    txtver="$${ver:-0.0.0}.$${rev:-0}" && binver=`echo "$$txtver" | sed 's|\.|,|g'` && \
+@OS_WIN32_MINGW_TRUE@    yy=`sed -n 's,^.*DATE[^"]*"20\([0-9][0-9]\).*$$,\1,p' svnversion.h` && yy="$${yy:-XX}" && \
+@OS_WIN32_MINGW_TRUE@    sed -e "s|@DESC@|$$d|" -e "s|@NAME@|$$n|" -e "s|@BINARY_VERSION@|$$binver|g" \
+@OS_WIN32_MINGW_TRUE@        -e "s|@TEXT_VERSION@|$$txtver|g" -e "s|@YY@|$$yy|g"; }
+
+@OS_WIN32_MINGW_TRUE@WIN_MAKE_RES = \
+@OS_WIN32_MINGW_TRUE@    echo "n=$$n d=\"$$d"'"; $$(WIN_RC_FILTER) < $< > $@'; \
+@OS_WIN32_MINGW_TRUE@    $(WIN_RC_FILTER) < $< > $@
+
+@OS_WIN32_MINGW_TRUE@WIN_APP_MANIFEST = \
+@OS_WIN32_MINGW_TRUE@    if test -n '$(os_win32_manifest)'; then \
+@OS_WIN32_MINGW_TRUE@      echo "echo '1 24 \"$(srcdir)/$(os_win32_manifest)\"' >> $@"; \
+@OS_WIN32_MINGW_TRUE@      echo '1 24 "$(srcdir)/$(os_win32_manifest)"' >> $@; \
+@OS_WIN32_MINGW_TRUE@    fi
 
+@OS_WIN32_MINGW_TRUE@@OS_WIN64_FALSE@win_bits = 32
 
 # Definitions for Windows distribution
-@OS_WIN32_MINGW_TRUE@distdir_win32 = $(PACKAGE)-$(VERSION).win32
-@OS_WIN32_MINGW_TRUE@distzip_win32 = $(PACKAGE)-$(VERSION).win32.zip
+@OS_WIN32_MINGW_TRUE@@OS_WIN64_TRUE@win_bits = 64
+@OS_WIN32_MINGW_TRUE@distdir_win32 = $(PACKAGE)-$(VERSION).win$(win_bits)
+@OS_WIN32_MINGW_TRUE@distzip_win32 = $(PACKAGE)-$(VERSION).win$(win_bits).zip
+@OS_WIN32_MINGW_TRUE@distinst_win32 = $(PACKAGE)-$(VERSION).win$(win_bits)-setup.exe
 @OS_WIN32_MINGW_TRUE@exedir_win32 = $(distdir_win32)/bin
 @OS_WIN32_MINGW_TRUE@docdir_win32 = $(distdir_win32)/doc
-@OS_WIN32_MINGW_TRUE@FILES_WIN32 = $(exedir_win32)/smartctl.exe \
-@OS_WIN32_MINGW_TRUE@              $(exedir_win32)/smartd.exe \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/AUTHORS.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/CHANGELOG.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/COPYING.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/INSTALL.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/NEWS.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/README.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/TODO.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/WARNINGS.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartd.conf \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartctl.8.html \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartctl.8.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartd.8.html \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartd.8.txt \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartd.conf.5.html \
-@OS_WIN32_MINGW_TRUE@              $(docdir_win32)/smartd.conf.5.txt
-
-
-# Textfile converter from cygutils
-@OS_WIN32_MINGW_TRUE@UNIX2DOS = unix2dos -D
-SUBDIRS = . examplescripts
+@OS_WIN32_MINGW_TRUE@EXEFILES_WIN32 = $(exedir_win32)/smartctl.exe \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/smartctl-nc.exe \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/smartd.exe \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/smartd_mailer.ps1 \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/smartd_mailer.conf.sample.ps1 \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/smartd_warning.cmd \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/runcmda.exe \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/runcmdu.exe \
+@OS_WIN32_MINGW_TRUE@  $(exedir_win32)/wtssendmsg.exe \
+@OS_WIN32_MINGW_TRUE@  $(am__append_25)
+@OS_WIN32_MINGW_TRUE@FILES_WIN32 = $(EXEFILES_WIN32) \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/AUTHORS.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/ChangeLog.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/ChangeLog-5.0-6.0.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/COPYING.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/INSTALL.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/NEWS.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/README.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/TODO.txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/checksums$(win_bits).txt \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.conf \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartctl.8.html \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartctl.8.pdf \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.8.html \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.8.pdf \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.conf.5.html \
+@OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.conf.5.pdf \
+@OS_WIN32_MINGW_TRUE@  $(am__append_26)
+
+# Note: Only use without options to be compatible with all variants
+@OS_WIN32_MINGW_TRUE@UNIX2DOS = unix2dos
+
+# Build os_win32/vc14/{config.h,smart*.rc,svnversion.h} for MSVC14 from MinGW files
+@OS_WIN32_MINGW_TRUE@vcver = 14
+@OS_WIN32_MINGW_TRUE@CONFIG_VC_FILES = \
+@OS_WIN32_MINGW_TRUE@        $(srcdir)/os_win32/vc$(vcver)/config.h \
+@OS_WIN32_MINGW_TRUE@        $(srcdir)/os_win32/vc$(vcver)/smartctl_res.rc \
+@OS_WIN32_MINGW_TRUE@        $(srcdir)/os_win32/vc$(vcver)/smartd_res.rc \
+@OS_WIN32_MINGW_TRUE@        $(srcdir)/os_win32/vc$(vcver)/svnversion.h
+
+
+# Definitions for OSX distribution
+@OS_DARWIN_TRUE@distdir_darwin = $(PACKAGE)-$(VERSION).darwin
+@OS_DARWIN_TRUE@dmg_darwin = $(PACKAGE)-$(VERSION).dmg
+@OS_DARWIN_TRUE@pkg_darwin = $(PACKAGE)-$(VERSION).pkg
 all: config.h
-       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+       $(MAKE) $(AM_MAKEFLAGS) all-am
 
 .SUFFIXES:
-.SUFFIXES: .c .o .obj .s
-am--refresh:
+.SUFFIXES: .cpp .c .s .o .obj
+am--refresh: Makefile
        @:
 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
        @for dep in $?; do \
          case '$(am__configure_deps)' in \
            *$$dep*) \
-             echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
-             cd $(srcdir) && $(AUTOMAKE) --foreign  \
+             echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
+             $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
                && exit 0; \
              exit 1;; \
          esac; \
        done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  Makefile'; \
-       cd $(top_srcdir) && \
-         $(AUTOMAKE) --foreign  Makefile
-.PRECIOUS: Makefile
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --foreign Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \
          *config.status*) \
@@ -436,21 +936,20 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENC
        $(SHELL) ./config.status --recheck
 
 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
-       cd $(srcdir) && $(AUTOCONF)
+       $(am__cd) $(srcdir) && $(AUTOCONF)
 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
-       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+       $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
 
 config.h: stamp-h1
-       @if test ! -f $@; then \
-         rm -f stamp-h1; \
-         $(MAKE) stamp-h1; \
-       else :; fi
+       @test -f $@ || rm -f stamp-h1
+       @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
 
 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
        @rm -f stamp-h1
        cd $(top_builddir) && $(SHELL) ./config.status config.h
 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 
-       cd $(top_srcdir) && $(AUTOHEADER)
+       ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
        rm -f stamp-h1
        touch $@
 
@@ -458,33 +957,159 @@ distclean-hdr:
        -rm -f config.h stamp-h1
 install-sbinPROGRAMS: $(sbin_PROGRAMS)
        @$(NORMAL_INSTALL)
-       test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
-       @list='$(sbin_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) $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
-          $(INSTALL_PROGRAM_ENV) $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
-         else :; fi; \
-       done
+       @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \
+       fi; \
+       for p in $$list; do echo "$$p $$p"; done | \
+       sed 's/$(EXEEXT)$$//' | \
+       while read p p1; do if test -f $$p \
+         ; then echo "$$p"; echo "$$p"; else :; fi; \
+       done | \
+       sed -e 'p;s,.*/,,;n;h' \
+           -e 's|.*|.|' \
+           -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+       sed 'N;N;N;s,\n, ,g' | \
+       $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+         { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+           if ($$2 == $$4) files[d] = files[d] " " $$1; \
+           else { print "f", $$3 "/" $$4, $$1; } } \
+         END { for (d in files) print "f", d, files[d] }' | \
+       while read type dir files; do \
+           if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+           test -z "$$files" || { \
+             echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
+             $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
+           } \
+       ; done
 
 uninstall-sbinPROGRAMS:
        @$(NORMAL_UNINSTALL)
-       @list='$(sbin_PROGRAMS)'; for p in $$list; do \
-         f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
-         echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
-         rm -f "$(DESTDIR)$(sbindir)/$$f"; \
-       done
+       @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
+       files=`for p in $$list; do echo "$$p"; done | \
+         sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+             -e 's/$$/$(EXEEXT)/' \
+       `; \
+       test -n "$$list" || exit 0; \
+       echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
+       cd "$(DESTDIR)$(sbindir)" && rm -f $$files
 
 clean-sbinPROGRAMS:
        -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
-smartctl$(EXEEXT): $(smartctl_OBJECTS) $(smartctl_DEPENDENCIES) 
+
+smartctl$(EXEEXT): $(smartctl_OBJECTS) $(smartctl_DEPENDENCIES) $(EXTRA_smartctl_DEPENDENCIES) 
        @rm -f smartctl$(EXEEXT)
-       $(LINK) $(smartctl_LDFLAGS) $(smartctl_OBJECTS) $(smartctl_LDADD) $(LIBS)
-smartd$(EXEEXT): $(smartd_OBJECTS) $(smartd_DEPENDENCIES) 
+       $(AM_V_CXXLD)$(CXXLINK) $(smartctl_OBJECTS) $(smartctl_LDADD) $(LIBS)
+
+smartd$(EXEEXT): $(smartd_OBJECTS) $(smartd_DEPENDENCIES) $(EXTRA_smartd_DEPENDENCIES) 
        @rm -f smartd$(EXEEXT)
-       $(LINK) $(smartd_LDFLAGS) $(smartd_OBJECTS) $(smartd_LDADD) $(LIBS)
+       $(AM_V_CXXLD)$(CXXLINK) $(smartd_OBJECTS) $(smartd_LDADD) $(LIBS)
+install-examplesSCRIPTS: $(examples_SCRIPTS)
+       @$(NORMAL_INSTALL)
+       @list='$(examples_SCRIPTS)'; test -n "$(examplesdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(examplesdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(examplesdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
+       done | \
+       sed -e 'p;s,.*/,,;n' \
+           -e 'h;s|.*|.|' \
+           -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
+       $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
+         { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+           if ($$2 == $$4) { files[d] = files[d] " " $$1; \
+             if (++n[d] == $(am__install_max)) { \
+               print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
+           else { print "f", d "/" $$4, $$1 } } \
+         END { for (d in files) print "f", d, files[d] }' | \
+       while read type dir files; do \
+            if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+            test -z "$$files" || { \
+              echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(examplesdir)$$dir'"; \
+              $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(examplesdir)$$dir" || exit $$?; \
+            } \
+       ; done
+
+uninstall-examplesSCRIPTS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(examples_SCRIPTS)'; test -n "$(examplesdir)" || exit 0; \
+       files=`for p in $$list; do echo "$$p"; done | \
+              sed -e 's,.*/,,;$(transform)'`; \
+       dir='$(DESTDIR)$(examplesdir)'; $(am__uninstall_files_from_dir)
+install-sbinSCRIPTS: $(sbin_SCRIPTS)
+       @$(NORMAL_INSTALL)
+       @list='$(sbin_SCRIPTS)'; test -n "$(sbindir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
+       done | \
+       sed -e 'p;s,.*/,,;n' \
+           -e 'h;s|.*|.|' \
+           -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
+       $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
+         { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+           if ($$2 == $$4) { files[d] = files[d] " " $$1; \
+             if (++n[d] == $(am__install_max)) { \
+               print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
+           else { print "f", d "/" $$4, $$1 } } \
+         END { for (d in files) print "f", d, files[d] }' | \
+       while read type dir files; do \
+            if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+            test -z "$$files" || { \
+              echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
+              $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
+            } \
+       ; done
+
+uninstall-sbinSCRIPTS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(sbin_SCRIPTS)'; test -n "$(sbindir)" || exit 0; \
+       files=`for p in $$list; do echo "$$p"; done | \
+              sed -e 's,.*/,,;$(transform)'`; \
+       dir='$(DESTDIR)$(sbindir)'; $(am__uninstall_files_from_dir)
+install-smartdscriptSCRIPTS: $(smartdscript_SCRIPTS)
+       @$(NORMAL_INSTALL)
+       @list='$(smartdscript_SCRIPTS)'; test -n "$(smartdscriptdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(smartdscriptdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(smartdscriptdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
+       done | \
+       sed -e 'p;s,.*/,,;n' \
+           -e 'h;s|.*|.|' \
+           -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
+       $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
+         { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+           if ($$2 == $$4) { files[d] = files[d] " " $$1; \
+             if (++n[d] == $(am__install_max)) { \
+               print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
+           else { print "f", d "/" $$4, $$1 } } \
+         END { for (d in files) print "f", d, files[d] }' | \
+       while read type dir files; do \
+            if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+            test -z "$$files" || { \
+              echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(smartdscriptdir)$$dir'"; \
+              $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(smartdscriptdir)$$dir" || exit $$?; \
+            } \
+       ; done
+
+uninstall-smartdscriptSCRIPTS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(smartdscript_SCRIPTS)'; test -n "$(smartdscriptdir)" || exit 0; \
+       files=`for p in $$list; do echo "$$p"; done | \
+              sed -e 's,.*/,,;$(transform)'`; \
+       dir='$(DESTDIR)$(smartdscriptdir)'; $(am__uninstall_files_from_dir)
 
 mostlyclean-compile:
        -rm -f *.$(OBJEXT)
@@ -494,458 +1119,526 @@ distclean-compile:
 
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atacmdnames.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atacmds.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ataidentify.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ataprint.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cciss.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/daemon_win32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hostname_win32.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_areca.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_ata_cmd_set.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_intelliprop.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_interface.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_legacy.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/json.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/knowndrives.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nvmecmds.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nvmeprint.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_darwin.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_freebsd.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_generic.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_linux.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_netbsd.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_openbsd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_os2.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_qnxnto.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_solaris.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_win32.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/popen_win32.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regcomp.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex_internal.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regexec.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsiata.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsicmds.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsinvme.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsiprint.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smartctl.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smartd.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syslog_win32.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utility.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wmiquery.Po@am__quote@
 
 .c.o:
-@am__fastdepCC_TRUE@   if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(COMPILE) -c $<
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
 
 .c.obj:
-@am__fastdepCC_TRUE@   if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(COMPILE) -c `$(CYGPATH_W) '$<'`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
 
-regex.o: posix/regex.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex.o -MD -MP -MF "$(DEPDIR)/regex.Tpo" -c -o regex.o `test -f 'posix/regex.c' || echo '$(srcdir)/'`posix/regex.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regex.Tpo" "$(DEPDIR)/regex.Po"; else rm -f "$(DEPDIR)/regex.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regex.c' object='regex.o' libtool=no @AMDEPBACKSLASH@
+getopt.o: getopt/getopt.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.o `test -f 'getopt/getopt.c' || echo '$(srcdir)/'`getopt/getopt.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='getopt/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex.o `test -f 'posix/regex.c' || echo '$(srcdir)/'`posix/regex.c
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f 'getopt/getopt.c' || echo '$(srcdir)/'`getopt/getopt.c
 
-regex.obj: posix/regex.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex.obj -MD -MP -MF "$(DEPDIR)/regex.Tpo" -c -o regex.obj `if test -f 'posix/regex.c'; then $(CYGPATH_W) 'posix/regex.c'; else $(CYGPATH_W) '$(srcdir)/posix/regex.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regex.Tpo" "$(DEPDIR)/regex.Po"; else rm -f "$(DEPDIR)/regex.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regex.c' object='regex.obj' libtool=no @AMDEPBACKSLASH@
+getopt.obj: getopt/getopt.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF $(DEPDIR)/getopt.Tpo -c -o getopt.obj `if test -f 'getopt/getopt.c'; then $(CYGPATH_W) 'getopt/getopt.c'; else $(CYGPATH_W) '$(srcdir)/getopt/getopt.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/getopt.Tpo $(DEPDIR)/getopt.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='getopt/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex.obj `if test -f 'posix/regex.c'; then $(CYGPATH_W) 'posix/regex.c'; else $(CYGPATH_W) '$(srcdir)/posix/regex.c'; fi`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f 'getopt/getopt.c'; then $(CYGPATH_W) 'getopt/getopt.c'; else $(CYGPATH_W) '$(srcdir)/getopt/getopt.c'; fi`
 
-regcomp.o: posix/regcomp.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.o -MD -MP -MF "$(DEPDIR)/regcomp.Tpo" -c -o regcomp.o `test -f 'posix/regcomp.c' || echo '$(srcdir)/'`posix/regcomp.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regcomp.Tpo" "$(DEPDIR)/regcomp.Po"; else rm -f "$(DEPDIR)/regcomp.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regcomp.c' object='regcomp.o' libtool=no @AMDEPBACKSLASH@
+getopt1.o: getopt/getopt1.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt1.o -MD -MP -MF $(DEPDIR)/getopt1.Tpo -c -o getopt1.o `test -f 'getopt/getopt1.c' || echo '$(srcdir)/'`getopt/getopt1.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/getopt1.Tpo $(DEPDIR)/getopt1.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='getopt/getopt1.c' object='getopt1.o' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.o `test -f 'posix/regcomp.c' || echo '$(srcdir)/'`posix/regcomp.c
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt1.o `test -f 'getopt/getopt1.c' || echo '$(srcdir)/'`getopt/getopt1.c
 
-regcomp.obj: posix/regcomp.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.obj -MD -MP -MF "$(DEPDIR)/regcomp.Tpo" -c -o regcomp.obj `if test -f 'posix/regcomp.c'; then $(CYGPATH_W) 'posix/regcomp.c'; else $(CYGPATH_W) '$(srcdir)/posix/regcomp.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regcomp.Tpo" "$(DEPDIR)/regcomp.Po"; else rm -f "$(DEPDIR)/regcomp.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regcomp.c' object='regcomp.obj' libtool=no @AMDEPBACKSLASH@
+getopt1.obj: getopt/getopt1.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt1.obj -MD -MP -MF $(DEPDIR)/getopt1.Tpo -c -o getopt1.obj `if test -f 'getopt/getopt1.c'; then $(CYGPATH_W) 'getopt/getopt1.c'; else $(CYGPATH_W) '$(srcdir)/getopt/getopt1.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/getopt1.Tpo $(DEPDIR)/getopt1.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='getopt/getopt1.c' object='getopt1.obj' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.obj `if test -f 'posix/regcomp.c'; then $(CYGPATH_W) 'posix/regcomp.c'; else $(CYGPATH_W) '$(srcdir)/posix/regcomp.c'; fi`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt1.obj `if test -f 'getopt/getopt1.c'; then $(CYGPATH_W) 'getopt/getopt1.c'; else $(CYGPATH_W) '$(srcdir)/getopt/getopt1.c'; fi`
 
-regexec.o: posix/regexec.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.o -MD -MP -MF "$(DEPDIR)/regexec.Tpo" -c -o regexec.o `test -f 'posix/regexec.c' || echo '$(srcdir)/'`posix/regexec.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regexec.Tpo" "$(DEPDIR)/regexec.Po"; else rm -f "$(DEPDIR)/regexec.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regexec.c' object='regexec.o' libtool=no @AMDEPBACKSLASH@
+regex.o: regex/regex.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex.o -MD -MP -MF $(DEPDIR)/regex.Tpo -c -o regex.o `test -f 'regex/regex.c' || echo '$(srcdir)/'`regex/regex.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regex.Tpo $(DEPDIR)/regex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regex.c' object='regex.o' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.o `test -f 'posix/regexec.c' || echo '$(srcdir)/'`posix/regexec.c
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex.o `test -f 'regex/regex.c' || echo '$(srcdir)/'`regex/regex.c
 
-regexec.obj: posix/regexec.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.obj -MD -MP -MF "$(DEPDIR)/regexec.Tpo" -c -o regexec.obj `if test -f 'posix/regexec.c'; then $(CYGPATH_W) 'posix/regexec.c'; else $(CYGPATH_W) '$(srcdir)/posix/regexec.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regexec.Tpo" "$(DEPDIR)/regexec.Po"; else rm -f "$(DEPDIR)/regexec.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regexec.c' object='regexec.obj' libtool=no @AMDEPBACKSLASH@
+regex.obj: regex/regex.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex.obj -MD -MP -MF $(DEPDIR)/regex.Tpo -c -o regex.obj `if test -f 'regex/regex.c'; then $(CYGPATH_W) 'regex/regex.c'; else $(CYGPATH_W) '$(srcdir)/regex/regex.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regex.Tpo $(DEPDIR)/regex.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regex.c' object='regex.obj' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.obj `if test -f 'posix/regexec.c'; then $(CYGPATH_W) 'posix/regexec.c'; else $(CYGPATH_W) '$(srcdir)/posix/regexec.c'; fi`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex.obj `if test -f 'regex/regex.c'; then $(CYGPATH_W) 'regex/regex.c'; else $(CYGPATH_W) '$(srcdir)/regex/regex.c'; fi`
 
-regex_internal.o: posix/regex_internal.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex_internal.o -MD -MP -MF "$(DEPDIR)/regex_internal.Tpo" -c -o regex_internal.o `test -f 'posix/regex_internal.c' || echo '$(srcdir)/'`posix/regex_internal.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regex_internal.Tpo" "$(DEPDIR)/regex_internal.Po"; else rm -f "$(DEPDIR)/regex_internal.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regex_internal.c' object='regex_internal.o' libtool=no @AMDEPBACKSLASH@
+regcomp.o: regex/regcomp.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.o -MD -MP -MF $(DEPDIR)/regcomp.Tpo -c -o regcomp.o `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regcomp.Tpo $(DEPDIR)/regcomp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regcomp.c' object='regcomp.o' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex_internal.o `test -f 'posix/regex_internal.c' || echo '$(srcdir)/'`posix/regex_internal.c
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.o `test -f 'regex/regcomp.c' || echo '$(srcdir)/'`regex/regcomp.c
 
-regex_internal.obj: posix/regex_internal.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex_internal.obj -MD -MP -MF "$(DEPDIR)/regex_internal.Tpo" -c -o regex_internal.obj `if test -f 'posix/regex_internal.c'; then $(CYGPATH_W) 'posix/regex_internal.c'; else $(CYGPATH_W) '$(srcdir)/posix/regex_internal.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/regex_internal.Tpo" "$(DEPDIR)/regex_internal.Po"; else rm -f "$(DEPDIR)/regex_internal.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='posix/regex_internal.c' object='regex_internal.obj' libtool=no @AMDEPBACKSLASH@
+regcomp.obj: regex/regcomp.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regcomp.obj -MD -MP -MF $(DEPDIR)/regcomp.Tpo -c -o regcomp.obj `if test -f 'regex/regcomp.c'; then $(CYGPATH_W) 'regex/regcomp.c'; else $(CYGPATH_W) '$(srcdir)/regex/regcomp.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regcomp.Tpo $(DEPDIR)/regcomp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regcomp.c' object='regcomp.obj' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex_internal.obj `if test -f 'posix/regex_internal.c'; then $(CYGPATH_W) 'posix/regex_internal.c'; else $(CYGPATH_W) '$(srcdir)/posix/regex_internal.c'; fi`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regcomp.obj `if test -f 'regex/regcomp.c'; then $(CYGPATH_W) 'regex/regcomp.c'; else $(CYGPATH_W) '$(srcdir)/regex/regcomp.c'; fi`
 
-daemon_win32.o: os_win32/daemon_win32.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT daemon_win32.o -MD -MP -MF "$(DEPDIR)/daemon_win32.Tpo" -c -o daemon_win32.o `test -f 'os_win32/daemon_win32.c' || echo '$(srcdir)/'`os_win32/daemon_win32.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/daemon_win32.Tpo" "$(DEPDIR)/daemon_win32.Po"; else rm -f "$(DEPDIR)/daemon_win32.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='os_win32/daemon_win32.c' object='daemon_win32.o' libtool=no @AMDEPBACKSLASH@
+regexec.o: regex/regexec.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.o -MD -MP -MF $(DEPDIR)/regexec.Tpo -c -o regexec.o `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regexec.Tpo $(DEPDIR)/regexec.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regexec.c' object='regexec.o' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o daemon_win32.o `test -f 'os_win32/daemon_win32.c' || echo '$(srcdir)/'`os_win32/daemon_win32.c
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.o `test -f 'regex/regexec.c' || echo '$(srcdir)/'`regex/regexec.c
 
-daemon_win32.obj: os_win32/daemon_win32.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT daemon_win32.obj -MD -MP -MF "$(DEPDIR)/daemon_win32.Tpo" -c -o daemon_win32.obj `if test -f 'os_win32/daemon_win32.c'; then $(CYGPATH_W) 'os_win32/daemon_win32.c'; else $(CYGPATH_W) '$(srcdir)/os_win32/daemon_win32.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/daemon_win32.Tpo" "$(DEPDIR)/daemon_win32.Po"; else rm -f "$(DEPDIR)/daemon_win32.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='os_win32/daemon_win32.c' object='daemon_win32.obj' libtool=no @AMDEPBACKSLASH@
+regexec.obj: regex/regexec.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regexec.obj -MD -MP -MF $(DEPDIR)/regexec.Tpo -c -o regexec.obj `if test -f 'regex/regexec.c'; then $(CYGPATH_W) 'regex/regexec.c'; else $(CYGPATH_W) '$(srcdir)/regex/regexec.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regexec.Tpo $(DEPDIR)/regexec.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regexec.c' object='regexec.obj' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o daemon_win32.obj `if test -f 'os_win32/daemon_win32.c'; then $(CYGPATH_W) 'os_win32/daemon_win32.c'; else $(CYGPATH_W) '$(srcdir)/os_win32/daemon_win32.c'; fi`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regexec.obj `if test -f 'regex/regexec.c'; then $(CYGPATH_W) 'regex/regexec.c'; else $(CYGPATH_W) '$(srcdir)/regex/regexec.c'; fi`
 
-hostname_win32.o: os_win32/hostname_win32.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hostname_win32.o -MD -MP -MF "$(DEPDIR)/hostname_win32.Tpo" -c -o hostname_win32.o `test -f 'os_win32/hostname_win32.c' || echo '$(srcdir)/'`os_win32/hostname_win32.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/hostname_win32.Tpo" "$(DEPDIR)/hostname_win32.Po"; else rm -f "$(DEPDIR)/hostname_win32.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='os_win32/hostname_win32.c' object='hostname_win32.o' libtool=no @AMDEPBACKSLASH@
+regex_internal.o: regex/regex_internal.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex_internal.o -MD -MP -MF $(DEPDIR)/regex_internal.Tpo -c -o regex_internal.o `test -f 'regex/regex_internal.c' || echo '$(srcdir)/'`regex/regex_internal.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regex_internal.Tpo $(DEPDIR)/regex_internal.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regex_internal.c' object='regex_internal.o' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hostname_win32.o `test -f 'os_win32/hostname_win32.c' || echo '$(srcdir)/'`os_win32/hostname_win32.c
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex_internal.o `test -f 'regex/regex_internal.c' || echo '$(srcdir)/'`regex/regex_internal.c
 
-hostname_win32.obj: os_win32/hostname_win32.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hostname_win32.obj -MD -MP -MF "$(DEPDIR)/hostname_win32.Tpo" -c -o hostname_win32.obj `if test -f 'os_win32/hostname_win32.c'; then $(CYGPATH_W) 'os_win32/hostname_win32.c'; else $(CYGPATH_W) '$(srcdir)/os_win32/hostname_win32.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/hostname_win32.Tpo" "$(DEPDIR)/hostname_win32.Po"; else rm -f "$(DEPDIR)/hostname_win32.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='os_win32/hostname_win32.c' object='hostname_win32.obj' libtool=no @AMDEPBACKSLASH@
+regex_internal.obj: regex/regex_internal.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regex_internal.obj -MD -MP -MF $(DEPDIR)/regex_internal.Tpo -c -o regex_internal.obj `if test -f 'regex/regex_internal.c'; then $(CYGPATH_W) 'regex/regex_internal.c'; else $(CYGPATH_W) '$(srcdir)/regex/regex_internal.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/regex_internal.Tpo $(DEPDIR)/regex_internal.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='regex/regex_internal.c' object='regex_internal.obj' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hostname_win32.obj `if test -f 'os_win32/hostname_win32.c'; then $(CYGPATH_W) 'os_win32/hostname_win32.c'; else $(CYGPATH_W) '$(srcdir)/os_win32/hostname_win32.c'; fi`
-
-syslog_win32.o: os_win32/syslog_win32.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT syslog_win32.o -MD -MP -MF "$(DEPDIR)/syslog_win32.Tpo" -c -o syslog_win32.o `test -f 'os_win32/syslog_win32.c' || echo '$(srcdir)/'`os_win32/syslog_win32.c; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/syslog_win32.Tpo" "$(DEPDIR)/syslog_win32.Po"; else rm -f "$(DEPDIR)/syslog_win32.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='os_win32/syslog_win32.c' object='syslog_win32.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o syslog_win32.o `test -f 'os_win32/syslog_win32.c' || echo '$(srcdir)/'`os_win32/syslog_win32.c
-
-syslog_win32.obj: os_win32/syslog_win32.c
-@am__fastdepCC_TRUE@   if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT syslog_win32.obj -MD -MP -MF "$(DEPDIR)/syslog_win32.Tpo" -c -o syslog_win32.obj `if test -f 'os_win32/syslog_win32.c'; then $(CYGPATH_W) 'os_win32/syslog_win32.c'; else $(CYGPATH_W) '$(srcdir)/os_win32/syslog_win32.c'; fi`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/syslog_win32.Tpo" "$(DEPDIR)/syslog_win32.Po"; else rm -f "$(DEPDIR)/syslog_win32.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='os_win32/syslog_win32.c' object='syslog_win32.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o syslog_win32.obj `if test -f 'os_win32/syslog_win32.c'; then $(CYGPATH_W) 'os_win32/syslog_win32.c'; else $(CYGPATH_W) '$(srcdir)/os_win32/syslog_win32.c'; fi`
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regex_internal.obj `if test -f 'regex/regex_internal.c'; then $(CYGPATH_W) 'regex/regex_internal.c'; else $(CYGPATH_W) '$(srcdir)/regex/regex_internal.c'; fi`
+
+.cpp.o:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
+
+.cpp.obj:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+popen_win32.o: os_win32/popen_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT popen_win32.o -MD -MP -MF $(DEPDIR)/popen_win32.Tpo -c -o popen_win32.o `test -f 'os_win32/popen_win32.cpp' || echo '$(srcdir)/'`os_win32/popen_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/popen_win32.Tpo $(DEPDIR)/popen_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/popen_win32.cpp' object='popen_win32.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o popen_win32.o `test -f 'os_win32/popen_win32.cpp' || echo '$(srcdir)/'`os_win32/popen_win32.cpp
+
+popen_win32.obj: os_win32/popen_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT popen_win32.obj -MD -MP -MF $(DEPDIR)/popen_win32.Tpo -c -o popen_win32.obj `if test -f 'os_win32/popen_win32.cpp'; then $(CYGPATH_W) 'os_win32/popen_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/popen_win32.cpp'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/popen_win32.Tpo $(DEPDIR)/popen_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/popen_win32.cpp' object='popen_win32.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o popen_win32.obj `if test -f 'os_win32/popen_win32.cpp'; then $(CYGPATH_W) 'os_win32/popen_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/popen_win32.cpp'; fi`
+
+wmiquery.o: os_win32/wmiquery.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT wmiquery.o -MD -MP -MF $(DEPDIR)/wmiquery.Tpo -c -o wmiquery.o `test -f 'os_win32/wmiquery.cpp' || echo '$(srcdir)/'`os_win32/wmiquery.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/wmiquery.Tpo $(DEPDIR)/wmiquery.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/wmiquery.cpp' object='wmiquery.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o wmiquery.o `test -f 'os_win32/wmiquery.cpp' || echo '$(srcdir)/'`os_win32/wmiquery.cpp
+
+wmiquery.obj: os_win32/wmiquery.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT wmiquery.obj -MD -MP -MF $(DEPDIR)/wmiquery.Tpo -c -o wmiquery.obj `if test -f 'os_win32/wmiquery.cpp'; then $(CYGPATH_W) 'os_win32/wmiquery.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/wmiquery.cpp'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/wmiquery.Tpo $(DEPDIR)/wmiquery.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/wmiquery.cpp' object='wmiquery.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o wmiquery.obj `if test -f 'os_win32/wmiquery.cpp'; then $(CYGPATH_W) 'os_win32/wmiquery.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/wmiquery.cpp'; fi`
+
+daemon_win32.o: os_win32/daemon_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT daemon_win32.o -MD -MP -MF $(DEPDIR)/daemon_win32.Tpo -c -o daemon_win32.o `test -f 'os_win32/daemon_win32.cpp' || echo '$(srcdir)/'`os_win32/daemon_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/daemon_win32.Tpo $(DEPDIR)/daemon_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/daemon_win32.cpp' object='daemon_win32.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o daemon_win32.o `test -f 'os_win32/daemon_win32.cpp' || echo '$(srcdir)/'`os_win32/daemon_win32.cpp
+
+daemon_win32.obj: os_win32/daemon_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT daemon_win32.obj -MD -MP -MF $(DEPDIR)/daemon_win32.Tpo -c -o daemon_win32.obj `if test -f 'os_win32/daemon_win32.cpp'; then $(CYGPATH_W) 'os_win32/daemon_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/daemon_win32.cpp'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/daemon_win32.Tpo $(DEPDIR)/daemon_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/daemon_win32.cpp' object='daemon_win32.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o daemon_win32.obj `if test -f 'os_win32/daemon_win32.cpp'; then $(CYGPATH_W) 'os_win32/daemon_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/daemon_win32.cpp'; fi`
+
+syslog_win32.o: os_win32/syslog_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT syslog_win32.o -MD -MP -MF $(DEPDIR)/syslog_win32.Tpo -c -o syslog_win32.o `test -f 'os_win32/syslog_win32.cpp' || echo '$(srcdir)/'`os_win32/syslog_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/syslog_win32.Tpo $(DEPDIR)/syslog_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/syslog_win32.cpp' object='syslog_win32.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o syslog_win32.o `test -f 'os_win32/syslog_win32.cpp' || echo '$(srcdir)/'`os_win32/syslog_win32.cpp
+
+syslog_win32.obj: os_win32/syslog_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT syslog_win32.obj -MD -MP -MF $(DEPDIR)/syslog_win32.Tpo -c -o syslog_win32.obj `if test -f 'os_win32/syslog_win32.cpp'; then $(CYGPATH_W) 'os_win32/syslog_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/syslog_win32.cpp'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/syslog_win32.Tpo $(DEPDIR)/syslog_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/syslog_win32.cpp' object='syslog_win32.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o syslog_win32.obj `if test -f 'os_win32/syslog_win32.cpp'; then $(CYGPATH_W) 'os_win32/syslog_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/syslog_win32.cpp'; fi`
 
 .s.o:
-       $(CCASCOMPILE) -c $<
+       $(AM_V_CCAS)$(CCASCOMPILE) -c -o $@ $<
 
 .s.obj:
-       $(CCASCOMPILE) -c `$(CYGPATH_W) '$<'`
-uninstall-info-am:
-install-man5: $(man5_MANS) $(man_MANS)
+       $(AM_V_CCAS)$(CCASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+install-man5: $(man_MANS)
        @$(NORMAL_INSTALL)
-       test -z "$(man5dir)" || $(mkdir_p) "$(DESTDIR)$(man5dir)"
-       @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
-       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
-       for i in $$l2; do \
-         case "$$i" in \
-           *.5*) list="$$list $$i" ;; \
-         esac; \
+       @list1=''; \
+       list2='$(man_MANS)'; \
+       test -n "$(man5dir)" \
+         && test -n "`echo $$list1$$list2`" \
+         || exit 0; \
+       echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \
+       $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \
+       { for i in $$list1; do echo "$$i"; done;  \
+       if test -n "$$list2"; then \
+         for i in $$list2; do echo "$$i"; done \
+           | sed -n '/\.5[a-z]*$$/p'; \
+       fi; \
+       } | while read p; do \
+         if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; echo "$$p"; \
+       done | \
+       sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
+             -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+       sed 'N;N;s,\n, ,g' | { \
+       list=; while read file base inst; do \
+         if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+           echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
+           $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \
+         fi; \
        done; \
-       for i in $$list; do \
-         if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
-         else file=$$i; fi; \
-         ext=`echo $$i | sed -e 's/^.*\\.//'`; \
-         case "$$ext" in \
-           5*) ;; \
-           *) ext='5' ;; \
-         esac; \
-         inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
-         inst=`echo $$inst | sed -e 's/^.*\///'`; \
-         inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-         echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
-         $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \
-       done
+       for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+       while read files; do \
+         test -z "$$files" || { \
+           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \
+           $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \
+       done; }
+
 uninstall-man5:
        @$(NORMAL_UNINSTALL)
-       @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
-       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
-       for i in $$l2; do \
-         case "$$i" in \
-           *.5*) list="$$list $$i" ;; \
-         esac; \
-       done; \
-       for i in $$list; do \
-         ext=`echo $$i | sed -e 's/^.*\\.//'`; \
-         case "$$ext" in \
-           5*) ;; \
-           *) ext='5' ;; \
-         esac; \
-         inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
-         inst=`echo $$inst | sed -e 's/^.*\///'`; \
-         inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-         echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \
-         rm -f "$(DESTDIR)$(man5dir)/$$inst"; \
-       done
-install-man8: $(man8_MANS) $(man_MANS)
+       @list=''; test -n "$(man5dir)" || exit 0; \
+       files=`{ for i in $$list; do echo "$$i"; done; \
+       l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+         sed -n '/\.5[a-z]*$$/p'; \
+       } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
+             -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+       dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir)
+install-man8: $(man_MANS)
        @$(NORMAL_INSTALL)
-       test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
-       @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
-       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
-       for i in $$l2; do \
-         case "$$i" in \
-           *.8*) list="$$list $$i" ;; \
-         esac; \
+       @list1=''; \
+       list2='$(man_MANS)'; \
+       test -n "$(man8dir)" \
+         && test -n "`echo $$list1$$list2`" \
+         || exit 0; \
+       echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \
+       $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \
+       { for i in $$list1; do echo "$$i"; done;  \
+       if test -n "$$list2"; then \
+         for i in $$list2; do echo "$$i"; done \
+           | sed -n '/\.8[a-z]*$$/p'; \
+       fi; \
+       } | while read p; do \
+         if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; echo "$$p"; \
+       done | \
+       sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
+             -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+       sed 'N;N;s,\n, ,g' | { \
+       list=; while read file base inst; do \
+         if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+           echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
+           $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
+         fi; \
        done; \
-       for i in $$list; do \
-         if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
-         else file=$$i; fi; \
-         ext=`echo $$i | sed -e 's/^.*\\.//'`; \
-         case "$$ext" in \
-           8*) ;; \
-           *) ext='8' ;; \
-         esac; \
-         inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
-         inst=`echo $$inst | sed -e 's/^.*\///'`; \
-         inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-         echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
-         $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
-       done
+       for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+       while read files; do \
+         test -z "$$files" || { \
+           echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
+           $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
+       done; }
+
 uninstall-man8:
        @$(NORMAL_UNINSTALL)
-       @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
-       l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
-       for i in $$l2; do \
-         case "$$i" in \
-           *.8*) list="$$list $$i" ;; \
-         esac; \
-       done; \
-       for i in $$list; do \
-         ext=`echo $$i | sed -e 's/^.*\\.//'`; \
-         case "$$ext" in \
-           8*) ;; \
-           *) ext='8' ;; \
-         esac; \
-         inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
-         inst=`echo $$inst | sed -e 's/^.*\///'`; \
-         inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-         echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
-         rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
-       done
+       @list=''; test -n "$(man8dir)" || exit 0; \
+       files=`{ for i in $$list; do echo "$$i"; done; \
+       l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+         sed -n '/\.8[a-z]*$$/p'; \
+       } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
+             -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+       dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir)
 install-docsDATA: $(docs_DATA)
        @$(NORMAL_INSTALL)
-       test -z "$(docsdir)" || $(mkdir_p) "$(DESTDIR)$(docsdir)"
-       @list='$(docs_DATA)'; for p in $$list; do \
+       @list='$(docs_DATA)'; test -n "$(docsdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(docsdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(docsdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-         f=$(am__strip_dir) \
-         echo " $(docsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docsdir)/$$f'"; \
-         $(docsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docsdir)/$$f"; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docsdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(docsdir)" || exit $$?; \
        done
-install-sysconfDATA: $(sysconf_DATA)
+
+uninstall-docsDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(docs_DATA)'; test -n "$(docsdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(docsdir)'; $(am__uninstall_files_from_dir)
+install-drivedbDATA: $(drivedb_DATA)
        @$(NORMAL_INSTALL)
-       test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
-       @list='$(sysconf_DATA)'; for p in $$list; do \
+       @list='$(drivedb_DATA)'; test -n "$(drivedbdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(drivedbdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(drivedbdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-         f=$(am__strip_dir) \
-         echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
-         $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(drivedbdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(drivedbdir)" || exit $$?; \
        done
 
-uninstall-sysconfDATA:
+uninstall-drivedbDATA:
        @$(NORMAL_UNINSTALL)
-       @list='$(sysconf_DATA)'; for p in $$list; do \
-         f=$(am__strip_dir) \
-         echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \
-         rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \
+       @list='$(drivedb_DATA)'; test -n "$(drivedbdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(drivedbdir)'; $(am__uninstall_files_from_dir)
+install-examplesDATA: $(examples_DATA)
+       @$(NORMAL_INSTALL)
+       @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(examplesdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(examplesdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(examplesdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(examplesdir)" || exit $$?; \
        done
 
-# 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):
-       @set fnord $$MAKEFLAGS; amf=$$2; \
-       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) \
-          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
-       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:
-       @set fnord $$MAKEFLAGS; amf=$$2; \
-       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) \
-          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
-       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); \
+uninstall-examplesDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(examplesdir)'; $(am__uninstall_files_from_dir)
+install-systemdsystemunitDATA: $(systemdsystemunit_DATA)
+       @$(NORMAL_INSTALL)
+       @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(systemdsystemunitdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(systemdsystemunitdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(systemdsystemunitdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(systemdsystemunitdir)" || exit $$?; \
        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) config.h.in $(TAGS_DEPENDENCIES) \
-               $(TAGS_FILES) $(LISP)
-       tags=; \
+uninstall-systemdsystemunitDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(systemdsystemunitdir)'; $(am__uninstall_files_from_dir)
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
        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) config.h.in $(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 \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
          test -n "$$unique" || unique=$$empty_fix; \
-         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-           $$tags $$unique; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
        fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
-               $(TAGS_FILES) $(LISP)
-       tags=; \
-       here=`pwd`; \
-       list='$(SOURCES) $(HEADERS) config.h.in $(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: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-            $$tags $$unique
+            $$unique
 
 GTAGS:
        here=`$(am__cd) $(top_builddir) && pwd` \
-         && cd $(top_srcdir) \
-         && gtags -i $(GTAGS_ARGS) $$here
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscope: cscope.files
+       test ! -s cscope.files \
+         || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
+clean-cscope:
+       -rm -f cscope.files
+cscope.files: clean-cscope cscopelist
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
 
 distclean-tags:
        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+       -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
 
 distdir: $(DISTFILES)
        $(am__remove_distdir)
-       mkdir $(distdir)
-       $(mkdir_p) $(distdir)/os_darwin
-       @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; \
+       test -d "$(distdir)" || mkdir "$(distdir)"
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
          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 \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
            fi; \
-           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
          else \
-           test -f $(distdir)/$$file \
-           || cp -p $$d/$$file $(distdir)/$$file \
+           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
-       -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+       -test -n "$(am__skip_mode_fix)" \
+       || find "$(distdir)" -type d ! -perm -755 \
+               -exec chmod u+rwx,go+rx {} \; -o \
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
-         ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
-       || chmod -R a+r $(distdir)
+         ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+       || chmod -R a+r "$(distdir)"
 dist-gzip: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-       $(am__remove_distdir)
+       tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
+       $(am__post_remove_distdir)
 
 dist-bzip2: distdir
-       tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
-       $(am__remove_distdir)
+       tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
+       $(am__post_remove_distdir)
+
+dist-lzip: distdir
+       tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
+       $(am__post_remove_distdir)
+
+dist-xz: distdir
+       tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
+       $(am__post_remove_distdir)
 
 dist-tarZ: distdir
+       @echo WARNING: "Support for distribution archives compressed with" \
+                      "legacy program 'compress' is deprecated." >&2
+       @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
        tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
-       $(am__remove_distdir)
+       $(am__post_remove_distdir)
 
 dist-shar: distdir
-       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
-       $(am__remove_distdir)
+       @echo WARNING: "Support for shar distribution archives is" \
+                      "deprecated." >&2
+       @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+       shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
+       $(am__post_remove_distdir)
 
 dist-zip: distdir
        -rm -f $(distdir).zip
        zip -rq $(distdir).zip $(distdir)
-       $(am__remove_distdir)
+       $(am__post_remove_distdir)
 
-dist dist-all: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-       $(am__remove_distdir)
+dist dist-all:
+       $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
+       $(am__post_remove_distdir)
 
 # This target untars the dist file and tries a VPATH configuration.  Then
 # it guarantees that the distribution is self-contained by making another
@@ -953,25 +1646,33 @@ dist dist-all: distdir
 distcheck: dist
        case '$(DIST_ARCHIVES)' in \
        *.tar.gz*) \
-         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
        *.tar.bz2*) \
-         bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+         bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+       *.tar.lz*) \
+         lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
+       *.tar.xz*) \
+         xz -dc $(distdir).tar.xz | $(am__untar) ;;\
        *.tar.Z*) \
          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
        *.shar.gz*) \
-         GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
        *.zip*) \
          unzip $(distdir).zip ;;\
        esac
-       chmod -R a-w $(distdir); chmod a+w $(distdir)
-       mkdir $(distdir)/_build
-       mkdir $(distdir)/_inst
+       chmod -R a-w $(distdir)
+       chmod u+w $(distdir)
+       mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
        chmod a-w $(distdir)
+       test -d $(distdir)/_build || exit 0; \
        dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
-         && cd $(distdir)/_build \
-         && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+         && am__cwd=`pwd` \
+         && $(am__cd) $(distdir)/_build/sub \
+         && ../../configure \
+           $(AM_DISTCHECK_CONFIGURE_FLAGS) \
            $(DISTCHECK_CONFIGURE_FLAGS) \
+           --srcdir=../.. --prefix="$$dc_install_base" \
          && $(MAKE) $(AM_MAKEFLAGS) \
          && $(MAKE) $(AM_MAKEFLAGS) dvi \
          && $(MAKE) $(AM_MAKEFLAGS) check \
@@ -991,14 +1692,24 @@ distcheck: dist
          && rm -rf "$$dc_destdir" \
          && $(MAKE) $(AM_MAKEFLAGS) dist \
          && rm -rf $(DIST_ARCHIVES) \
-         && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
-       $(am__remove_distdir)
+         && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+         && cd "$$am__cwd" \
+         || exit 1
+       $(am__post_remove_distdir)
        @(echo "$(distdir) archives ready for distribution: "; \
          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
-         sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+         sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
 distuninstallcheck:
-       @cd $(distuninstallcheck_dir) \
-       && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+       @test -n '$(distuninstallcheck_dir)' || { \
+         echo 'ERROR: trying to run $@ with an empty' \
+              '$$(distuninstallcheck_dir)' >&2; \
+         exit 1; \
+       }; \
+       $(am__cd) '$(distuninstallcheck_dir)' || { \
+         echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
+         exit 1; \
+       }; \
+       test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
           || { echo "ERROR: files left after uninstall:" ; \
                if test -n "$(DESTDIR)"; then \
                  echo "  (check DESTDIR support)"; \
@@ -1015,27 +1726,33 @@ distcleancheck: distclean
               $(distcleancheck_listfiles) ; \
               exit 1; } >&2
 check-am: all-am
-check: check-recursive
-all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h
-installdirs: installdirs-recursive
-installdirs-am:
-       for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docsdir)" "$(DESTDIR)$(initddir)" "$(DESTDIR)$(sysconfdir)"; do \
-         test -z "$$dir" || $(mkdir_p) "$$dir"; \
+check: check-am
+@OS_SOLARIS_FALSE@all-local:
+all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) config.h \
+               all-local
+installdirs: installdirs-local
+       for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(smartdscriptdir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docsdir)" "$(DESTDIR)$(drivedbdir)" "$(DESTDIR)$(examplesdir)" "$(DESTDIR)$(initddir)" "$(DESTDIR)$(sysconfdir)" "$(DESTDIR)$(systemdsystemunitdir)"; 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: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
 
 install-am: all-am
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
-installcheck: installcheck-recursive
+installcheck: installcheck-am
 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
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
 mostlyclean-generic:
 
 clean-generic:
@@ -1043,93 +1760,133 @@ clean-generic:
 
 distclean-generic:
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
 
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
-clean: clean-recursive
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-am
 
 clean-am: clean-generic clean-sbinPROGRAMS mostlyclean-am
 
-distclean: distclean-recursive
+distclean: distclean-am
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
        -rm -rf ./$(DEPDIR)
        -rm -f Makefile
 distclean-am: clean-am distclean-compile distclean-generic \
        distclean-hdr distclean-tags
 
-dvi: dvi-recursive
+dvi: dvi-am
 
 dvi-am:
 
-html: html-recursive
+html: html-am
 
-info: info-recursive
+html-am:
+
+info: info-am
 
 info-am:
 
-install-data-am: install-docsDATA install-initdDATA install-man
+install-data-am: install-data-local install-docsDATA \
+       install-drivedbDATA install-examplesDATA \
+       install-examplesSCRIPTS install-initdDATA install-man \
+       install-smartdscriptSCRIPTS install-systemdsystemunitDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-sbinPROGRAMS install-sbinSCRIPTS \
+       install-sysconfDATA
+
+install-html: install-html-am
+
+install-html-am:
 
-install-exec-am: install-sbinPROGRAMS install-sysconfDATA
+install-info: install-info-am
 
-install-info: install-info-recursive
+install-info-am:
 
 @OS_SOLARIS_FALSE@install-man: install-man5 install-man8
 
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
 installcheck-am:
 
-maintainer-clean: maintainer-clean-recursive
+maintainer-clean: maintainer-clean-am
        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
        -rm -rf $(top_srcdir)/autom4te.cache
        -rm -rf ./$(DEPDIR)
        -rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
 
-mostlyclean: mostlyclean-recursive
+mostlyclean: mostlyclean-am
 
 mostlyclean-am: mostlyclean-compile mostlyclean-generic
 
-pdf: pdf-recursive
+pdf: pdf-am
 
 pdf-am:
 
-ps: ps-recursive
+ps: ps-am
 
 ps-am:
 
-uninstall-am: uninstall-docsDATA uninstall-info-am uninstall-initdDATA \
-       uninstall-man uninstall-sbinPROGRAMS uninstall-sysconfDATA
-
-uninstall-info: uninstall-info-recursive
+uninstall-am: uninstall-docsDATA uninstall-drivedbDATA \
+       uninstall-examplesDATA uninstall-examplesSCRIPTS \
+       uninstall-initdDATA uninstall-man uninstall-sbinPROGRAMS \
+       uninstall-sbinSCRIPTS uninstall-smartdscriptSCRIPTS \
+       uninstall-sysconfDATA uninstall-systemdsystemunitDATA
 
 @OS_SOLARIS_FALSE@uninstall-man: uninstall-man5 uninstall-man8
 
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
-       check-am clean clean-generic clean-recursive \
-       clean-sbinPROGRAMS ctags ctags-recursive dist dist-all \
-       dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip distcheck \
-       distclean distclean-compile distclean-generic distclean-hdr \
-       distclean-recursive distclean-tags distcleancheck distdir \
+.MAKE: all install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am all-local am--refresh check \
+       check-am clean clean-cscope clean-generic clean-sbinPROGRAMS \
+       cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
+       dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
+       distcheck distclean distclean-compile distclean-generic \
+       distclean-hdr distclean-tags distcleancheck distdir \
        distuninstallcheck dvi dvi-am html html-am info info-am \
        install install-am install-data install-data-am \
-       install-docsDATA install-exec install-exec-am install-info \
-       install-info-am install-initdDATA install-man install-man5 \
-       install-man8 install-sbinPROGRAMS install-strip \
-       install-sysconfDATA 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-docsDATA \
-       uninstall-info-am uninstall-initdDATA uninstall-man \
-       uninstall-man5 uninstall-man8 uninstall-sbinPROGRAMS \
-       uninstall-sysconfDATA
+       install-data-local install-docsDATA install-drivedbDATA \
+       install-dvi install-dvi-am install-examplesDATA \
+       install-examplesSCRIPTS install-exec install-exec-am \
+       install-html install-html-am install-info install-info-am \
+       install-initdDATA install-man install-man5 install-man8 \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-sbinPROGRAMS install-sbinSCRIPTS \
+       install-smartdscriptSCRIPTS install-strip install-sysconfDATA \
+       install-systemdsystemunitDATA installcheck installcheck-am \
+       installdirs installdirs-local maintainer-clean \
+       maintainer-clean-generic mostlyclean mostlyclean-compile \
+       mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
+       uninstall-am uninstall-docsDATA uninstall-drivedbDATA \
+       uninstall-examplesDATA uninstall-examplesSCRIPTS \
+       uninstall-initdDATA uninstall-man uninstall-man5 \
+       uninstall-man8 uninstall-sbinPROGRAMS uninstall-sbinSCRIPTS \
+       uninstall-smartdscriptSCRIPTS uninstall-sysconfDATA \
+       uninstall-systemdsystemunitDATA
+
+.PRECIOUS: Makefile
 
 
 @SET_MAKE@
+
+@OS_SOLARIS_TRUE@all-local: $(extra_MANS)
 @OS_SOLARIS_TRUE@install-man: $(extra_MANS)
 @OS_SOLARIS_TRUE@      @$(NORMAL_INSTALL)
-@OS_SOLARIS_TRUE@      $(mkinstalldirs) $(DESTDIR)$(mandir)/man4
-@OS_SOLARIS_TRUE@      $(mkinstalldirs) $(DESTDIR)$(mandir)/man1m
+@OS_SOLARIS_TRUE@      $(MKDIR_P) '$(DESTDIR)$(mandir)/man4'
+@OS_SOLARIS_TRUE@      $(MKDIR_P) '$(DESTDIR)$(mandir)/man1m'
 @OS_SOLARIS_TRUE@      for i in $(extra_MANS); do \
 @OS_SOLARIS_TRUE@        if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
 @OS_SOLARIS_TRUE@        else file=$$i; fi; \
@@ -1137,8 +1894,8 @@ uninstall-info: uninstall-info-recursive
 @OS_SOLARIS_TRUE@        inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
 @OS_SOLARIS_TRUE@        inst=`echo $$inst | sed -e 's/^.*\///'`; \
 @OS_SOLARIS_TRUE@        inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-@OS_SOLARIS_TRUE@        echo " $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$$ext/$$inst"; \
-@OS_SOLARIS_TRUE@        $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$$ext/$$inst; \
+@OS_SOLARIS_TRUE@        echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(mandir)/man$$ext/$$inst'"; \
+@OS_SOLARIS_TRUE@        $(INSTALL_DATA) "$$file" "$(DESTDIR)$(mandir)/man$$ext/$$inst"; \
 @OS_SOLARIS_TRUE@      done
 @OS_SOLARIS_TRUE@uninstall-man:
 @OS_SOLARIS_TRUE@      @$(NORMAL_UNINSTALL)
@@ -1149,107 +1906,172 @@ uninstall-info: uninstall-info-recursive
 @OS_SOLARIS_TRUE@        inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
 @OS_SOLARIS_TRUE@        inst=`echo $$inst | sed -e 's/^.*\///'`; \
 @OS_SOLARIS_TRUE@        inst=`echo $$inst | sed '$(transform)'`.$$ext; \
-@OS_SOLARIS_TRUE@        echo " rm -f $(DESTDIR)$(mandir)/man$$ext/$$inst"; \
-@OS_SOLARIS_TRUE@        rm -f $(DESTDIR)$(mandir)/man$$ext/$$inst; \
+@OS_SOLARIS_TRUE@        echo " rm -f '$(DESTDIR)$(mandir)/man$$ext/$$inst'"; \
+@OS_SOLARIS_TRUE@        rm -f "$(DESTDIR)$(mandir)/man$$ext/$$inst"; \
 @OS_SOLARIS_TRUE@      done
-@OS_SOLARIS_TRUE@%.1m: %.8
-@OS_SOLARIS_TRUE@      awk '/^.TH/ {$$3="1m"} {print}' < $< | \
-@OS_SOLARIS_TRUE@      sed -e 's/smartd\.conf\(.*\)(5)/smartd.conf\1(4)/g' \
-@OS_SOLARIS_TRUE@            -e 's/syslog\.conf\(.*\)(5)/syslog.conf\1(4)/g' \
-@OS_SOLARIS_TRUE@          -e 's/smartctl\(.*\)(8)/smartctl\1(1m)/g' \
-@OS_SOLARIS_TRUE@          -e 's/syslogd\(.*\)(8)/syslogd\1(1m)/g' \
-@OS_SOLARIS_TRUE@            -e 's|/var/log/messages|/var/adm/messages|g' \
-@OS_SOLARIS_TRUE@          -e 's/smartd\(.*\)(8)/smartd\1(1m)/g' > $@
-@OS_SOLARIS_TRUE@%.4: %.5
-@OS_SOLARIS_TRUE@      awk '/^.TH/ {$$3="4"}  {print}' < $< | \
-@OS_SOLARIS_TRUE@      sed -e 's/smartd\.conf\(.*\)(5)/smartd.conf\1(4)/g' \
-@OS_SOLARIS_TRUE@            -e 's/syslog\.conf\(.*\)(5)/syslog.conf\1(4)/g' \
-@OS_SOLARIS_TRUE@          -e 's/smartctl\(.*\)(8)/smartdctl\1(1m)/g' \
-@OS_SOLARIS_TRUE@          -e 's/syslogd\(.*\)(8)/syslogd\1(1m)/g' \
-@OS_SOLARIS_TRUE@            -e 's|/var/log/messages|/var/adm/messages|g' \
-@OS_SOLARIS_TRUE@          -e 's/smartd\(.*\)(8)/smartd\1(1m)/g' > $@
-
-@SMARTD_SUFFIX_TRUE@smartd.conf$(smartd_suffix): smartd.conf
-@SMARTD_SUFFIX_TRUE@   cp ${srcdir}/smartd.conf smartd.conf$(smartd_suffix)
-
-smartd.conf.5.in: smartd.8.in
-       sed '1,/STARTINCLUDE/ D;/ENDINCLUDE/,$$D' < $(srcdir)/smartd.8.in > $(top_builddir)/tmp.directives
-       sed '/STARTINCLUDE/,$$D'  < $(srcdir)/smartd.conf.5.in > $(top_builddir)/tmp.head
-       sed '1,/ENDINCLUDE/D'   < $(srcdir)/smartd.conf.5.in > $(top_builddir)/tmp.tail
-       cat $(top_builddir)/tmp.head > $(srcdir)/smartd.conf.5.in
-       echo '.\" STARTINCLUDE' >> $(srcdir)/smartd.conf.5.in
-       cat $(top_builddir)/tmp.directives >> $(srcdir)/smartd.conf.5.in
-       echo '.\" ENDINCLUDE'   >> $(srcdir)/smartd.conf.5.in
-       cat $(top_builddir)/tmp.tail >> $(srcdir)/smartd.conf.5.in
-       rm -f $(top_builddir)/tmp.head $(top_builddir)/tmp.tail $(top_builddir)/tmp.directives
-
-@OS_DARWIN_TRUE@SMART : os_darwin/SMART.in
-@OS_DARWIN_TRUE@       sed "s|/usr/sbin/|$(sbindir)/|" $< > $@
-
-@OS_DARWIN_TRUE@install-initdDATA-darwin: $(initd_DATA)
-@OS_DARWIN_TRUE@       $(mkinstalldirs) $(DESTDIR)$(initddir)
-@OS_DARWIN_TRUE@       $(mkinstalldirs) $(DESTDIR)$(initddir)/SMART
-@OS_DARWIN_TRUE@       $(mkinstalldirs) $(DESTDIR)$(initddir)/SMART/Resources
-@OS_DARWIN_TRUE@       $(INSTALL_SCRIPT) $(top_builddir)/SMART $(DESTDIR)$(initddir)/SMART
-@OS_DARWIN_TRUE@       $(INSTALL_DATA) $(srcdir)/os_darwin/StartupParameters.plist \
-@OS_DARWIN_TRUE@           $(DESTDIR)$(initddir)/SMART/StartupParameters.plist
-@OS_DARWIN_TRUE@       for i in English ; do \
-@OS_DARWIN_TRUE@         RDIR=$(DESTDIR)$(initddir)/SMART/Resources/$${i}.lproj ; \
-@OS_DARWIN_TRUE@         $(mkinstalldirs) $$RDIR ;\
-@OS_DARWIN_TRUE@         $(INSTALL_DATA) $(srcdir)/os_darwin/$${i}_Localizable.strings \
-@OS_DARWIN_TRUE@           $$RDIR/Localizable.strings ; \
-@OS_DARWIN_TRUE@       done
-@OS_DARWIN_TRUE@       @echo -e "\n\n####################################################################\n#"
-@OS_DARWIN_TRUE@       @echo -e "#                       PLEASE READ THIS BOX!\n#"
-@OS_DARWIN_TRUE@       @echo -e "#   To manually start the smartd daemon, run:\n#   ${initddir}/SMART/SMART start\n#"
-@OS_DARWIN_TRUE@       @echo -e "#   To automatically start smartd on bootup, add the line:\n#   SMARTd=-YES-\n#   to /etc/hostconfig\n#"
-@OS_DARWIN_TRUE@       @echo -e "#   smartd can now use a configuration file ${sysconfdir}/smartd.conf. Do:\n#   man smartd"
-@OS_DARWIN_TRUE@       @echo -e "#   to learn about it. A sample configuration file can be found in:\n#   ${docdir}\n#"
-@OS_DARWIN_TRUE@       @echo -e "####################################################################\n\n"
-
-@OS_DARWIN_FALSE@smartd.initd: $(srcdir)/smartd.initd.in Makefile
-@OS_DARWIN_FALSE@      sed "s|/usr/local/sbin/|$(sbindir)/|g" $(srcdir)/smartd.initd.in > $@
-
-@OS_DARWIN_FALSE@install-initdDATA-generic: $(initd_DATA)
-@OS_DARWIN_FALSE@      $(mkinstalldirs) $(DESTDIR)$(initddir)
-@OS_DARWIN_FALSE@      $(INSTALL_SCRIPT) $(top_builddir)/smartd.initd $(DESTDIR)$(initddir)/smartd$(smartd_suffix)
-@OS_DARWIN_FALSE@      @echo -e "\n\n####################################################################\n#"
-@OS_DARWIN_FALSE@      @echo -e "#                       PLEASE READ THIS BOX!\n#"
-@OS_DARWIN_FALSE@      @echo -e "#   To manually start the smartd daemon, run:\n#   ${initddir}/smartd start\n#"
-@OS_DARWIN_FALSE@      @echo -e "#   To automatically start smartd on bootup, run:\n#   /sbin/chkconfig --add smartd\n#"
-@OS_DARWIN_FALSE@      @echo -e "#   smartd can now use a configuration file ${sysconfdir}/smartd.conf. Do:\n#   man smartd"
-@OS_DARWIN_FALSE@      @echo -e "#   to learn about it. A sample configuration file can be found in:\n#   ${docdir}\n#"
-@OS_DARWIN_FALSE@      @echo -e "####################################################################\n\n"
+
+# If modified smartd.conf exists install smartd.conf.sample instead
+install-sysconfDATA: $(sysconf_DATA)
+       $(MKDIR_P) '$(DESTDIR)$(sysconfdir)'
+       @s="$(srcdir)/smartd.conf"; \
+       f="$(DESTDIR)$(sysconfdir)/smartd.conf$(smartd_suffix)"; \
+       if test -z "$(smartd_suffix)" && test -f "$$f"; then \
+         if cmp "$$s" "$$f" >/dev/null 2>/dev/null; then :; else \
+           echo "************************************************************"; \
+           echo "*** $$f preserved"; \
+           echo "*** installing smartd.conf.sample instead"; \
+           echo "************************************************************"; \
+           f="$$f".sample; \
+         fi; \
+       fi; \
+       echo " $(INSTALL_DATA) '$$s' '$$f'"; \
+       $(INSTALL_DATA) "$$s" "$$f"
+
+# If smartd.conf.sample exists preserve smartd.conf
+uninstall-sysconfDATA:
+       @f="$(DESTDIR)$(sysconfdir)/smartd.conf$(smartd_suffix)"; \
+       if test -z "$(smartd_suffix)" && test -f "$$f".sample; then \
+         echo "************************************************************"; \
+         echo "*** $$f preserved"; \
+         echo "*** removing smartd.conf.sample instead"; \
+         echo "************************************************************"; \
+         f="$$f".sample; \
+       fi; \
+       echo " rm -f '$$f'"; \
+       rm -f "$$f"
+
+smartctl.o utility.o: svnversion.h
+
+# Get version info from SVN
+@IS_SVN_BUILD_TRUE@svnversion.h: ChangeLog Makefile $(svn_deps)
+@IS_SVN_BUILD_TRUE@    @echo ' svn info | $$(VERSION_FROM_SVN_INFO) > $@'
+@IS_SVN_BUILD_TRUE@    @echo '/* svnversion.h.  Generated by Makefile from svn info.  */' > $@
+@IS_SVN_BUILD_TRUE@    @(cd $(srcdir) \
+@IS_SVN_BUILD_TRUE@     && svnversion 2>/dev/null | sed -n 's,^\([0-9].*\),REV  "\1",p' \
+@IS_SVN_BUILD_TRUE@     && TZ= LC_ALL=C svn info 2>/dev/null \
+@IS_SVN_BUILD_TRUE@     | sed -n 'h;s,^.* Date: *\([^ ]*\) .*$$,DATE "\1",p;g;s,^.* Date: *[^ ]* *\([^ ]*\) .*$$,TIME "\1",p') \
+@IS_SVN_BUILD_TRUE@    | sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
+
+# SVN not available, guess version info from Id strings
+@IS_SVN_BUILD_FALSE@svnversion.h: ChangeLog Makefile NEWS
+@IS_SVN_BUILD_FALSE@   @echo ' cat ChangeLog NEWS $$(SOURCES) | $$(VERSION_FROM_SVN_IDS) > $@'
+@IS_SVN_BUILD_FALSE@   @echo '/* svnversion.h.  Generated by Makefile from Id strings.  */' > $@
+@IS_SVN_BUILD_FALSE@   @(cd $(srcdir) && cat ChangeLog NEWS Makefile.am configure.ac smart*.in *.cpp *.h) \
+@IS_SVN_BUILD_FALSE@   | sed -n 's,^.*\$$[I][d]: [^ ]* \([0-9][0-9]* [0-9][-0-9]* [0-9][:0-9]*\)[^:0-9][^$$]*\$$.*$$,\1,p' \
+@IS_SVN_BUILD_FALSE@   | sort -n -r \
+@IS_SVN_BUILD_FALSE@   | sed -n 'h;s,^\([^ ]*\) .*$$,REV  "\1",p;g;s,^[^ ]* \([^ ]*\) .*$$,DATE "\1",p;g;s,^[^ ]* [^ ]* \([^ ]*\)$$,TIME "\1",p;q' \
+@IS_SVN_BUILD_FALSE@   | sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
+
+update-smart-drivedb: update-smart-drivedb.in config.status
+       $(SHELL) ./config.status --file=$@
+       chmod +x $@
+
+smartd_warning.sh: smartd_warning.sh.in config.status
+       $(SHELL) ./config.status --file=$@
+       chmod +x $@
+
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@com.smartmontools.smartd.plist : os_darwin/com.smartmontools.smartd.plist.in
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@      sed "s|/usr/sbin/|$(sbindir)/|" $< > $@
+
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@install-initdDATA-darwin: $(initd_DATA)
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@      $(MKDIR_P) '$(DESTDIR)$(initddir)'
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@      $(INSTALL_DATA) $(top_builddir)/$(initd_DATA) $(DESTDIR)$(initddir)/$(initd_DATA)
+
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@uninstall-initdDATA-darwin:
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_TRUE@      rm -f $(DESTDIR)$(initddir)/$(initd_DATA)
+
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@$(initdfile): $(srcdir)/$(initdfile).in Makefile
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@     sed 's|/usr/local/sbin/|$(sbindir)/|g' $(srcdir)/$(initdfile).in > $@
+
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@install-initdDATA-generic: $(initd_DATA)
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@     $(MKDIR_P) '$(DESTDIR)$(initddir)'
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@     $(INSTALL_SCRIPT) '$(top_builddir)/$(initdfile)' '$(DESTDIR)$(initddir)/smartd$(smartd_suffix)'
+
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@uninstall-initdDATA-generic:
+@INSTALL_INITSCRIPT_TRUE@@OS_DARWIN_FALSE@     rm -f '$(DESTDIR)$(initddir)/$(initd_install_name)'
+
+@INSTALL_INITSCRIPT_FALSE@install-initdDATA-null:
+@INSTALL_INITSCRIPT_FALSE@uninstall-initdDATA-null:
 
 install-initdDATA : $(initd_DATA_install)
 
-uninstall-initdDATA:
-       rm -rf $(DESTDIR)$(initddir)/$(initd_install_name)
+uninstall-initdDATA: $(initd_DATA_uninstall)
 
-uninstall-docsDATA:
-       rm -rf $(DESTDIR)$(docsdir)
+smartd.service: smartd.service.in Makefile
+       @echo ' $$(SMARTD_SERVICE_FILTER) < $(srcdir)/smartd.service.in > $@'
+       @{ \
+       sed 's|/usr/local/sbin/smartd|$(sbindir)/smartd|' | \
+       if test -n '$(systemdenvfile)'; then \
+         sed 's|/usr/local/etc/sysconfig/smartmontools|$(systemdenvfile)|'; \
+       else \
+         sed -e '/^EnvironmentFile=/d' -e 's| *\$$smartd[_a-z]* *||g'; \
+       fi; } < $(srcdir)/smartd.service.in > $@
+
+# Create empty directories if configured.
+# Default install rules no longer create empty directories since automake 1.11.
+installdirs-local:
+       @for d in '$(smartdplugindir)' '$(savestatesdir)' '$(attributelogdir)'; do \
+         test -n "$$d" || continue; \
+         echo " $(MKDIR_P) '$(DESTDIR)$$d'"; \
+         $(MKDIR_P) "$(DESTDIR)$$d" || exit 1; \
+       done
+
+install-data-local: installdirs-local
+
+# Implicit rule 'smart%: smart%.in ...' does not work with BSD make
+smartctl.8: smartctl.8.in Makefile svnversion.h
+       @echo ' $$(MAN_FILTER) < $(srcdir)/smartctl.8.in > $@'
+       @$(MAN_FILTER) < $(srcdir)/smartctl.8.in > $@
+
+smartd.8: smartd.8.in Makefile svnversion.h
+       @echo ' $$(MAN_FILTER) < $(srcdir)/smartd.8.in > $@'
+       @$(MAN_FILTER) < $(srcdir)/smartd.8.in > $@
+
+smartd.conf.5: smartd.conf.5.in Makefile svnversion.h
+       @echo ' $$(MAN_FILTER) < $(srcdir)/smartd.conf.5.in > $@'
+       @$(MAN_FILTER) < $(srcdir)/smartd.conf.5.in > $@
+
+update-smart-drivedb.8: update-smart-drivedb.8.in Makefile svnversion.h
+       @echo ' $$(MAN_FILTER) < $(srcdir)/update-smart-drivedb.8.in > $@'
+       @$(MAN_FILTER) < $(srcdir)/update-smart-drivedb.8.in > $@
+
+smartctl.1m: smartctl.8
+       @echo ' $$(SOLARIS_MAN_FILTER) < smartctl.8 > $@'
+       @$(SOLARIS_MAN_FILTER) < smartctl.8 > $@
 
-smart%: $(srcdir)/smart%.in Makefile
-       sed "s|CURRENT_CVS_VERSION|$(releaseversion)|g" $< | \
-       sed "s|CURRENT_CVS_DATE|$(smartmontools_release_date)|g" | \
-       sed "s|CURRENT_CVS_TIME|$(smartmontools_release_time)|g" | \
-       sed "s|/usr/local/share/man/|$(mandir)/|g" | \
-       sed "s|/usr/local/sbin/|$(sbindir)/|g" | \
-       sed "s|/usr/local/etc/rc\\.d/init.d/|$(initddir)/|g" | \
-       sed "s|/usr/local/share/doc/smartmontools-5.1/|$(docsdir)/|g" | \
-       sed "s|/usr/local/etc/smartd\\.conf|$(sysconfdir)/smartd.conf|g" > $@
+smartd.1m: smartd.8
+       @echo ' $$(SOLARIS_MAN_FILTER) < smartd.8 > $@'
+       @$(SOLARIS_MAN_FILTER) < smartd.8 > $@
 
-# Convert man pages into .html and .txt
+smartd.conf.4: smartd.conf.5
+       @echo ' $$(SOLARIS_MAN_FILTER) < smartd.conf.5 > $@'
+       @$(SOLARIS_MAN_FILTER) < smartd.conf.5 > $@
 
-htmlman: smartctl.8.html smartd.8.html smartd.conf.5.html
+update-smart-drivedb.1m: update-smart-drivedb.8
+       @echo ' $$(SOLARIS_MAN_FILTER) < update-smart-drivedb.8 > $@'
+       @$(SOLARIS_MAN_FILTER) < update-smart-drivedb.8 > $@
 
-txtman:  smartctl.8.txt smartd.8.txt smartd.conf.5.txt
+htmlman: smartctl.8.html smartd.8.html smartd.conf.5.html update-smart-drivedb.8.html
+
+pdfman:  smartctl.8.pdf smartd.8.pdf smartd.conf.5.pdf update-smart-drivedb.8.pdf
+
+txtman:  smartctl.8.txt smartd.8.txt smartd.conf.5.txt update-smart-drivedb.8.txt
 
 %.5.html: %.5
-       $(MAN2HTML) $< | $(FIXHTML) > $@
+       $(MAN2HTML) $< > $@.tmp
+       @echo ' $$(FIXHTML) < $@.tmp > $@'
+       @$(FIXHTML) < $@.tmp > $@
 
 %.8.html: %.8
-       $(MAN2HTML) $< | $(FIXHTML) > $@
+       $(MAN2HTML) $< > $@.tmp
+       @echo ' $$(FIXHTML) < $@.tmp > $@'
+       @$(FIXHTML) < $@.tmp > $@
+
+%.5.pdf: %.5
+       $(MAN2PDF) $< > $@
+
+%.8.pdf: %.8
+       $(MAN2PDF) $< > $@
 
 %.5.txt: %.5
        $(MAN2TXT) $< > $@
@@ -1257,39 +2079,136 @@ txtman:  smartctl.8.txt smartd.8.txt smartd.conf.5.txt
 %.8.txt: %.8
        $(MAN2TXT) $< > $@
 
+# Check drive database syntax
+check:
+       @if ./smartctl -B $(srcdir)/drivedb.h -P showall >/dev/null; then \
+         echo "$(srcdir)/drivedb.h: OK"; \
+       else \
+         echo "$(srcdir)/drivedb.h: Syntax check failed"; exit 1; \
+       fi
+
+# Windows resources
+
+@OS_WIN32_MINGW_TRUE@smartctl_res.o: smartctl_res.rc $(os_win32_manifest)
+@OS_WIN32_MINGW_TRUE@  $(WINDRES) $< $@
+
+@OS_WIN32_MINGW_TRUE@smartd_res.o: smartd_res.rc syslogevt.rc $(os_win32_manifest)
+@OS_WIN32_MINGW_TRUE@  $(WINDRES) $< $@
+
+@OS_WIN32_MINGW_TRUE@runcmda_res.o: runcmda_res.rc defadmin.manifest
+@OS_WIN32_MINGW_TRUE@  $(WINDRES) $< $@
+
+@OS_WIN32_MINGW_TRUE@runcmdu_res.o: runcmdu_res.rc $(os_win32_manifest)
+@OS_WIN32_MINGW_TRUE@  $(WINDRES) $< $@
+
+@OS_WIN32_MINGW_TRUE@wtssendmsg_res.o: wtssendmsg_res.rc $(os_win32_manifest)
+@OS_WIN32_MINGW_TRUE@  $(WINDRES) $< $@
+
+@OS_WIN32_MINGW_TRUE@smartctl_res.rc: os_win32/versioninfo.rc.in Makefile svnversion.h
+@OS_WIN32_MINGW_TRUE@  @n=smartctl d="Control and Monitor Utility for SMART Disks"; $(WIN_MAKE_RES)
+@OS_WIN32_MINGW_TRUE@  @$(WIN_APP_MANIFEST)
+
+@OS_WIN32_MINGW_TRUE@smartd_res.rc: os_win32/versioninfo.rc.in Makefile svnversion.h
+@OS_WIN32_MINGW_TRUE@  @n=smartd d="SMART Disk Monitoring Daemon"; $(WIN_MAKE_RES)
+@OS_WIN32_MINGW_TRUE@  echo '#include "./syslogevt.rc"' >> $@
+@OS_WIN32_MINGW_TRUE@  @$(WIN_APP_MANIFEST)
+
+@OS_WIN32_MINGW_TRUE@runcmdu_res.rc: os_win32/versioninfo.rc.in Makefile svnversion.h
+@OS_WIN32_MINGW_TRUE@  @n=runcmdu d="Run console command"; $(WIN_MAKE_RES)
+@OS_WIN32_MINGW_TRUE@  @$(WIN_APP_MANIFEST)
+
+@OS_WIN32_MINGW_TRUE@runcmda_res.rc: os_win32/versioninfo.rc.in Makefile svnversion.h
+@OS_WIN32_MINGW_TRUE@  @n=runcmda d="Run console command as admin"; $(WIN_MAKE_RES)
+@OS_WIN32_MINGW_TRUE@  echo '1 24 "./defadmin.manifest"' >> $@
+
+@OS_WIN32_MINGW_TRUE@wtssendmsg_res.rc: os_win32/versioninfo.rc.in Makefile svnversion.h
+@OS_WIN32_MINGW_TRUE@  @n=wtssendmsg d="Send console messages"; $(WIN_MAKE_RES)
+@OS_WIN32_MINGW_TRUE@  @$(WIN_APP_MANIFEST)
+
+@OS_WIN32_MINGW_TRUE@syslogevt.rc: os_win32/syslogevt.mc
+@OS_WIN32_MINGW_TRUE@  $(WINDMC) -b $<
+
+@OS_WIN32_MINGW_TRUE@defadmin.manifest: os_win32/default.manifest
+@OS_WIN32_MINGW_TRUE@  sed 's,"asInvoker","requireAdministrator",' $< > $@
+
 # Build Windows distribution
 
 @OS_WIN32_MINGW_TRUE@dist-win32: $(distzip_win32)
 
-@OS_WIN32_MINGW_TRUE@distdir-win32: distdir.mkdir $(FILES_WIN32) syslogevt.check
+@OS_WIN32_MINGW_TRUE@install-win32: $(distinst_win32)
+@OS_WIN32_MINGW_TRUE@  ./$(distinst_win32)
 
-@OS_WIN32_MINGW_TRUE@$(distzip_win32): distdir.mkdir $(FILES_WIN32) syslogevt.check
+@OS_WIN32_MINGW_TRUE@installer-win32: $(distinst_win32)
+
+@OS_WIN32_MINGW_TRUE@distdir-win32: distdir.mkdir $(FILES_WIN32)
+
+@OS_WIN32_MINGW_TRUE@$(distzip_win32): distdir.mkdir $(FILES_WIN32)
 @OS_WIN32_MINGW_TRUE@  @rm -fv $(distzip_win32)
-@OS_WIN32_MINGW_TRUE@  cd $(distdir_win32) && zip -9Dr ../$(distzip_win32) .
+@OS_WIN32_MINGW_TRUE@  cd $(distdir_win32) && zip -9 ../$(distzip_win32) bin/* doc/*
+@OS_WIN32_MINGW_TRUE@  md5sum $@ > $@.md5
+@OS_WIN32_MINGW_TRUE@  sha1sum $@ > $@.sha1
+@OS_WIN32_MINGW_TRUE@  sha256sum $@ > $@.sha256
+
+# Build NSIS installer
+# Note: Only option character '-' is also compatible with Linux version of makensis
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@$(distinst_win32): os_win32/installer.nsi smartctl_res.rc distdir.mkdir $(FILES_WIN32)
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      test -z '$(builddir_win64)' || ( cd $(builddir_win64) && make distdir-win32 )
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      @date=`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h` && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      rev=`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h` && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      version=`sed -n 's|^ *VALUE "FileVersion", "\([0-9.]*\)".*$$|\1|p' smartctl_res.rc` && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      yy=`echo "$$date" | sed -n 's,^20\([0-9][0-9]\).*$$,\1,p'`; yy="$${yy:-XX}" && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      verstr="$(PACKAGE_VERSION) $$date $$rev "$(BUILD_INFO) && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      d64= && if [ -n '$(builddir_win64)' ]; then d64='-DINPDIR64=$(builddir_win64)/$(PACKAGE)-$(VERSION).win64'; fi && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      echo "'$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) $$d64 -DOUTFILE=$@ -DVERSION=$$version -DYY=$$yy -DVERSTR='$$verstr' $<" && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      '$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) $$d64 -DOUTFILE=$@ -DVERSION=$$version -DYY=$$yy -DVERSTR="$$verstr" $<
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      md5sum $@ > $@.md5
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      sha1sum $@ > $@.sha1
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      sha256sum $@ > $@.sha256
+
+# Build drivedb.h update tool
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@update-smart-drivedb.exe: os_win32/update-smart-drivedb.nsi
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      "$(MAKENSIS)" -V2 -NOCD -DBRANCH=$(DRIVEDB_BRANCH) $<
+
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_FALSE@$(distinst_win32):
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_FALSE@     @echo "makensis: command not found. Please install NSIS from http://nsis.sourceforge.net/" 1>&2
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_FALSE@     @exit 1
 
 @OS_WIN32_MINGW_TRUE@cleandist-win32:
-@OS_WIN32_MINGW_TRUE@  rm -rf $(distdir_win32) distdir.mkdir syslogevt.check
+@OS_WIN32_MINGW_TRUE@  rm -rf $(distdir_win32) distdir.mkdir
 
 @OS_WIN32_MINGW_TRUE@distdir.mkdir:
 @OS_WIN32_MINGW_TRUE@  @test -d $(exedir_win32) || mkdir -pv $(exedir_win32)
 @OS_WIN32_MINGW_TRUE@  @test -d $(docdir_win32) || mkdir -pv $(docdir_win32)
 @OS_WIN32_MINGW_TRUE@  touch $@
 
-@OS_WIN32_MINGW_TRUE@syslogevt.check:
-@OS_WIN32_MINGW_TRUE@  @if [ -f $(srcdir)/os_win32/syslogevt.exe ]; then \
-@OS_WIN32_MINGW_TRUE@    cp -pv $(srcdir)/os_win32/syslogevt.exe $(exedir_win32)/syslogevt.exe; \
-@OS_WIN32_MINGW_TRUE@   else echo "Warning: $(srcdir)/os_win32/syslogevt.exe missing."; fi
-@OS_WIN32_MINGW_TRUE@  touch $@
-
 @OS_WIN32_MINGW_TRUE@$(exedir_win32)/%.exe: %.exe
 @OS_WIN32_MINGW_TRUE@  cp -p $< $@
-@OS_WIN32_MINGW_TRUE@  strip -s $@
+@OS_WIN32_MINGW_TRUE@  if test -n '$(STRIP)'; then $(STRIP) -s $@; else strip -s $@; fi
 @OS_WIN32_MINGW_TRUE@  touch -r $< $@
 
-@OS_WIN32_MINGW_TRUE@$(docdir_win32)/%: %
+# strip would break NSIS integrity check
+@OS_WIN32_MINGW_TRUE@$(exedir_win32)/update-smart-drivedb.exe: update-smart-drivedb.exe
+@OS_WIN32_MINGW_TRUE@  cp -p $< $@
+
+@OS_WIN32_MINGW_TRUE@$(exedir_win32)/%.h: $(srcdir)/%.h
 @OS_WIN32_MINGW_TRUE@  $(UNIX2DOS) < $< > $@
 @OS_WIN32_MINGW_TRUE@  touch -r $< $@
 
+@OS_WIN32_MINGW_TRUE@$(exedir_win32)/%.cmd: $(srcdir)/os_win32/%.cmd
+@OS_WIN32_MINGW_TRUE@  $(UNIX2DOS) < $< > $@
+@OS_WIN32_MINGW_TRUE@  touch -r $< $@
+
+@OS_WIN32_MINGW_TRUE@$(exedir_win32)/%.ps1: $(srcdir)/os_win32/%.ps1
+@OS_WIN32_MINGW_TRUE@  $(UNIX2DOS) < $< > $@
+@OS_WIN32_MINGW_TRUE@  touch -r $< $@
+
+@OS_WIN32_MINGW_TRUE@$(docdir_win32)/%.html: %.html
+@OS_WIN32_MINGW_TRUE@  $(UNIX2DOS) < $< > $@
+@OS_WIN32_MINGW_TRUE@  touch -r $< $@
+
+@OS_WIN32_MINGW_TRUE@$(docdir_win32)/%.pdf: %.pdf
+@OS_WIN32_MINGW_TRUE@  cp -p $< $@
+
 @OS_WIN32_MINGW_TRUE@$(docdir_win32)/%.txt: $(srcdir)/%
 @OS_WIN32_MINGW_TRUE@  $(UNIX2DOS) < $< > $@
 @OS_WIN32_MINGW_TRUE@  touch -r $< $@
@@ -1298,14 +2217,104 @@ txtman:  smartctl.8.txt smartd.8.txt smartd.conf.5.txt
 @OS_WIN32_MINGW_TRUE@  $(UNIX2DOS) < $< > $@
 @OS_WIN32_MINGW_TRUE@  touch -r $< $@
 
-# Build config_vc6.h for MSVC 6 from MinGW config.h
-
-@OS_WIN32_MINGW_TRUE@config-vc6: $(srcdir)/os_win32/config_vc6.h
+@OS_WIN32_MINGW_TRUE@$(docdir_win32)/checksums$(win_bits).txt: $(EXEFILES_WIN32)
+@OS_WIN32_MINGW_TRUE@  (cd $(exedir_win32) && md5sum *.exe && sha1sum *.exe && sha256sum *.exe) \
+@OS_WIN32_MINGW_TRUE@  | $(UNIX2DOS) > $@
+
+# Build non-console version of smartctl for GSmartControl.
+# The script below changes the word at offset 220 (Subsystem) from 3
+# (Console) to 2 (GUI) in a copy of smartctl.exe.
+# This will be changed when a tool (like 'editbin') is available in
+# the Cygwin distribution
+@OS_WIN32_MINGW_TRUE@smartctl-nc.exe: smartctl.exe
+@OS_WIN32_MINGW_TRUE@  @rm -f $@
+@OS_WIN32_MINGW_TRUE@  cp -p smartctl.exe $@.tmp
+@OS_WIN32_MINGW_TRUE@  @if test `od -A n -j 220 -N 2 -d $@.tmp` -eq 3; then :; \
+@OS_WIN32_MINGW_TRUE@    else echo "invalid EXE header"; exit 1; fi
+@OS_WIN32_MINGW_TRUE@  @echo "editbin /subsystem:windows $@.tmp"
+@OS_WIN32_MINGW_TRUE@  @echo -ne '\002' | dd bs=1 seek=220 count=1 conv=notrunc of=$@.tmp 2>/dev/null
+@OS_WIN32_MINGW_TRUE@  @if test `od -A n -j 220 -N 2 -d $@.tmp` -eq 2; then :; \
+@OS_WIN32_MINGW_TRUE@    else echo "EXE patch failed"; exit 1; fi
+@OS_WIN32_MINGW_TRUE@  mv -f $@.tmp $@
+
+# Build runcmd?.exe and wtssendmsg.exe
+@OS_WIN32_MINGW_TRUE@runcmd.o: os_win32/runcmd.c
+@OS_WIN32_MINGW_TRUE@  $(CC) -c -Os $<
+
+@OS_WIN32_MINGW_TRUE@runcmdu.exe: runcmd.o runcmdu_res.o
+@OS_WIN32_MINGW_TRUE@  $(CC) -o $@ $^
+
+@OS_WIN32_MINGW_TRUE@runcmda.exe: runcmd.o runcmda_res.o
+@OS_WIN32_MINGW_TRUE@  $(CC) -o $@ $^
+
+@OS_WIN32_MINGW_TRUE@wtssendmsg.exe: os_win32/wtssendmsg.c wtssendmsg_res.o
+@OS_WIN32_MINGW_TRUE@  $(CC) -Os -o $@ $^ -lwtsapi32
+
+@OS_WIN32_MINGW_TRUE@config-vc$(vcver): $(CONFIG_VC_FILES)
+
+@OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/vc$(vcver)/config.h: config.h Makefile
+@OS_WIN32_MINGW_TRUE@  sed -e '1i/* os_win32/vc$(vcver)/config.h.  Generated from config.h by Makefile.  */' \
+@OS_WIN32_MINGW_TRUE@      -e 's,^#define HAVE_\(ATTR_PACKED\|GETTIMEOFDAY\|[DK_]*NTDDDISK_H\|LONG_DOUBLE_WIDER\|STRINGS_H\|UNISTD_H\) 1$$,/* #undef HAVE_\1 */ /* VC$(vcver) */,' \
+@OS_WIN32_MINGW_TRUE@      -e 's,^\(#define SMARTMONTOOLS_BUILD_HOST "[^-]*\)[^"]*,\1-pc-w32vc$(vcver),' $< > $@
+
+@OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/vc$(vcver)/svnversion.h: svnversion.h
+@OS_WIN32_MINGW_TRUE@  cp $< $@
+
+@OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/vc$(vcver)/smartctl_res.rc: smartctl_res.rc
+@OS_WIN32_MINGW_TRUE@  sed '/^1 24 /d' $< > $@
+
+@OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/vc$(vcver)/smartd_res.rc: smartd_res.rc
+@OS_WIN32_MINGW_TRUE@  sed '/^1 24 /d' $< > $@
+
+@OS_WIN32_MINGW_TRUE@clean-vc$(vcver):
+@OS_WIN32_MINGW_TRUE@  rm -f $(srcdir)/os_win32/vc$(vcver)/smartmontools.VC.VC.opendb
+@OS_WIN32_MINGW_TRUE@  rm -f $(srcdir)/os_win32/vc$(vcver)/smartmontools.VC.db
+@OS_WIN32_MINGW_TRUE@  rm -f $(srcdir)/os_win32/vc$(vcver)/syslogevt.h
+@OS_WIN32_MINGW_TRUE@  rm -rf $(srcdir)/os_win32/vc$(vcver)/Debug
+@OS_WIN32_MINGW_TRUE@  rm -rf $(srcdir)/os_win32/vc$(vcver)/Release
+@OS_WIN32_MINGW_TRUE@  rm -rf $(srcdir)/os_win32/vc$(vcver)/x64
+
+@OS_WIN32_MINGW_TRUE@distclean-vc$(vcver): clean-vc$(vcver)
+@OS_WIN32_MINGW_TRUE@  rm -f $(CONFIG_VC_FILES)
+
+@OS_WIN32_MINGW_TRUE@maintainer-clean-vc$(vcver): distclean-vc$(vcver)
+@OS_WIN32_MINGW_TRUE@  rm -rf $(srcdir)/os_win32/vc$(vcver)/.vs
+
+# build darwin installer 
+@OS_DARWIN_TRUE@$(pkg_darwin):
+@OS_DARWIN_TRUE@       ${MAKE} install DESTDIR=$(distdir_darwin)/root
+@OS_DARWIN_TRUE@       @cp $(srcdir)/os_darwin/pkg/root/usr/local/sbin/smart-pkg-uninstall $(distdir_darwin)/root$(sbindir)
+@OS_DARWIN_TRUE@       @mkdir -p $(distdir_darwin)/pkg
+@OS_DARWIN_TRUE@       @( cd $(distdir_darwin)/root && find . | cpio -o --format odc --owner 0:80 | gzip -c ) > $(distdir_darwin)/pkg/Payload
+@OS_DARWIN_TRUE@       PAYLOAD_FILES=`find $(distdir_darwin)/root | wc -l` &&\
+@OS_DARWIN_TRUE@       PAYLOAD_SIZEKB=`du -BK  -s $(distdir_darwin)/root|${AWK} '{print $$1}'|tr -d 'K'` &&\
+@OS_DARWIN_TRUE@       sed -e "s|@version@|$(VERSION)|" -e "s|@files@|$${PAYLOAD_FILES}|" \
+@OS_DARWIN_TRUE@               -e "s|@size@|$${PAYLOAD_SIZEKB}|" $(srcdir)/os_darwin/pkg/PackageInfo.in \
+@OS_DARWIN_TRUE@               > $(distdir_darwin)/pkg/PackageInfo &&\
+@OS_DARWIN_TRUE@       sed -e "s|@version@|$(VERSION)|" -e "s|@files@|$${PAYLOAD_FILES}|" -e "s|@size@|$${PAYLOAD_SIZEKB}|" \
+@OS_DARWIN_TRUE@               -e "s|@pkgname@|$(pkg_darwin)|" \
+@OS_DARWIN_TRUE@               $(srcdir)/os_darwin/pkg/Distribution.in > $(distdir_darwin)/pkg/Distribution
+@OS_DARWIN_TRUE@       @mkdir -p $(distdir_darwin)/pkg/Resources/English.lproj
+@OS_DARWIN_TRUE@       @cp $(srcdir)/COPYING $(distdir_darwin)/pkg/Resources/English.lproj/license.txt
+@OS_DARWIN_TRUE@       @mkbom -u 0 -g 80 $(distdir_darwin)/root $(distdir_darwin)/pkg/Bom
+@OS_DARWIN_TRUE@       @mkdir -p $(distdir_darwin)/dmg
+@OS_DARWIN_TRUE@       @( cd $(distdir_darwin)/pkg && xar --compression none -cf "../dmg/$(pkg_darwin)" * )
+
+# build darwon dmg image
+@OS_DARWIN_TRUE@$(dmg_darwin):
+@OS_DARWIN_TRUE@       @cp $(srcdir)/os_darwin/pkg/installer/README.html $(distdir_darwin)/dmg
+@OS_DARWIN_TRUE@       @mkisofs -V 'smartmontools' -no-pad -r -apple -o $(distdir_darwin)/smartmontools-$(VERSION).iso \
+@OS_DARWIN_TRUE@               -hfs-bless "$(distdir_darwin)/dmg/" "$(distdir_darwin)/dmg/"
+@OS_DARWIN_TRUE@       @dmg dmg $(distdir_darwin)/smartmontools-$(VERSION).iso $(dmg_darwin)
+@OS_DARWIN_TRUE@       md5sum $@ > $@.md5
+@OS_DARWIN_TRUE@       sha1sum $@ > $@.sha1
+@OS_DARWIN_TRUE@       sha256sum $@ > $@.sha256
+
+@OS_DARWIN_TRUE@install-darwin: install-darwin-cleanup $(pkg_darwin) $(dmg_darwin)
+
+@OS_DARWIN_TRUE@install-darwin-cleanup: 
+@OS_DARWIN_TRUE@       @rm -rf $(distdir_darwin)
 
-@OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/config_vc6.h: config.h
-@OS_WIN32_MINGW_TRUE@  sed '1i/* config_vc6.h.  Generated by Makefile.  */' $< | \
-@OS_WIN32_MINGW_TRUE@  sed 's,^#define HAVE_\(ATTR_PACKED\|INTTYPES_H\|STDINT_H\|STRTOULL\|U*INT64_T\|UNISTD_H\) 1$$,/* #undef HAVE_\1 */,' | \
-@OS_WIN32_MINGW_TRUE@  sed 's,i.86-pc-mingw32,i686-pc-win32vc6,' > $@
 # 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: