1 ## Process this file with automake to produce Makefile.in
3 # $Id: Makefile.am 3296 2011-03-16 22:17:51Z chrfranke $
8 # Make sure .cpp takes precedence to avoid compiling old .c file
9 SUFFIXES = .cpp .c .s .o
11 # BUILD_INFO can be provided by package maintainers (see INSTALL file)
12 BUILD_INFO= "(local build)"
14 AM_CPPFLAGS = -DBUILD_INFO='$(BUILD_INFO)' -DSMARTMONTOOLS_SYSCONFDIR='"$(sysconfdir)"'
16 AM_CPPFLAGS += -DSMARTMONTOOLS_DRIVEDBDIR='"$(drivedbdir)"'
19 AM_CPPFLAGS += -DSMARTMONTOOLS_SAVESTATES='"$(savestates)"'
21 if ENABLE_ATTRIBUTELOG
22 AM_CPPFLAGS += -DSMARTMONTOOLS_ATTRIBUTELOG='"$(attributelog)"'
26 AM_CPPFLAGS += -I$(srcdir)/getopt -DHAVE_GETOPT_LONG -D__GNU_LIBRARY__
29 AM_CPPFLAGS += -I$(srcdir)/regex
32 sbin_PROGRAMS = smartd \
38 sbin_SCRIPTS = update-smart-drivedb
43 smartd_SOURCES = smartd.cpp \
63 smartd_LDADD = @os_deps@ @os_libs@ @CAPNG_LDADD@
64 smartd_DEPENDENCIES = @os_deps@
66 EXTRA_smartd_SOURCES = os_darwin.cpp \
93 os_win32/daemon_win32.cpp \
94 os_win32/daemon_win32.h \
95 os_win32/hostname_win32.cpp \
96 os_win32/hostname_win32.h \
97 os_win32/syslog_win32.cpp \
102 smartctl_SOURCES= smartctl.cpp \
110 dev_ata_cmd_set.cpp \
128 smartctl_LDADD = @os_deps@ @os_libs@
129 smartctl_DEPENDENCIES = @os_deps@
131 EXTRA_smartctl_SOURCES = os_linux.cpp \
153 smartctl_SOURCES += \
167 smartctl_SOURCES += \
170 regex/regex_internal.h
175 regex/regex_internal.h
177 # Included by regex.c:
178 EXTRA_smartctl_SOURCES += \
181 regex/regex_internal.c
183 EXTRA_smartd_SOURCES += \
186 regex/regex_internal.c
192 smartctl_SOURCES += \
194 os_win32/wmiquery.cpp \
199 os_win32/wmiquery.cpp \
202 smartctl_LDADD += -lole32 -loleaut32
203 smartd_LDADD += -lole32 -loleaut32
208 # This block is required because Solaris uses manual page section 1m
209 # for administrative command (linux/freebsd use section 8) and Solaris
210 # uses manual page section 4 for file formats (linux/freebsd use
211 # section 5). Automake can deal cleanly with man page sections 1-8
212 # and n, but NOT with sections of the form 1m.
213 extra_MANS = smartd.conf.4 \
216 install-man: $(extra_MANS)
218 $(mkinstalldirs) $(DESTDIR)$(mandir)/man4
219 $(mkinstalldirs) $(DESTDIR)$(mandir)/man1m
220 for i in $(extra_MANS); do \
221 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
223 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
224 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
225 inst=`echo $$inst | sed -e 's/^.*\///'`; \
226 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
227 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$$ext/$$inst"; \
228 $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$$ext/$$inst; \
232 for i in $(extra_MANS); do \
233 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
235 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
236 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
237 inst=`echo $$inst | sed -e 's/^.*\///'`; \
238 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
239 echo " rm -f $(DESTDIR)$(mandir)/man$$ext/$$inst"; \
240 rm -f $(DESTDIR)$(mandir)/man$$ext/$$inst; \
243 awk '/^.TH/ {$$3="1m"} {print}' < $< | \
244 sed -e 's/smartd\.conf\(.*\)(5)/smartd.conf\1(4)/g' \
245 -e 's/syslog\.conf\(.*\)(5)/syslog.conf\1(4)/g' \
246 -e 's/smartctl\(.*\)(8)/smartctl\1(1m)/g' \
247 -e 's/syslogd\(.*\)(8)/syslogd\1(1m)/g' \
248 -e 's|/var/log/messages|/var/adm/messages|g' \
249 -e 's/smartd\(.*\)(8)/smartd\1(1m)/g' > $@
251 awk '/^.TH/ {$$3="4"} {print}' < $< | \
252 sed -e 's/smartd\.conf\(.*\)(5)/smartd.conf\1(4)/g' \
253 -e 's/syslog\.conf\(.*\)(5)/syslog.conf\1(4)/g' \
254 -e 's/smartctl\(.*\)(8)/smartdctl\1(1m)/g' \
255 -e 's/syslogd\(.*\)(8)/syslogd\1(1m)/g' \
256 -e 's|/var/log/messages|/var/adm/messages|g' \
257 -e 's/smartd\(.*\)(8)/smartd\1(1m)/g' > $@
259 # For systems that adopts traditional manner
260 man_MANS = smartd.conf.5 \
266 docs_DATA = AUTHORS \
276 examplesdir=$(exampledir)
278 examplescripts/README
280 examplescripts/Example1 \
281 examplescripts/Example2 \
282 examplescripts/Example3 \
283 examplescripts/Example4
285 sysconf_DATA = smartd.conf
287 # If modified smartd.conf exists install smartd.conf.sample instead
288 install-sysconfDATA: $(sysconf_DATA)
289 $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
290 @s="$(srcdir)/smartd.conf"; \
291 f="$(DESTDIR)$(sysconfdir)/smartd.conf$(smartd_suffix)"; \
292 if test -z "$(smartd_suffix)" && test -f "$$f"; then \
293 if cmp "$$s" "$$f" >/dev/null 2>/dev/null; then :; else \
294 echo "************************************************************"; \
295 echo "*** $$f preserved"; \
296 echo "*** installing smartd.conf.sample instead"; \
297 echo "************************************************************"; \
301 echo " $(INSTALL_DATA) $$s $$f"; \
302 $(INSTALL_DATA) "$$s" "$$f"
304 # If smartd.conf.sample exists preserve smartd.conf
305 uninstall-sysconfDATA:
306 @f="$(DESTDIR)$(sysconfdir)/smartd.conf$(smartd_suffix)"; \
307 if test -z "$(smartd_suffix)" && test -f "$$f".sample; then \
308 echo "************************************************************"; \
309 echo "*** $$f preserved"; \
310 echo "*** removing smartd.conf.sample instead"; \
311 echo "************************************************************"; \
324 update-smart-drivedb.in \
326 os_darwin/StartupParameters.plist \
327 os_darwin/English_Localizable.strings \
328 os_win32/installer.nsi \
329 os_win32/syslogevt.c \
330 os_win32/syslogevt.mc \
331 os_win32/update-smart-drivedb.nsi \
332 os_win32/wbemcli_small.h \
337 CLEANFILES = smartd.conf.5 \
351 update-smart-drivedb \
354 # 'make maintainer-clean' also removes files generated by './autogen.sh'
355 MAINTAINERCLEANFILES = \
356 $(srcdir)/Makefile.in \
357 $(srcdir)/aclocal.m4 \
358 $(srcdir)/configure \
359 $(srcdir)/config.guess \
360 $(srcdir)/config.h.in \
361 $(srcdir)/config.h.in~ \
362 $(srcdir)/config.sub \
364 $(srcdir)/install-sh \
366 $(srcdir)/mkinstalldirs
368 utility.o: svnversion.h
371 # Get version info from SVN
372 svnversion.h: CHANGELOG Makefile $(srcdir)/.svn/entries
373 echo '/* svnversion.h. Generated by Makefile from svn info. */' > $@
375 && svnversion 2>/dev/null | sed -n 's,^\([0-9].*\),REV "\1",p' \
376 && TZ= LC_ALL=C svn info 2>/dev/null \
377 | sed -n 'h;s,^.* Date: *\([^ ]*\) .*$$,DATE "\1",p;g;s,^.* Date: *[^ ]* *\([^ ]*\) .*$$,TIME "\1",p') \
378 | sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
381 # SVN not available, guess version info from Id strings
382 svnversion.h: CHANGELOG Makefile
383 echo '/* svnversion.h. Generated by Makefile from Id strings. */' > $@
384 (cd $(srcdir) && cat CHANGELOG Makefile.am configure.in smart*.in *.cpp *.h *.s) \
385 | sed -n 's,^.*\$$[I][d]: [^ ]* \([0-9][0-9]* [0-9][-0-9]* [0-9][:0-9]*\)[^:0-9][^$$]*\$$.*$$,\1,p' \
387 | sed -n 'h;s,^\([^ ]*\) .*$$,REV "\1",p;g;s,^[^ ]* \([^ ]*\) .*$$,DATE "\1",p;g;s,^[^ ]* [^ ]* \([^ ]*\)$$,TIME "\1",p;q' \
388 | sed 's,^,#define SMARTMONTOOLS_SVN_,' >> $@
393 drivedb_DATA = drivedb.h
397 # Create $(savestatesdir) only
401 if ENABLE_ATTRIBUTELOG
402 # Create $(attributelogdir) only
406 smartd.conf.5.in: smartd.8.in
407 sed '1,/STARTINCLUDE/ D;/ENDINCLUDE/,$$D' < $(srcdir)/smartd.8.in > $(top_builddir)/tmp.directives
408 sed '/STARTINCLUDE/,$$D' < $(srcdir)/smartd.conf.5.in > $(top_builddir)/tmp.head
409 sed '1,/ENDINCLUDE/D' < $(srcdir)/smartd.conf.5.in > $(top_builddir)/tmp.tail
410 cat $(top_builddir)/tmp.head > $(srcdir)/smartd.conf.5.in
411 echo '.\" STARTINCLUDE' >> $(srcdir)/smartd.conf.5.in
412 cat $(top_builddir)/tmp.directives >> $(srcdir)/smartd.conf.5.in
413 echo '.\" ENDINCLUDE' >> $(srcdir)/smartd.conf.5.in
414 cat $(top_builddir)/tmp.tail >> $(srcdir)/smartd.conf.5.in
415 rm -f $(top_builddir)/tmp.head $(top_builddir)/tmp.tail $(top_builddir)/tmp.directives
417 update-smart-drivedb: update-smart-drivedb.in config.status
418 $(SHELL) ./config.status --file=$@
422 if INSTALL_INITSCRIPT
425 os_darwin/StartupParameters.plist \
426 os_darwin/English_Localizable.strings
428 initd_install_name = SMART
430 initd_DATA_install = install-initdDATA-darwin
431 initd_DATA_uninstall = uninstall-initdDATA-darwin
433 SMART : os_darwin/SMART.in
434 sed "s|/usr/sbin/|$(sbindir)/|" $< > $@
436 install-initdDATA-darwin: $(initd_DATA)
437 $(mkinstalldirs) $(DESTDIR)$(initddir)
438 $(mkinstalldirs) $(DESTDIR)$(initddir)/SMART
439 $(mkinstalldirs) $(DESTDIR)$(initddir)/SMART/Resources
440 $(INSTALL_SCRIPT) $(top_builddir)/SMART $(DESTDIR)$(initddir)/SMART
441 $(INSTALL_DATA) $(srcdir)/os_darwin/StartupParameters.plist \
442 $(DESTDIR)$(initddir)/SMART/StartupParameters.plist
443 for i in English ; do \
444 RDIR=$(DESTDIR)$(initddir)/SMART/Resources/$${i}.lproj ; \
445 $(mkinstalldirs) $$RDIR ;\
446 $(INSTALL_DATA) $(srcdir)/os_darwin/$${i}_Localizable.strings \
447 $$RDIR/Localizable.strings ; \
450 uninstall-initdDATA-darwin:
451 rm -rf $(DESTDIR)$(initddir)/$(initd_install_name)
455 initd_DATA = smartd.initd
457 smartd.initd: $(srcdir)/smartd.initd.in Makefile
458 sed "s|/usr/local/sbin/|$(sbindir)/|g" $(srcdir)/smartd.initd.in > $@
460 initd_install_name = smartd$(smartd_suffix)
462 initd_DATA_install = install-initdDATA-generic
463 initd_DATA_uninstall = uninstall-initdDATA-generic
465 install-initdDATA-generic: $(initd_DATA)
466 $(mkinstalldirs) $(DESTDIR)$(initddir)
467 $(INSTALL_SCRIPT) $(top_builddir)/smartd.initd $(DESTDIR)$(initddir)/smartd$(smartd_suffix)
470 uninstall-initdDATA-generic:
471 rm -rf $(DESTDIR)$(initddir)/$(initd_install_name)
475 initd_DATA_install = install-initdDATA-null
476 initd_DATA_uninstall = uninstall-initdDATA-null
478 install-initdDATA-null:
479 uninstall-initdDATA-null:
482 install-initdDATA : $(initd_DATA_install)
484 uninstall-initdDATA: $(initd_DATA_uninstall)
486 if ENABLE_CAPABILITIES
487 MAN_CAPABILITIES = cat
489 MAN_CAPABILITIES = sed '/BEGIN ENABLE_CAPABILITIES/,/END ENABLE_CAPABILITIES/d'
493 MAN_DRIVEDB = sed "s|/usr/local/share/smartmontools/drivedb\\.h|$(drivedbdir)/drivedb.h|g"
495 MAN_DRIVEDB = sed '/BEGIN ENABLE_DRIVEDB/,/END ENABLE_DRIVEDB/d'
499 MAN_SAVESTATES = sed "s|/usr/local/var/lib/smartmontools/smartd\\.|$(savestates)|g"
501 MAN_SAVESTATES = sed '/BEGIN ENABLE_SAVESTATES/,/END ENABLE_SAVESTATES/d'
504 if ENABLE_ATTRIBUTELOG
505 MAN_ATTRIBUTELOG = sed "s|/usr/local/var/lib/smartmontools/attrlog\\.|$(attributelog)|g"
507 MAN_ATTRIBUTELOG = sed '/BEGIN ENABLE_ATTRIBUTELOG/,/END ENABLE_ATTRIBUTELOG/d'
511 sed "s|CURRENT_SVN_VERSION|$(releaseversion)|g; \
512 s|CURRENT_SVN_DATE|`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`|g; \
513 s|CURRENT_SVN_REV|`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`|g; \
514 s|/usr/local/share/man/|$(mandir)/|g; \
515 s|/usr/local/sbin/|$(sbindir)/|g; \
516 s|/usr/local/etc/rc\\.d/init.d/|$(initddir)/|g; \
517 s|/usr/local/share/doc/smartmontools/examplescripts/|!exampledir!|g; \
518 s|/usr/local/share/doc/smartmontools/|$(docsdir)/|g; \
519 s|!exampledir!|$(exampledir)/|g; \
520 s|/usr/local/etc/smartd\\.conf|$(sysconfdir)/smartd.conf|g; \
521 s|/usr/local/etc/smart_drivedb\\.h|$(sysconfdir)/smart_drivedb\\.h|g" | \
522 $(MAN_CAPABILITIES) | \
524 $(MAN_SAVESTATES) | \
527 # Implicit rule 'smart%: smart%.in ...' does not work with BSD make
528 smartctl.8: smartctl.8.in Makefile svnversion.h
529 cat $(srcdir)/smartctl.8.in | $(MAN_FILTER) > $@
531 smartd.8: smartd.8.in Makefile svnversion.h
532 cat $(srcdir)/smartd.8.in | $(MAN_FILTER) > $@
534 smartd.conf.5: smartd.conf.5.in Makefile svnversion.h
535 cat $(srcdir)/smartd.conf.5.in | $(MAN_FILTER) > $@
537 # Commands to convert man pages into .html and .txt
540 #MAN2HTML = groff -man -Thtml
541 MAN2TXT = groff -man -Tascii -P'-bcou'
543 # Remove HTTP header and fix links in man2html output
544 FIXHTML = sed '1s,^Content-type.*,,' \
545 | sed 's,<A HREF="http://[-a-z/]*/man2html?\([1-8]\)+\(smart[cd][.a-z]*\)">,<A HREF="\2.\1.html">,g' \
546 | sed 's,<A HREF="http://[-a-z/]*/man2html">,<A HREF=".">,g' \
547 | sed 's,<A HREF="http://[-a-z/]*/man2html?[^"]*">\([^<]*\)</A>,\1,g' \
548 | sed 's,<A HREF="mailto:[^s][^m][^a][^"]*">\([^<]*\)</A>,\1,g'
550 # Convert man pages into .html and .txt
552 htmlman: smartctl.8.html smartd.8.html smartd.conf.5.html
554 txtman: smartctl.8.txt smartd.8.txt smartd.conf.5.txt
559 $(DOS2UNIX) < $< | $(MAN2HTML) | $(FIXHTML) > $@
562 $(DOS2UNIX) < $< | $(MAN2HTML) | $(FIXHTML) > $@
566 $(MAN2HTML) $< | $(FIXHTML) > $@
569 $(MAN2HTML) $< | $(FIXHTML) > $@
579 # Check drive database syntax
581 @if ./smartctl -B $(srcdir)/drivedb.h -P showall >/dev/null; then \
582 echo "$(srcdir)/drivedb.h: OK"; \
584 echo "$(srcdir)/drivedb.h: Syntax check failed"; exit 1; \
589 # Definitions for Windows distribution
597 distdir_win32 = $(PACKAGE)-$(VERSION).win$(win_bits)
598 distzip_win32 = $(PACKAGE)-$(VERSION).win$(win_bits).zip
599 distinst_win32 = $(PACKAGE)-$(VERSION).win$(win_bits)-setup.exe
601 exedir_win32 = $(distdir_win32)/bin
602 docdir_win32 = $(distdir_win32)/doc
605 $(exedir_win32)/smartctl.exe \
606 $(exedir_win32)/smartctl-nc.exe \
607 $(exedir_win32)/smartd.exe
611 $(exedir_win32)/syslogevt.exe
617 $(exedir_win32)/update-smart-drivedb.exe
623 $(docdir_win32)/AUTHORS.txt \
624 $(docdir_win32)/CHANGELOG.txt \
625 $(docdir_win32)/COPYING.txt \
626 $(docdir_win32)/INSTALL.txt \
627 $(docdir_win32)/NEWS.txt \
628 $(docdir_win32)/README.txt \
629 $(docdir_win32)/TODO.txt \
630 $(docdir_win32)/WARNINGS.txt \
631 $(docdir_win32)/checksums.txt \
632 $(docdir_win32)/smartd.conf \
633 $(docdir_win32)/smartctl.8.html \
634 $(docdir_win32)/smartctl.8.txt \
635 $(docdir_win32)/smartd.8.html \
636 $(docdir_win32)/smartd.8.txt \
637 $(docdir_win32)/smartd.conf.5.html \
638 $(docdir_win32)/smartd.conf.5.txt
642 $(exedir_win32)/drivedb.h
647 smartctl-nc.exe smartctl-nc.exe.tmp \
648 syslogevt.exe syslogevt.h syslogevt.o \
649 syslogevt.res.o syslogevt.rc syslogevt_*.bin \
650 update-smart-drivedb.exe \
653 # Textfile converter from package cygutils or tofrodos
654 # Note: Only use without options to be compatible with both packages
658 # Build Windows distribution
660 dist-win32: $(distzip_win32)
662 install-win32: $(distinst_win32)
665 installer-win32: $(distinst_win32)
667 distdir-win32: distdir.mkdir $(FILES_WIN32)
669 $(distzip_win32): distdir.mkdir $(FILES_WIN32)
670 @rm -fv $(distzip_win32)
671 cd $(distdir_win32) && zip -9 ../$(distzip_win32) bin/* doc/*
674 sha256sum $@ > $@.sha256
677 # Build NSIS installer
678 # Note: Only option character '-' is also compatible with Linux version of makensis
679 $(distinst_win32): os_win32/installer.nsi distdir.mkdir $(FILES_WIN32)
680 @date=`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h`; \
681 rev=`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h`; \
682 verstr="$(PACKAGE_VERSION) $$date $$rev "$(BUILD_INFO); \
683 echo "'$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) -DOUTFILE=$@ -DVERSTR='$$verstr' $<"; \
684 '$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) -DOUTFILE=$@ -DVERSTR="$$verstr" $<
687 sha256sum $@ > $@.sha256
689 # Build drivedb.h update tool
690 update-smart-drivedb.exe: os_win32/update-smart-drivedb.nsi
691 "$(MAKENSIS)" -V2 -NOCD -DBRANCH=$(DRIVEDB_BRANCH) $<
695 @echo "makensis: command not found. Please install NSIS from http://nsis.sourceforge.net/" 1>&2
700 rm -rf $(distdir_win32) distdir.mkdir
703 @test -d $(exedir_win32) || mkdir -pv $(exedir_win32)
704 @test -d $(docdir_win32) || mkdir -pv $(docdir_win32)
707 $(exedir_win32)/%.exe: %.exe
709 if test -n '$(STRIP)'; then $(STRIP) -s $@; else strip -s $@; fi
712 # strip would break NSIS integrity check
713 $(exedir_win32)/update-smart-drivedb.exe: update-smart-drivedb.exe
716 $(exedir_win32)/%.h: $(srcdir)/%.h
717 $(UNIX2DOS) < $< > $@
720 $(docdir_win32)/%.html: %.html
721 $(UNIX2DOS) < $< > $@
724 $(docdir_win32)/%.txt: %.txt
725 $(UNIX2DOS) < $< > $@
728 $(docdir_win32)/%.txt: $(srcdir)/%
729 $(UNIX2DOS) < $< > $@
732 $(docdir_win32)/%.conf: $(srcdir)/%.conf
733 $(UNIX2DOS) < $< > $@
736 $(docdir_win32)/checksums.txt: $(EXEFILES_WIN32)
737 (cd $(exedir_win32) && md5sum *.exe && sha1sum *.exe && sha256sum *.exe) \
740 # Build non-console version of smartctl for GSmartControl.
741 # The script below changes the word at offset 220 (Subsystem) from 3
742 # (Console) to 2 (GUI) in a copy of smartctl.exe.
743 # This will be changed when a tool (like 'editbin') is available in
744 # the Cygwin distribution
745 smartctl-nc.exe: smartctl.exe
747 cp -p smartctl.exe $@.tmp
748 @if test `od -A n -j 220 -N 2 -d $@.tmp` -eq 3; then :; \
749 else echo "invalid EXE header"; exit 1; fi
750 @echo "editbin /subsystem:windows $@.tmp"
751 @echo -ne '\002' | dd bs=1 seek=220 count=1 conv=notrunc of=$@.tmp 2>/dev/null
752 @if test `od -A n -j 220 -N 2 -d $@.tmp` -eq 2; then :; \
753 else echo "EXE patch failed"; exit 1; fi
757 # Build syslogevt.exe event message file tool
759 syslogevt.exe: syslogevt.o syslogevt.res.o
762 syslogevt.o: os_win32/syslogevt.c syslogevt.rc
763 $(CC) -c -I. -Os -o $@ $<
765 syslogevt.res.o: syslogevt.rc
768 syslogevt.rc: os_win32/syslogevt.mc
772 # Build {config,svnversion}_vc8.h for MSVC8 from MinGW {config,svnversion}.h
774 config-vc8: $(srcdir)/os_win32/config_vc8.h $(srcdir)/os_win32/svnversion_vc8.h
776 $(srcdir)/os_win32/config_vc8.h: config.h Makefile
777 sed '1i/* config_vc8.h. Generated from config.h by Makefile. */' $< | \
778 sed 's,^#define HAVE_\(ATTR_PACKED\|INTTYPES_H\|[DK_]*NTDDDISK_H\|STDINT_H\|STRINGS_H\|STRTOULL\|U*INT64_T\|UNISTD_H\|WORKING_SNPRINTF\) 1$$,/* #undef HAVE_\1 */,' | \
779 sed 's,^\(#define SMARTMONTOOLS_BUILD_HOST "[^-]*\)[^"]*,\1-pc-win32vc8,' > $@
781 $(srcdir)/os_win32/svnversion_vc8.h: svnversion.h